{% extends 'base.html.twig' %} {% block head %} {{ parent() }} {% endblock %} {% block title %} {{ parent() }} {% endblock %} {% block header %} {{ parent() }} {% endblock %} {% block body %}
{% if is_granted("ROLE_ENCADRANT") %} {% endif %}

Prochaines séances

{{ knp_pagination_render(pagination, '@KnpPaginator/Pagination/bootstrap_v5_pagination.html.twig', {}, { 'sport': app.request.query.get('sport') }) }}
{% if pagination.getTotalItemCount > 0 %}
{{ knp_pagination_render(pagination, '@KnpPaginator/Pagination/bootstrap_v5_pagination.html.twig', {}, { 'sport': app.request.query.get('sport') }) }}
{% endif %}
Filtrer
{{ form_start(filterForm, {'attr': {'class': 'filter-form'}, 'method': 'GET'}) }}
{{ form_label(filterForm.sport, 'Sports', {'label_attr': {'class': 'form-label fw-bold'}}) }} {{ form_widget(filterForm.sport, { 'attr': { 'class': 'form-select', } }) }} {{ form_errors(filterForm.sport) }}
{{ form_end(filterForm) }}
{% if is_granted('ROLE_ADMIN') %}
Administration
{% if app.request.attributes.get('_route') == 'clubArchive' %} Voir les séances actives {% else %} Voir les séances archivées {% endif %}
{% endif %}
{% if banni is defined and banni == true and not is_granted('ROLE_ADMIN') %} {% endif %} {% endblock %} {% block footer %} {{ parent() }} {% endblock %}