- {% if not loop.first %}
-
+ {% else %}
+
+
+ {% if step.previous is not null and step.previous.freezeAfter == true %}
+
{% endif %}
- {{ step.currentStep }}
- {#
-
-
- Refusé
+
+
+ {% if not loop.first %}
+
+ {% endif %}
+ {{ step.currentStep }}
+
+ {#
+
+
+ Refusé
+
+ #}
- #}
-
+ {% endif %}
+
diff --git a/src/Bundle/ChillMainBundle/Resources/views/Workflow/macro_breadcrumb.html.twig b/src/Bundle/ChillMainBundle/Resources/views/Workflow/macro_breadcrumb.html.twig
index 436394012..2bae33678 100644
--- a/src/Bundle/ChillMainBundle/Resources/views/Workflow/macro_breadcrumb.html.twig
+++ b/src/Bundle/ChillMainBundle/Resources/views/Workflow/macro_breadcrumb.html.twig
@@ -11,14 +11,18 @@
{% endmacro %}
+{% macro popoverTitle(step) %}
+ {% if step.previous is not null and step.previous.freezeAfter == true %}
+
+ {% endif %}
+ {{ step.currentStep }}
+{% endmacro %}
+
{% macro breadcrumb(_ctx) %}
{% for step in _ctx.entity_workflow.stepsChained %}
+ {% set popTitle = _self.popoverTitle(step) %}
{% if step.previous is null %}
- {#
- {% set popContent = "Point de départ du workflow" %}
- {{ dump(step) }}
- #}
{% set popContent = _self.popoverContent(step) %}
{% else %}
{% set popContent = _self.popoverContent(step.previous) %}
@@ -29,12 +33,15 @@
data-bs-toggle="popover"
data-bs-placement="bottom"
data-bs-custom-class="workflow-transition"
- title="{{ step.currentStep }}"
+ title="{{ popTitle|e('html_attr') }}"
data-bs-content="{{ popContent|e('html_attr') }}"
>
{% if step.currentStep == 'initial' %}
{% endif %}
+ {% if step.previous is not null and step.previous.freezeAfter == true %}
+
+ {% endif %}
{{ step.currentStep }}
{% if not loop.last %}
diff --git a/src/Bundle/ChillMainBundle/translations/messages.fr.yml b/src/Bundle/ChillMainBundle/translations/messages.fr.yml
index 5c214367c..3083a6f53 100644
--- a/src/Bundle/ChillMainBundle/translations/messages.fr.yml
+++ b/src/Bundle/ChillMainBundle/translations/messages.fr.yml
@@ -371,6 +371,8 @@ workflow:
Transition: Prochaine étape
dest for next steps: Utilisateurs qui valideront la prochaine étape
Freeze: Geler
+ Freezed: Gelé
+ freezed document: Le document est gelé
The associated element will be freezed: L'élément associé sera gelé et ne pourra plus être modifié après cette décision.
Finalize: Étape finale
The workflow will be finalized: Le suivi est clôturé lors de cette décision.