-
+
{% if loop.first and step.next is null %}
{{ 'workflow.No transitions'|trans }}
{% else %}
-
+
{% if step.previous is not null and step.previous.freezeAfter == true %}
@@ -18,10 +21,7 @@
- {% if not loop.first %}
-
- {% endif %}
- {{ step.currentStep }}
+ {{ place_label }}
{#
@@ -31,9 +31,13 @@
#}
{% endif %}
-
+
{% if step.next is not null %}
+ {% set transition = chill_workflow_transition_by_string(step.entityWorkflow, step.transitionAfter) %}
+ {% set transition_labels = workflow_metadata(step.entityWorkflow, 'label', transition) %}
+ {% set transition_label = transition_labels is null ? step.transitionAfter : transition_labels|localize_translatable_string %}
+ {% set forward = workflow_metadata(step.entityWorkflow, 'isForward', transition) %}
{% if step.transitionBy is not null %}
@@ -48,7 +52,12 @@
- {{ step.next.currentStep }}
+ {% if forward %}
+
+ {% else %}
+
+ {% endif %}
+ {{ transition_label }}