Passé en {% for place in workflow_marked_places(application) %} {{ workflow_metadata(application, 'title', place)|lower ?: ''}}{% endfor %} le {{ application.validatedat | date("d M Y") }} par {{ application.validator.firstname | default("n/c") }}
{% set rolep = "" %}
{% for people in application.peoples %}{% if people == app.user.people %}{% set rolep = "people" %}{% endif %}{% endfor %}
{% set roles = "" %}{% if application.suppleant == app.user.people %}{% set roles = "suppleant" %}{% set rolep = "people" %}{% endif %}
{% set roler = "" %}{% if application.responsable == app.user.people or is_granted('ROLE_ADMIN') %}{% set roler = "responsable" %}{% set roles = "suppleant" %}{% set rolep = "people" %}{% endif %}
{% for transition in workflow_transitions(application) %}
{% if workflow_can(application, transition.name) %}
{% if workflow_metadata(application, 'role', transition) in [rolep, roles, roler] %}
{{ workflow_metadata(application, 'title', transition) ?: 'n-a'}}
{% endif %}
{% endif %}
{% else %}
No actions available.
{% endfor %}