{# # OPTIONS # - itemBlocClass: [uniq|colored|extended] # - displayContent: [short|long] default: short # - displayAction: [true|false] default: false #}

{{ 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') }}
  • {% else %} {% if displayContent is defined and displayContent == 'long' %}
  • {{ 'accompanying_course_work.end_date'|trans ~ ' : ' }} {{ 'Not given'|trans }}
  • {% endif %} {% endif %}

{%- if w.persons -%}{# Usagers du parcours #}

{{ '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: p.deathdate is not null } %} {% endfor %}
{% endif %} {%- if w.handlingThierParty -%}{# Tiers traitant #}

{{ '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 } %}
{% endif %}
{# Agents traitants #}

{%- if w.referrers|length > 1 -%}{{ 'Referrers'|trans }}{% else %}{{ 'Referrer2'|trans }}{% endif %}

{%- if w.referrers|length > 0 -%} {% for u in w.referrers %} {{ u|chill_entity_render_box }} {% if not loop.last %}, {% endif %} {% endfor %} {% else %} {{ 'No referrer'|trans }} {% endif %}
{%- if w.socialAction.issue -%}{# Problématique sociale #}

{{ 'Social issue'|trans }}

{% endif %}
{% if displayContent is not defined or displayContent == 'short' %}
{% include 'ChillPersonBundle:AccompanyingCourseWork:_objectifs_results_evaluations.html.twig' with { 'displayContent': displayContent } %}
{% endif %} {% if displayContent is not defined or displayContent == 'short' %}
{% import '@ChillPerson/AccompanyingCourseWork/_macros.html.twig' as macro %}
{{ macro.metadata(w) }}
{% if displayAction is defined and displayAction == true %} {% endif %}
{% endif %}
{# # This is for 'long' version of content # Note: this include is wrapped in a flex-table container. # We start by closing the flex-table so we can add more. # At the end we leave the last flex-table open, as it will be closed in the container. #} {% if displayContent is defined and displayContent == 'long' %} {% if w.results|length > 0 or w.goals|length > 0 or w.accompanyingPeriodWorkEvaluations|length > 0 %}

{{ 'Dispositifs' }}

{# new flex-table wrapper #}
{% include 'ChillPersonBundle:AccompanyingCourseWork:_objectifs_results_evaluations.html.twig' with { 'displayContent': displayContent } %}
{% endif %}

{{ 'Comments'|trans }}

Public

{% if w.note is not empty %}
{{ w.note|chill_entity_render_box({'metadata': true }) }}
{% else %} {{ 'No comment associated'|trans }} {% endif %}
{% set userId = app.user.id %} {% if w.privateComment.comments|length > 0 and w.privateComment.comments[userId] %}

Privé

{{ w.privateComment.comments[userId]|chill_markdown_to_html }}
{% endif %} {# Here flex-table stay open ! read above #} {% endif %}