{{ "Calendar"|trans }}

{% if entity.endDate.diff(entity.startDate).days >= 1 %} {{ "From the day"|trans }} {{ entity.startDate|format_datetime('medium', 'short') }} {{ "to the day"|trans }} {{ entity.endDate|format_datetime('medium', 'short') }} {% else %} {{ entity.startDate|format_date('full') }}, {{ entity.startDate|format_datetime('none', 'short', locale='fr') }} - {{ entity.endDate|format_datetime('none', 'short', locale='fr') }} {% endif %}

{{ 'main user concerned'|trans }}
{{ entity.mainUser }}

{{ 'Concerned groups calendar'|trans }}

{% include 'ChillActivityBundle:Activity:concernedGroups.html.twig' with {'context': 'calendar_' ~ context, 'render': 'bloc' } %}

{{ 'Calendar data'|trans }}

{% if entity.endDate.diff(entity.startDate).days >= 1 %}
{{ "From the day"|trans }} {{ entity.startDate|format_datetime('medium', 'short') }} {{ "to the day"|trans }} {{ entity.endDate|format_datetime('medium', 'short') }}
{% else %}
{{ entity.startDate|format_date('full') }}, {{ entity.startDate|format_datetime('none', 'short', locale='fr') }} - {{ entity.endDate|format_datetime('none', 'short', locale='fr') }}
{% endif %}
{{ 'cancel reason'|trans }}
{% if entity.cancelReason is not null %} {{ entity.cancelReason.canceledBy|localize_translatable_string }} {% else %} {{ 'Unknown'|trans }} {% endif %}
{{ 'status'|trans }}
{{ entity.status }}
{{ 'calendar location'|trans }}
{% if entity.location is not null %}

{{ entity.location.name }} ({{ entity.location.locationType.title|localize_translatable_string }})

{{ entity.location.address|chill_entity_render_box }} {% else %} {{ 'No address given'|trans }} {% endif %}
{% if not entity.comment.isEmpty %}
{{ 'calendar comment'|trans }}
{{ entity.comment|chill_entity_render_box }}
{% endif %}
{{ 'sendSMS'|trans }}
{% if entity.sendSMS is not null %} {% if entity.sendSMS %}{{ 'Yes'|trans }}{% else %}{{ 'No'|trans }}{% endif %} {% else %} {{ 'Unknown'|trans }} {% endif %}
{% set accompanying_course_id = null %} {% if accompanyingCourse %} {% set accompanying_course_id = accompanyingCourse.id %} {% endif %} {% set user_id = null %} {% if user %} {% set user_id = user.id %} {% endif %}