Show the list of pending views in the workflows index page

This commit is contained in:
Julien Fastré 2024-10-10 13:40:25 +02:00
parent 8589bada3f
commit 3d53e7da65
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB
2 changed files with 11 additions and 0 deletions

View File

@ -61,6 +61,11 @@
<section class="step my-4">{% include '@ChillMain/Workflow/_follow.html.twig' %}</section> <section class="step my-4">{% include '@ChillMain/Workflow/_follow.html.twig' %}</section>
{% if signatures|length > 0 %} {% if signatures|length > 0 %}
<section class="step my-4">{% include '@ChillMain/Workflow/_signature.html.twig' %}</section> <section class="step my-4">{% include '@ChillMain/Workflow/_signature.html.twig' %}</section>
{% elseif entity_workflow.currentStep.sends|length > 0 %}
<section class="step my-4">
<h2>{{ 'workflow.external_views.title'|trans({'numberOfSends': entity_workflow.currentStep.sends|length }) }}</h2>
{% include '@ChillMain/Workflow/_send_views_list.html.twig' with {'sends': entity_workflow.currentStep.sends} %}
</section>
{% else %} {% else %}
<section class="step my-4">{% include '@ChillMain/Workflow/_decision.html.twig' %}</section> <section class="step my-4">{% include '@ChillMain/Workflow/_decision.html.twig' %}</section>
{% endif %} {% endif %}

View File

@ -75,6 +75,12 @@ workflow:
see_doc_action_description: 'Voir les documents confidentiels envoyés par {sender}' see_doc_action_description: 'Voir les documents confidentiels envoyés par {sender}'
external_views: 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} last_view_at: Dernière vue le {at, date, long} à {at, time, short}
number_of_views: >- number_of_views: >-
{numberOfViews, plural, {numberOfViews, plural,