{% 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 %} {% macro insert_onthefly(type, entity, parent = null) %} {% include '@ChillMain/OnTheFly/_insert_vue_onthefly.html.twig' with { action: 'show', displayBadge: true, targetEntity: { name: type, id: entity.id }, buttonText: entity|chill_entity_render_string, isDead: entity.deathdate is defined and entity.deathdate is not null, parent: parent } %} {% endmacro %} {% block event_content -%}
{{ 'Circle'|trans }} | {{ event.circle.name|localize_translatable_string }} |
---|---|
{{ 'Center'|trans }} | {{ event.center.name }} |
{{ 'Name'|trans }} | {{ event.name }} |
{{ 'Date'|trans }} | {{ event.date|format_date('long') }} |
{{ 'Event type'|trans }} | {{ event.type.name|localize_translatable_string }} |
{{ 'event.theme.label'|trans }} | {% for t in event.themes %} {{ t|chill_entity_render_box }} {% endfor %} |
{{ 'Moderator'|trans }} | {{ event.moderator|chill_entity_render_string }} |
{{ 'event.animators.intern'|trans }} | {% for a in event.animatorsIntern %} {{ _self.insert_onthefly('user', a) }} {% endfor %} |
{{ 'event.animators.extern'|trans }} | {% for a in event.animatorsExtern %} {{ _self.insert_onthefly('thirdparty', a) }} {% endfor %} |
{{ '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 %} |
{{ 'event.budget.resource type'|trans }} | {{ 'event.budget.amount'|trans }} | {{ 'event.budget.comment'|trans }} |
---|---|---|
{{ res.kind.name|localize_translatable_string }} | {{ res.amount|format_currency('EUR') }} | {{ res.comment.comment|chill_print_or_message(null, 'blockquote') }} |
Total | {{ totalResources|format_currency('EUR') }} |
{{ 'event.budget.no elements'|trans }}
{% endif %}{{ 'event.budget.charge type'|trans }} | {{ 'event.budget.amount'|trans }} | {{ 'event.budget.comment'|trans }} |
---|---|---|
{{ chg.kind.name|localize_translatable_string }} | {{ chg.amount|format_currency('EUR') }} | {{ chg.comment.comment|chill_print_or_message(null, 'blockquote') }} |
Total | {{ totalCharges|format_currency('EUR') }} |
{{ 'event.budget.no elements'|trans }}
{% endif %}{{ 'event.fields.documents'|trans }}
{{ 'count participations to this event'|trans({'count': count}) }}
{% if count > 0 %}{{ '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' #} |