list events by person, add pagination

This commit is contained in:
2019-01-17 13:59:20 +01:00
parent 7abf403463
commit d07cbb15da
2 changed files with 40 additions and 11 deletions

View File

@@ -58,11 +58,11 @@
<td>
<ul class="record_actions">
<li>
{# {% if is_granted('CHILL_EVENT_SEE_DETAILS', event) %} #}
<a href="{{ path('chill_event__event_show', { 'event_id' : participation.event.id } ) }}" class="sc-button black">
{{ 'See'|trans }}
</a>
{# {% endif %} #}
{% if is_granted('CHILL_EVENT_SEE_DETAILS', participation.event) %} #}
<a href="{{ path('chill_event__event_show', { 'event_id' : participation.event.id } ) }}" class="sc-button black">
{{ 'See'|trans }}
</a>
{% endif %}
{% if is_granted('CHILL_EVENT_UPDATE', participation.event) %}
<a href="{{ path('chill_event__event_edit', { 'event_id' : participation.event.id } ) }}" class="sc-button bt-update">
{{ 'Edit'|trans }}
@@ -83,19 +83,22 @@
</table>
{% if participations|length < paginator.getTotalItems %}
{{ chill_pagination(paginator) }}
{% endif %}
<pre>
/!\ dev notes
=============
- problème de cohérence avec le bouton voir et avec le bouton modifier
- checker les autorisations pour les boutons
- TODO pagination
- affichage différencié pour les événements passés/présents/futur
- person menu, utiliser authorizationHelper ou authorizationChecker ??
</pre>
{#
{{ dump() }}
{#
#}
{% endblock %}