From 4fc3710e6b4196d0b4a77ae402fc6496016be540 Mon Sep 17 00:00:00 2001 From: wilsonmoura Date: Tue, 24 Aug 2021 16:57:21 -0300 Subject: [PATCH] #539 -- File submission flags --- .../Protocol/protocol_another_infos.html.twig | 28 +++++++++++++------ 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/symphony/src/Proethos2/CoreBundle/Resources/views/Protocol/protocol_another_infos.html.twig b/symphony/src/Proethos2/CoreBundle/Resources/views/Protocol/protocol_another_infos.html.twig index 6cd59e87..503b0340 100644 --- a/symphony/src/Proethos2/CoreBundle/Resources/views/Protocol/protocol_another_infos.html.twig +++ b/symphony/src/Proethos2/CoreBundle/Resources/views/Protocol/protocol_another_infos.html.twig @@ -113,6 +113,7 @@ {% trans %}Submitted by{% endtrans %} {% trans %}File name{% endtrans %} {% trans %}Date & Time{% endtrans %} + {% trans %}Reading{% endtrans %} {% trans %}Actions{% endtrans %} @@ -121,18 +122,29 @@ {% for file in protocol.mainSubmission.attachments if not file.isMonitoringAction %} {% set class = '' %} {% if file.flag == 1 %} - {% set class = 'attachment-danger' %} + {% set class = 'text-danger' %} {% elseif file.flag == 2 %} - {% set class = 'attachment-warning' %} + {% set class = 'text-warning' %} {% elseif file.flag == 3 %} - {% set class = 'attachment-primary' %} + {% set class = 'text-primary' %} {% endif %} + + {% set text = '' %} + {% if file.flag == 1 %} + {% set text = 'Mandatory read' %} + {% elseif file.flag == 2 %} + {% set text = 'Optional read' %} + {% elseif file.flag == 3 %} + {% set text = 'Reference only' %} + {% endif %} + - {{ file.uploadType }} + {{ file.uploadType }} {{ file.submissionNumber }} {{ file.user }} {% if file.uploadType.slug in ['protocol'] %}{{ file.filename }}{% else %}{{ file }}{% endif %} - {{ file.created|date("d/m/Y H:i") }} + {{ file.created|date("d/m/Y H:i") }} + {{ text|trans }} @@ -349,9 +361,9 @@