{% extends 'ChillEventBundle::layout.html.twig' %} {% block title 'Event : %label%'|trans({ '%label%' : event.label } ) %} {% import 'ChillPersonBundle:Person:macro.html.twig' as person_macro %} {% block event_content -%}

{{ 'Details of an event'|trans }}

{{ 'Name'|trans }} {{ event.label }}
{{ 'Date'|trans }} {{ event.date|localizeddate('long', 'none') }}
{{ 'Event type'|trans }} {{ event.type.label|localize_translatable_string }}
{{ 'Circle'|trans }} {{ event.circle.name|localize_translatable_string }}

{{ 'Participation'|trans }}

{% set count = event.participations|length %}

{% transchoice count %}%count% participations to this event{% endtranschoice %}

{% if count > 0 %} {% for participation in event.participations %} {% endfor %}
{{ 'Person'|trans }} {{ 'Role'|trans }} {{ 'Status'|trans }} {{ 'Last update'|trans }}  
{{ person_macro.render(participation.person) }} {{ participation.role.label|localize_translatable_string }} {{ participation.status.label|localize_translatable_string }} {{ participation.lastUpdate|localizeddate("long", "none") }}
{% endif %} {% endblock %}