{% import 'ChillEventBundle:EventReason:macro.html.twig' as m %} {{ dump() }}
    event :
| #{{ event.id }} | {{ event.date|localizeddate('short', 'short') }} | {{ event.name }} | center {{ event.center.id }} | circle {{ event.circle.id }} | type {{ event.type.id }} | {{ event.moderator }} |
    participations :
{% for participation in event.participations %}
| #{{ participation.id }} | {{ participation.person }} | {{ participation.role.name|localize_translatable_string }} | {{ participation.status.name|localize_translatable_string }} | lastupdate {{ participation.lastupdate|localizeddate('short', 'short') }} |
{% endfor %}
{# TODO - user a inscrit la personne à l'événement machin - user a modifié le statut de la personne inscrite à l'événement machin. nouveau statut : - user a modifié le rôle de la personne inscrite à l'événement machin. nouveau rôle : - participation de la personne à l'événement machin #}

{{ event.date|localizeddate('long', 'none') }} / {{ 'Event'|trans }}

{{ '%user% has done an %event_type%'|trans( { '%user%' : user, '%event_type%': event.type.name|localize_translatable_string, '%date%' : event.date|localizeddate('long', 'none') } ) }} {% if is_granted(constant('Chill\\ActivityBundle\\Security\\Authorization\\ActivityVoter::SEE_DETAILS'), event) %}
{{ 'Remark'|trans }}
{% if event.remark is empty %}{{ 'No remarks'|trans }}{% else %}
{{ event.remark|nl2br }}
{% endif %}
{{ 'Reasons'|trans }}
{%- if event.reasons is empty -%}
{{ 'No reason associated'|trans }}
{%- else -%}
{% for r in event.reasons %}{{ m.reason(r) }} {% endfor %}
{%- endif -%}
{% endif %}