From 3d53e7da65e6f52b1af1b21ccae38e23c2ee474a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Thu, 10 Oct 2024 13:40:25 +0200 Subject: [PATCH] Show the list of pending views in the workflows index page --- .../Resources/views/Workflow/index.html.twig | 5 +++++ .../ChillMainBundle/translations/messages+intl-icu.fr.yaml | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/src/Bundle/ChillMainBundle/Resources/views/Workflow/index.html.twig b/src/Bundle/ChillMainBundle/Resources/views/Workflow/index.html.twig index 0fe55e3f2..48f7ef361 100644 --- a/src/Bundle/ChillMainBundle/Resources/views/Workflow/index.html.twig +++ b/src/Bundle/ChillMainBundle/Resources/views/Workflow/index.html.twig @@ -61,6 +61,11 @@
{% include '@ChillMain/Workflow/_follow.html.twig' %}
{% if signatures|length > 0 %}
{% include '@ChillMain/Workflow/_signature.html.twig' %}
+ {% elseif entity_workflow.currentStep.sends|length > 0 %} +
+

{{ 'workflow.external_views.title'|trans({'numberOfSends': entity_workflow.currentStep.sends|length }) }}

+ {% include '@ChillMain/Workflow/_send_views_list.html.twig' with {'sends': entity_workflow.currentStep.sends} %} +
{% else %}
{% include '@ChillMain/Workflow/_decision.html.twig' %}
{% endif %} diff --git a/src/Bundle/ChillMainBundle/translations/messages+intl-icu.fr.yaml b/src/Bundle/ChillMainBundle/translations/messages+intl-icu.fr.yaml index 1bb5230d9..430d866ab 100644 --- a/src/Bundle/ChillMainBundle/translations/messages+intl-icu.fr.yaml +++ b/src/Bundle/ChillMainBundle/translations/messages+intl-icu.fr.yaml @@ -75,6 +75,12 @@ workflow: see_doc_action_description: 'Voir les documents confidentiels envoyés par {sender}' external_views: + title: >- + {numberOfSends, plural, + =0 {En attente de consultation} + =1 {En attente de consultation} + other {En attente de consultations} + } last_view_at: Dernière vue le {at, date, long} à {at, time, short} number_of_views: >- {numberOfViews, plural,