Place on_hold label next to breadcrumb in twig template

This commit is contained in:
Julie Lenaerts 2024-08-08 12:18:59 +02:00 committed by Julien Fastré
parent 15eaf648df
commit c21de777fd
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB

View File

@ -39,6 +39,9 @@
<h2>{{ handler.entityTitle(entity_workflow) }}</h2>
{{ macro.breadcrumb({'entity_workflow': entity_workflow}) }}
{% if entity_workflow.isOnHoldAtCurrentStep %}
<span class="badge bg-success rounded-pill" title="{{ 'workflow.On hold'|trans|escape('html_attr') }}">{{ 'workflow.On hold'|trans }}</span>
{% endif %}
</div>
{% include handler_template with handler_template_data|merge({'display_action': true }) %}