{# * 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' %} {% block title %}{{ 'Events participation' |trans }}{% endblock title %} {% block personcontent %}

{{ 'Events participation' |trans }}

{# #} {% for participation in participations %} {# #} {% endfor %}
{{ 'Name'|trans }} {{ 'Date'|trans }} {{ 'Event type'|trans }}{{ 'Circle'|trans }} {{ 'Moderator'|trans }}{{ 'Role'|trans }} {{ 'Status'|trans }}
{{ participation.event.name }} {{ participation.event.date|localizeddate('long', 'short') }} {{ participation.event.type.name|localize_translatable_string }}{{ participation.event.circle.name|localize_translatable_string }} {{ participation.event.moderator|trans|default('-') }}{{ participation.role.name|localize_translatable_string }} {{ participation.status.name|localize_translatable_string }}
  • {% if is_granted('CHILL_EVENT_SEE_DETAILS', participation.event) %} #} {{ 'See'|trans }} {% endif %} {% if is_granted('CHILL_EVENT_UPDATE', participation.event) %} {{ 'Edit'|trans }} {% endif %} {% if is_granted('CHILL_EVENT_PARTICIPATION_UPDATE', participation) %} {{ 'Edit'|trans }} {% endif %}
{% if participations|length < paginator.getTotalItems %} {{ chill_pagination(paginator) }} {% endif %}
/!\ dev notes
=============
- problème de cohérence avec le bouton voir et avec le bouton modifier
- checker les autorisations pour les boutons
- affichage différencié pour les événements passés/présents/futur
- person menu, utiliser authorizationHelper ou authorizationChecker ??
{{ dump() }} {# #} {% endblock %}