{% extends '@App/app.html.twig' %} {% block title %}Préparer mon entretien{% endblock %} {% block page_header %}{% endblock %} {% block content %} {% set french_months = {'01': 'janvier', '02': 'février', '03': 'mars', '04': 'avril', '05': 'mai', '06': 'juin', '07': 'juillet', '08': 'août', '09': 'septembre', '10': 'octobre', '11': 'novembre', '12': 'décembre'} %} {% set questions_by_section = {} %} {% set orphan_questions = [] %} {% set visible_sections = [] %} {% for question in questions %} {% if question.section %} {% set key = 'section_' ~ question.section.id %} {% set questions_by_section = questions_by_section|merge({(key): (questions_by_section[key]|default([]))|merge([question])}) %} {% else %} {% set orphan_questions = orphan_questions|merge([question]) %} {% endif %} {% endfor %} {% for section in sections %} {% set section_key = 'section_' ~ section.id %} {% if questions_by_section[section_key]|default([]) is not empty %} {% set visible_sections = visible_sections|merge([{id: section.id, title: section.titre}]) %} {% endif %} {% endfor %} {% if orphan_questions is not empty %}{% set visible_sections = visible_sections|merge([{id: 'other', title: 'Questions complémentaires'}]) %}{% endif %} {% macro render_question(question, answers) %} {% set answer = answers[question.id]|default(null) %} {% set value = answer ? (answer.answerJson ?: answer.answerText) : '' %}
{% endmacro %} {% import _self as preparation_form %}

Préparer mon entretien

Retour aux entretiens
{{ interview.type.nom }} {{ interview.scheduledAt ? interview.scheduledAt|date('d/m/Y à H:i') : 'Date à planifier' }}{% if interview.location %} · {{ interview.location }}{% endif %}
Manager{{ interview.manager ?: 'Non défini' }}
Progression{{ preparation_progress }}%
Préparation salarié
{% if interview.type.category == 'professional' or interview.type.isLegalFollowUp %}

Cet entretien porte sur votre parcours, vos compétences, vos besoins de formation et vos souhaits d’évolution. Il ne s’agit pas d’une évaluation de performance.
Prenez ce temps pour réfléchir à votre avenir.

{% else %}

{{ interview.type.description ?: 'Préparez vos réponses, vos réalisations et les sujets que vous souhaitez aborder pendant cet entretien.' }}
Prenez ce temps pour faire le point avec précision.

{% endif %}
{% set section_number = 0 %} {% for section in sections %} {% set section_key = 'section_' ~ section.id %} {% set section_questions = questions_by_section[section_key]|default([]) %} {% if section_questions is not empty %} {% set section_number = section_number + 1 %}
{{ section_number }}

{{ section.titre }}

{% if section.description %}

{{ section.description }}

{% endif %}
À compléter
{% for question in section_questions %}{{ preparation_form.render_question(question, answers) }}{% endfor %}
{% endif %} {% endfor %} {% if orphan_questions is not empty %} {% set section_number = section_number + 1 %}
{{ section_number }}

Questions complémentaires

À compléter
{% for question in orphan_questions %}{{ preparation_form.render_question(question, answers) }}{% endfor %}
{% endif %} {% if questions is empty %}
Aucune question n’est configurée

Le modèle de cet entretien ne contient pas encore de questionnaire salarié.

{% endif %}
{% endblock %}