{% import 'ChillEventBundle:EventReason:macro.html.twig' as m %} {{ dump() }} {% for participation in event.participations %} {{ participation.id }} ---> {{ participation.lastupdate|localizeddate('long', 'none') }}
{% 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 %}