{% for kind, item in { employee: {title: 'Préparation Salarié', person: employee, progress: employee_preparation_progress, answered: employee_answered, total: employee_questions|length, date: interview.employeePreparedAt, route: 'interview_prepare_employee'}, manager: {title: 'Préparation Manager', person: interview.manager ?: 'Manager non défini', progress: manager_preparation_progress, answered: manager_answered, total: manager_questions|length, date: interview.managerPreparedAt, route: 'interview_prepare_manager'} } %}
{{ item.title }}{{ item.person }}
{{ item.date ? 'Terminée' : (item.progress ? 'En cours' : 'Non commencée') }}

Taux de complétion {{ item.progress }}%

Dernière activité
{{ item.date ? item.date|date('d/m/Y à H:i') : '—' }}
Questions répondues
{{ item.answered }} / {{ item.total }}
{{ kind == 'employee' ? 'Consulter / préparer' : 'Préparer (Manager)' }}
{% endfor %}

Structure de l’entretien{% if interview.template %} ({{ interview.template.nom }}){% endif %}

{{ template_sections|length }} section{{ template_sections|length > 1 ? 's' : '' }}
SectionCibleRéponses salariéRéponses manager
{% for section in template_sections %}{% set section_questions = questions|filter(question => question.section and question.section.id == section.id) %}{% set employee_section = section_questions|filter(question => employee_answers[question.id]|default(null)) %}{% set manager_section = section_questions|filter(question => manager_answers[question.id]|default(null)) %}
{{ loop.index }}. {{ section.titre }}{{ section_questions|filter(q => q.answerableByEmployee)|length and section_questions|filter(q => q.answerableByManager)|length ? 'Les deux' : (section_questions|filter(q => q.answerableByEmployee)|length ? 'Salarié' : 'Manager') }}{{ employee_section|length ? employee_section|length ~ '/' ~ section_questions|length : 'À remplir' }}{{ manager_section|length ? manager_section|length ~ '/' ~ section_questions|length : 'À remplir' }}
{% else %}
Aucune section configurée
{% endfor %}