{% set completed_actions = action_plans|filter(action => action.status == 'completed') %}
Total actions{{ action_plans|length }}
En cours{{ action_plans|length - completed_actions|length }}
Terminées{{ completed_actions|length }}

Actions définies lors de l’entretien

{% for action in action_plans %}
{{ action.title }}

{{ action.description ?: 'Aucune description.' }}

{{ action.dueDate ? 'Échéance : ' ~ action.dueDate|date('d/m/Y') : 'Sans échéance' }}{% if action.owner %} · Responsable : {{ action.owner }}{% endif %}
{% else %}
Aucune action définie
{% endfor %}