{% set previous_objectives = employee_objectives|filter(objective => objective.interview is null or objective.interview.id != interview.id) %} {% set new_objectives = employee_objectives|filter(objective => objective.interview and objective.interview.id == interview.id) %}

Bilan des objectifs précédents

{{ previous_objectives|length }} objectif{{ previous_objectives|length > 1 ? 's' : '' }}
{% for objective in previous_objectives %}
{{ objective.progress >= 100 ? 'Atteint' : 'Partiel' }}{{ objective.title }}{{ objective.progress }}%

{{ objective.description ?: objective.successCriteria ?: 'Aucune description.' }}

{% if objective.managerComment %}
Commentaire manager{{ objective.managerComment }}
{% endif %}
{% else %}
Aucun objectif précédent
{% endfor %}

Nouveaux objectifs fixés

Ajouter
{% for objective in new_objectives %}
{{ objective.title }}

{{ objective.successCriteria ?: objective.description ?: 'Critères à préciser.' }}

Échéance
{{ objective.targetDate ? objective.targetDate|date('d/m/Y') : 'Non définie' }}
Priorité
{{ objective.priority|capitalize }}
Progression
{{ objective.progress }}%
{% else %}
Aucun nouvel objectif fixé
{% endfor %}