{# * Copyright (C) 2014, Champs Libres Cooperative SCRLFS, * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . #} {% extends "ChillPersonBundle::layout.html.twig" %} {% set activeRouteKey = 'chill_event__list_by_person' %} {% set currentPerson = person.firstName ~ ' ' ~ person.lastName %} {% block title %}{{ 'Events participation' |trans }}{% endblock title %} {% block personcontent %}

{{ 'Events participation' |trans }}

{% for participation in participations %} {% endfor %}
{{ 'Date'|trans }} {{ 'Name'|trans }} {{ 'Event type'|trans }} {{ 'Role'|trans }} {{ 'Status'|trans }}
{{ participation.event.date|format_date('long', 'short') }} {{ participation.event.name }} {{ participation.event.type.name|localize_translatable_string }} {{ participation.role.name|localize_translatable_string }} {{ participation.status.name|localize_translatable_string }}
  • {% set currentPath = path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')) %} {% set returnLabel = 'Back to %person% events'|trans({ '%person%' : currentPerson } ) %} {% if is_granted('CHILL_EVENT_SEE_DETAILS', participation.event) %} {% endif %} {% if is_granted('CHILL_EVENT_UPDATE', participation.event) and is_granted('CHILL_EVENT_PARTICIPATION_UPDATE', participation) %} {% else %} {% if is_granted('CHILL_EVENT_UPDATE', participation.event) %} {{ 'Edit the event'|trans }} {% endif %} {% if is_granted('CHILL_EVENT_PARTICIPATION_UPDATE', participation) %} {{ 'Edit the participation'|trans }} {% endif %} {% endif %}
{% if participations|length < paginator.getTotalItems %} {{ chill_pagination(paginator) }} {% endif %}
{{ form_start(form_add_event_participation_by_person) }} {{ form_widget(form_add_event_participation_by_person.event_id, { 'attr' : { 'style' : 'width: 25em; display:inline-block; ' } } ) }} {{ form_widget(form_add_event_participation_by_person.submit, { 'attr' : { 'class' : 'sc-button bt-create' } } ) }} {{ form_rest(form_add_event_participation_by_person) }} {{ form_end(form_add_event_participation_by_person) }}
{% endblock %}