{% set cotisations = getAllFlux(app.user, app.request, 'cotisation') %} {% if cotisations|length > 0 %} {% set idcard = 'cotisationspresta' %} {% extends 'block/block_collapse.html.twig' %} {% block blocktitle %} <i class="fa fa-clipboard-list mr-4"></i> {{ 'Mes cotisations'|trans }} {% endblock blocktitle %} {% block blocksubtitle %} {% endblock blocksubtitle %} {% block blockcontent %} {# {% if not isCotisationValid() %} {% if cotisations|length > 0 %} <div class='text-danger mb-3'>{{ 'Votre dernière cotisation est arrivée à expiration, veuillez cotiser de nouveau pour accéder aux fonctionnalités de votre compte !'|trans }}</div> {% else %} <div class='text-danger mb-3'>{{ 'Si vous souhaitez utiliser le fonctionnalités de votre compte, vous devez cotiser !'|trans }}</div> {% endif %} {% endif %} #} <ul class='list-group'> {% for cotisation in cotisations %} <li class="list-group-item"><span class='btn btn-xs btn-primary disabled'>{{cotisation.annee|upper}}</span> <b>{{cotisation.montant}}€</b> <em> {{ 'payée le'|trans }} {{cotisation.createdAt|date('d/m/Y')}} en {{cotisation.moyen}}</em></li> {% endfor %} </ul> {% if ((app.user and is_granted('ROLE_ADHERENT') and app.user.adherent) or (app.user and is_granted('ROLE_PRESTATAIRE') and app.session.has('_prestagere'))) %} <a class='btn btn-xs btn-primary' href='{{ path('cotiser') }}'> {{ 'Cotiser'|trans }} </a> {% endif %} {% endblock blockcontent %} {% endif %}