From 71d3aa3969936cb6d98e7702d439d4ada173a238 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Wed, 4 Sep 2024 17:24:11 +0200 Subject: [PATCH] Refactor signature rendering logic Reorganized the signature rendering loop for better readability. Moved the row alignment inside the loop and added text alignment for signed statements. Simplified the conditional checks within the loop to enhance code maintainability. --- .../views/Workflow/_signature.html.twig | 38 +++++++++---------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/src/Bundle/ChillMainBundle/Resources/views/Workflow/_signature.html.twig b/src/Bundle/ChillMainBundle/Resources/views/Workflow/_signature.html.twig index a2a4129f1..2452411d5 100644 --- a/src/Bundle/ChillMainBundle/Resources/views/Workflow/_signature.html.twig +++ b/src/Bundle/ChillMainBundle/Resources/views/Workflow/_signature.html.twig @@ -1,24 +1,24 @@

{{ 'workflow.signature_zone.title'|trans }}

-
- {% for s in signatures %} -
{{ s.signer|chill_entity_render_box }}
-
-
    - {% if s.isSigned %} -

    {{ 'workflow.signature_zone.has_signed_statement'|trans({ 'datetime' : s.stateDate }) }}

    - {% else %} -
  • - {{ 'workflow.signature_zone.button_sign'|trans }} - {% if s.state is same as('signed') %} -

    {{ s.stateDate }}

    - {% endif %} -
  • - {% endif %} -
-
- {% endfor %} -
+ {% for s in signatures %} +
+
{{ s.signer|chill_entity_render_box }}
+
+ {% if s.isSigned %} +

{{ 'workflow.signature_zone.has_signed_statement'|trans({ 'datetime' : s.stateDate }) }}

+ {% else %} + + {% endif %} +
+
+ {% endfor %}