{% if document is not null %} {% import "@ChillDocStore/Macro/macro_mimeicon.html.twig" as mm %}
{% if is_granted('CHILL_MAIN_ACCOMPANYING_PERIOD_WORK_EVALUATION_DOCUMENT_SHOW', document) %} {% set doc = document %}

{{ "Document"|trans }}: {{ doc.title }}

{{ evaluation.accompanyingPeriodWork.socialAction|chill_entity_render_string }}
  • {{ 'accompanying_course_work.start_date'|trans ~ ' : ' }} {{ evaluation.accompanyingPeriodWork.startDate|format_date('short') }}
  • {% if evaluation.accompanyingPeriodWork.endDate %}
  • {{ 'accompanying_course_work.end_date'|trans ~ ' : ' }} {{ evaluation.accompanyingPeriodWork.endDate|format_date('short') }}
  • {% endif %}

{{ 'Participants'|trans }}

{% for p in evaluation.accompanyingPeriodWork.persons %} {% include '@ChillMain/OnTheFly/_insert_vue_onthefly.html.twig' with { targetEntity: { name: 'person', id: p.id }, action: 'show', displayBadge: true, buttonText: p|chill_entity_render_string, isDead: p.deathdate is not null } %} {% endfor %}

{{ 'Évaluation'|trans }}

  • {{ evaluation.evaluation.title|localize_translatable_string }}
    • {{ 'accompanying_course_work.start_date'|trans ~ ' : ' }} {{ evaluation.startDate|format_date('short') }}
    • {% if evaluation.endDate %}
    • {{ 'accompanying_course_work.end_date'|trans ~ ' : ' }} {{ evaluation.endDate|format_date('short') }}
    • {% endif %} {% if evaluation.maxDate %}
    • {{ 'accompanying_course_work.max_date'|trans ~ ' : ' }} {{ evaluation.maxDate|format_date('short') }}
    • {% endif %} {% if evaluation.warningInterval and evaluation.warningInterval.d > 0 %}
    • {% set days = (evaluation.warningInterval.d + evaluation.warningInterval.m * 30) %} {{ 'accompanying_course_work.warning_interval'|trans ~ ' : ' }} {{ 'accompanying_course_work.%days% days before max_date'|trans({'%days%': days }) }}
    • {% endif %}
    • {% if evaluation.createdBy is not null %} créé par {{ evaluation.createdBy|chill_entity_render_string({'at_date': evaluation.createdAt}) }} {% endif %} {% if evaluation.createdAt is not null %} {{ 'le'|trans }} {{ evaluation.createdAt|format_date('short') }} {% endif %}
    {% if evaluation.comment %}
    {{ evaluation.comment }}
    {% endif %}
{% else %}
{{ 'This is the minimal period details'|trans ~ ': ' ~ document.id }}
{{ 'You are getting a notification for a period you are not allowed to see'|trans }}
{% endif %}
{% else %}
{{ 'You are getting a notification for a period which does not exists any more'|trans }}
{% endif %}