{% trans_default_domain 'pdf' %} {% macro children_render(children, formation, lesson, offset = 0, session = null) %} {% import _self as self %} {% for child in children %} {% set childType = getType(child) %} {% if isPhase(child) or childType == "App\\Entity\\Formation\\Exercise" or childType == "App\\Entity\\Formation\\ExerciseItem" %} {% if child.notation %} {% set notation = child.notation %} {% else %} {% if childType == 'App\\Entity\\Formation\\Exercise' %} {% set notation = formation.exercisesNotation %} {% elseif isPhase(child) %} {% set notation = formation.phasesNotation %} {% else %} {% set notation = formation.exerciseDecompositionNotation %} {% endif %} {% endif %} {% if session is not null %} {% set value = getChildrenValue(child, session) %} {% endif %} {% endif %} {% if isPhase(child) %}
{{ manageTEMs(child, session) }}
{% else %}
{{ child.name }}
{% endif %} {% if child.description %}
{{ child.description }}
{% endif %} {% if child.goals %}
{{ child.goals }}
{% endif %} {% if notation is defined and notation is not null %} {% for ratingValue in notation.ratingValues %} {% endfor %}
{% if ratingValue.mediaValue is not empty %} note {% else %} {{ ratingValue.value }} {% endif %}
{% endif %} {% if formation.exercisesNotationReason is defined and formation.exercisesNotationReason is not null and session is null %} {{ mapNotationReason(formation.exercisesNotationReason) }} {% endif %} {% if isExercise(child) and formation.evaluateSkillsInExercises and child.skills.count > 0 %} {% for skill in child.skills %} {% if session is not null %} {% set skillValue = getChildrenValue(child, session, skill) %} {% endif %}
{{ skill.name }} ({{ (skill.type == "technical" ? "compétence technique" : skill.type == "non technical" ? "compétence non technique" : "compétence ni technique ni non technique")|trans }})
{% if skill.description %}
{{ skill.description }}
{% endif %} {% if formation.skillsNotation is defined and formation.skillsNotation is not null %} {% for ratingValue in formation.skillsNotation.ratingValues %} {% endfor %}
{% if ratingValue.mediaValue is not empty %} note {% else %} {{ ratingValue.value }} {% endif %}
{% endif %} {% if formation.skillsNotationReason is defined and formation.skillsNotationReason is not null and session is null %} {{ mapNotationReason(formation.skillsNotationReason) }} {% endif %} {% if formation.evaluateSkillsIndicators and skill.ratingSystemIndicator and skill.details and skill.details.count > 0 %} {% for detail in skill.details %} {% if session is not null %} {% set indicatorValue = getChildrenValue(child, session, skill, detail) %} {% endif %}
{{ detail.description }}
{% if formation.indicatorsNotation is defined and formation.indicatorsNotation is not null %} {% for ratingValue in formation.indicatorsNotation.ratingValues %} {% endfor %}
{% if ratingValue.mediaValue is not empty %} note {% else %} {{ ratingValue.value }} {% endif %}
{% endif %} {% if formation.indicatorsNotationReason is defined and formation.indicatorsNotationReason is not null and session is null %} {{ mapNotationReason(formation.indicatorsNotationReason) }} {% endif %} {% endfor %} {% endif %} {% endfor %} {% endif %} {% if child.children.count > 0 %} {{ _self.children_render(child.children, formation, lesson, offset + (childType == "App\\Entity\\Formation\\Exercise" and formation.evaluateSkillsInExercises and child.skills.count > 0 ? formation.evaluateSkillsIndicators and skill.ratingSystemIndicator and skill.details and skill.details.count > 0 ? 3 : 2 : 1), session) }} {% endif %} {% endfor %} {% endmacro %} {% if session.lesson is not null %}{{ session.lesson.name }} {% else %}{{ session.lessonExtra.name }}{% endif %}

{% if session.lesson is not null %}{{ session.lesson.name }} {% else %}{{ session.lessonExtra.name }}{% endif %}


