{% extends '@ChillPerson/AccompanyingCourse/layout.html.twig' %} {% block title 'accompanying_course_work.List accompanying course work'|trans %} {% block content %}

{{ block('title') }}

{% if works|length == 0 %}

{{ 'accompanying_course_work.Any work'|trans }}

{% else %}
{% for w in works %}

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

{% if w.createdBy %}

{{ 'Referrer'|trans }}

{{ w.createdBy|chill_entity_render_box }}

{% endif %} {%- if w.persons -%}

{{ 'Persons in accompanying course'|trans }}

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

{{ 'Thirdparty handling'|trans }}

{% include '@ChillMain/OnTheFly/_insert_vue_onthefly.html.twig' with { action: 'show', displayBadge: true, targetEntity: { name: 'thirdparty', id: w.handlingThierParty.id }, buttonText: w.handlingThierParty|chill_entity_render_string, parent: { 'type': 'accompanying_period_resource', 'id': r.id, 'comment': r.comment, 'parent': { 'type': 'accompanying_period', 'id': accompanyingCourse.id } } } %}
{% endif %} {%- if w.socialAction.issue -%}

{{ 'Social issue'|trans }}

{% endif %}
{% include 'ChillPersonBundle:AccompanyingCourseWork:_objectifs_results_evaluations.html.twig' with {} %}
{{ 'Last updated by'|trans}} {{ w.updatedBy|chill_entity_render_box }},
{{ 'le ' ~ w.updatedAt|format_datetime('long', 'short') }}
{% endfor %}
{% endif %}
{% endblock %}