{% extends '@ChillEvent/layout.html.twig' %} {% block title 'Event : %label%'|trans({ '%label%' : event.name } ) %} {% import '@ChillPerson/Person/macro.html.twig' as person_macro %} {% block js %} {{ parent() }} {{ encore_entry_script_tags('mod_pickentity_type') }} {{ encore_entry_script_tags('mod_document_action_buttons_group') }} {% endblock %} {% block css %} {{ parent() }} {{ encore_entry_link_tags('mod_pickentity_type') }} {{ encore_entry_link_tags('mod_document_action_buttons_group') }} {% endblock %} {% block event_content -%}

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

{{ 'Circle'|trans }} {{ event.circle.name|localize_translatable_string }}
{{ 'Name'|trans }} {{ event.name }}
{{ 'Date'|trans }} {{ event.date|format_date('long') }}
{{ 'Event type'|trans }} {{ event.type.name|localize_translatable_string }}
{{ 'Moderator'|trans }} {{ event.moderator|trans|default('-') }}
{{ 'event.fields.organizationCost'|trans }} {{ event.organizationCost|format_currency('EUR') }}
{{ 'event.fields.location'|trans }} {% if event.location is not null %} {{ event.location.name }} {% if event.location.address is not same as(null) %}{{ event.location.address|chill_entity_render_box({'multiline': false, 'with_picto': (event.location.name is empty), 'details_button': true}) }}{% endif %} {% else %} {{ 'Any location for this event'|trans }} {% endif %}
{% if event.documents|length > 0 %}

{{ 'event.fields.documents'|trans }}

{% endif %} {% if not event.comment.empty %}
{{ event.comment|chill_entity_render_box({ 'disable_markdown': false, 'metadata': true, }) }}
{% endif %}

{{ 'Participations'|trans }}

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

{{ 'count participations to this event'|trans({'count': count}) }}

{% if count > 0 %} {% for participation in event.participations %} {% endfor %}
{{ 'Person'|trans }} {{ 'Role'|trans }} {{ 'Status'|trans }} {{ 'Last update'|trans }}  
{% include '@ChillMain/OnTheFly/_insert_vue_onthefly.html.twig' with { targetEntity: { name: 'person', id: participation.person.id }, action: 'show', displayBadge: true, buttonText: participation.person|chill_entity_render_string, isDead: participation.person.deathdate is not null } %} {{ participation.role.name|localize_translatable_string }} {{ participation.status.name|localize_translatable_string }} {{ participation.lastUpdate|ago }} {# sf4 check: filter 'time_diff' is abandoned, alternative: knplabs/knp-time-bundle provide filter 'ago' #}
    {% if is_granted('CHILL_EVENT_PARTICIPATION_UPDATE', participation) %}
  • {% endif %}
{% endif %}
{{ form_start(form_add_participation_by_person) }}
{{ form_widget(form_add_participation_by_person.person_id, { 'attr' : { 'class' : 'custom-select', 'style': 'min-width: 15em; max-width: 18em; display: inline-block;' }} ) }}
{{ form_end(form_add_participation_by_person) }}
{{ form_start(form_export, {'attr': {'id': 'export_tableur'}}) }}
{{ form_widget(form_export.format, { 'attr' : { 'class': 'custom-select' } }) }}
{{ form_widget(form_export.submit, { 'attr' : { 'class': 'btn btn-save' } }) }}
{{ form_rest(form_export) }} {{ form_end(form_export) }}
{{ chill_delegated_block('block_footer_show', { 'event': event }) }}
{% endblock %}