{{ "Informations générales"|trans }}
{% if session.lesson is not null and (session.lesson.description or session.lesson.goals) %} {% if session.lesson.description %} {% endif %} {% if session.lesson.goals %} {% endif %}
{{ "Description de la leçon"|trans }} {{ session.lesson.description|raw }}
{{ "Objectifs de la leçon"|trans }} {{ session.lesson.goals|raw }}
{% endif %}
{{ "Durées et indicateurs de la leçon"|trans }}
{{ "Durées"|trans }} {% if session.formation.duration or session.formation.standardDuration %} {% if session.formation.duration or session.formation.standardDuration %} {% endif %} {% endif %} {% if ((session.lesson is not null and not session.lesson.isTheoretical) or session.lessonExtra is not null) and (session.formation.timeBlocManagement or session.formation.flightTimeManagment) %} {% if session.formation.timeBlocManagement %} {% endif %} {% if session.formation.flightTimeManagment %} {% endif %} {% endif %} {% if session.lesson is not null and (session.lesson.expectedDuration > 0 or session.lesson.standardDuration > 0 or session.lesson.maxDuration > 0) %} {% if session.lesson.expectedDuration > 0 %} {% endif %} {% if session.lesson.standardDuration > 0 %} {% endif %} {% if session.lesson.maxDuration > 0 %} {% endif %} {% endif %}
  • {{ (session.formation.duration ? "Durée estimée de la formation" : "Durée standard de la formation")|trans }}: {{ (session.formation.duration ?? session.formation.standardDuration)|date("i:s") }}
  • {{ "Temps passé"|trans }}: {{ getSessionTotalTime(session)|date("i:s") }} {{ calculateTimeLeft(getSessionTotalTime(session), session.formation.duration ?? session.formation.standardDuration) }}
  • {{ "Date de la leçon"|trans }}: {{ session.startAt|date("d/m/Y") }}
  • {{ "Heure de début"|trans }}: {{ session.startAt|date("H:i") }}
  • {{ "Heure de début temps bloc"|trans }}:
  • {{ "Heure de fin temps bloc"|trans }}:
  • {{ "Heure de début temps de vol"|trans }}:
  • {{ "Heure de fin temps de vol"|trans }}:
{{ "Durée estimée"|trans }} : {{ session.lesson.expectedDuration|date("i:s") }}{{ "Durée standard"|trans }} : {{ session.lesson.standardDuration|date("i:s") }}{{ "Durée maximum"|trans }}: {{ session.lesson.maxDuration|date("i:s") }}
{% if session.counters.count > 0 %}
{{ "Indicateurs"|trans }}
{% endif %}
{% if session.lesson is not null and session.lesson.children.count > 0 %}
{{ "Contenu de la leçon"|trans }} {{ _self.children_render(session.lesson.children, session.formation, session.lesson, 0, session) }}
{{ "Évaluation de la {lessonLabel}"|trans({'{lessonLabel}': singularize(session.formation.ato.dictionary["lesson"]['label']|lower)}) }} {% set formation = session.formation %} {% if session.lesson.notation %} {% set notation = session.lesson.notation %} {% else %} {% set notation = formation.lessonNotation %} {% endif %} {# TODO Factoriser avec les exercises sur la macro tout en haut du fichier #} {% if formation.evaluateSkillsInLessons and formation.skills.count > 0 %} {% for skill in formation.skills %} {% if formation.skillsLessonNotationReason is defined and formation.skillsLessonNotationReason is not null %} {% endif %} {% if formation.evaluateSkillsIndicatorsInLessons and skill.ratingSystemIndicator and skill.details and skill.details.count > 0 %} {% for detail in skill.details %} {% if formation.indicatorsLessonNotationReason is defined and formation.indicatorsLessonNotationReason is not null %} {% endif %} {% endfor %} {% endif %} {% endfor %} {% endif %}
{{ session.lesson.name }}
{% if session.lesson.description %}
{{ session.lesson.description }}
{% endif %} {% if session.lesson.goals %}
{{ session.lesson.goals }}
{% endif %}
{% if notation is defined and notation is not null %} {% for ratingValue in notation.ratingValues %} {% endfor %}
{% if ratingValue.mediaValue is not empty %} note {% else %} {{ ratingValue.value }} {% endif %}
{% endif %}
{{ skill.name }} ({{ (skill.type == "technical" ? "compétence technique" : skill.type == "non technical" ? "compétence non technique" : "compétence ni technique ni non technique")|trans }})
{% if skill.description %}
{{ skill.description }}
{% endif %}
{% if formation.skillsLessonNotation is defined and formation.skillsLessonNotation is not null %} {% for ratingValue in formation.skillsLessonNotation.ratingValues %} {% endfor %}
{% if ratingValue.mediaValue is not empty %} note {% else %} {{ ratingValue.value }} {% endif %}
{% endif %}
{{ mapNotationReason(formation.skillsLessonNotationReason) }}
{{ detail.description }}
{% if formation.indicatorsLessonNotation is defined and formation.indicatorsLessonNotation is not null %} {% for ratingValue in formation.indicatorsLessonNotation.ratingValues %} {% endfor %}
{% if ratingValue.mediaValue is not empty %} note {% else %} {{ ratingValue.value }} {% endif %}
{% endif %}
{{ mapNotationReason(formation.indicatorsLessonNotationReason) }}
{% endif %} {% if session.lessonExtra is not null and session.lessonExtra.children.count > 0 %}
{{ "Contenu de la leçon extra"|trans }} {{ _self.children_render(session.lessonExtra.children, session.formation, session.lessonExtra, 0, session) }}
{{ "Évaluation de la {lessonLabel} extra"|trans({'{lessonLabel}': singularize(session.formation.ato.dictionary["lesson"]['label']|lower)}) }} {% set formation = session.formation %} {% if session.lessonExtra.lesson and session.lessonExtra.lesson.notation %} {% set notation = session.lessonExtra.lesson.notation %} {% else %} {% set notation = formation.lessonNotation %} {% endif %}
{{ session.lessonExtra.name }}
{% if notation is defined and notation is not null %} {% for ratingValue in notation.ratingValues %} {% endfor %}
{% if ratingValue.mediaValue is not empty %} note {% else %} {{ ratingValue.value }} {% endif %}
{% endif %}
{% endif %} {% if session.additionalItems.count > 0 %}
{{ "Exercices additionels de la leçon"|trans }} {% for additionalItem in session.additionalItems %} {% set childType = getType(additionalItem.formationItem) %} {% if getType(additionalItem.formationItem) == "App\\Entity\\Formation\\Exercise" or getType(additionalItem.formationItem) == "App\\Entity\\Formation\\ExerciseItem" %} {% if additionalItem.formationItem.notation %} {% set notation = additionalItem.formationItem.notation %} {% else %} {% if getType(additionalItem.formationItem) == 'App\\Entity\\Formation\\Exercise' %} {% set notation = session.formation.exercisesNotation %} {% else %} {% set notation = session.formation.exerciseDecompositionNotation %} {% endif %} {% endif %} {% endif %} {% if notation is defined and notation is not null %} {% else %} {% endif %} {% endfor %}
{{ additionalItem.formationItem.name }}
{% if additionalItem.formationItem.description %}
{{ additionalItem.formationItem.description }}
{% endif %} {% if additionalItem.formationItem.goals %}
{{ additionalItem.formationItem.goals }}
{% endif %}
{% for ratingValue in notation.ratingValues %}
{% if ratingValue.value is not empty %}
{{ ratingValue.value }}
{% else %} note {% endif %}
{% endfor %}
{% endif %} {% if session.lesson is not null and (session.lesson.technicalSkills.count > 0 or session.lesson.notTechnicalSkill.count > 0) %}
{{ "Compétences techniques et non techniques"|trans }} {% if session.lesson.technicalSkills.count > 0 %}
{{ "Compétences techniques" |trans }}
{% endif %} {% if session.lesson.notTechnicalSkill.count > 0 %}
{{ "Compétences non techniques" |trans }}
{% endif %}
{% endif %} {% if session.lesson is not null %} {% set notations = get_notations(session.lesson.children, session.formation, session.lesson) %} {% else %} {% set notations = get_notations(session.lessonExtra.children, session.formation, session.lessonExtra.lesson ? session.lessonExtra.lesson : null) %} {% endif %} {% if notations is not empty %}
{{ "Correspondance des notes"|trans }} {% for notation in distinctArray(notations) %} {% if notation %}
{% endif %} {% endfor %}
{% endif %}