cotisations.html.twig 1.49 KB
Newer Older
1 2
{% set cotisations = getAllFlux(app.user, app.request, 'cotisation') %}
{% if cotisations|length > 0 %}
3 4 5 6
	{% set idcard = 'cotisationspresta' %}
	{% extends 'block/block_collapse.html.twig' %}

	{% block blocktitle %}
7
		<i class="fa fa-clipboard-list mr-4"></i> {{ 'Mes cotisations'|trans }}
8 9 10 11
	{% endblock blocktitle %}
	{% block blocksubtitle %}
	{% endblock blocksubtitle %}
	{% block blockcontent %}
12 13 14 15 16 17 18
		{# {% 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 %} #}
19
		<ul class='list-group'>
Julien Jorry committed
20 21
			{% for cotisation in cotisations %}
				<li class="list-group-item"><span class='btn btn-xs btn-primary disabled'>{{cotisation.annee|upper}}</span> <b>{{cotisation.montant}}&euro;</b> <em> {{ 'payée le'|trans }} {{cotisation.createdAt|date('d/m/Y')}} en {{cotisation.moyen}}</em></li>
22 23
			{% endfor %}
		</ul>
Julien Jorry committed
24

25
		{% if ((app.user and app.user.isGranted('ROLE_ADHERENT') and app.user.adherent) or (app.user and app.user.isGranted('ROLE_PRESTATAIRE') and app.session.has('_prestagere'))) %}
Julien Jorry committed
26
			<a class='btn btn-xs btn-primary' href='{{ path('cotiser') }}'>
27
				{{ 'Cotiser en MLC'|trans }}
Julien Jorry committed
28 29
			</a>
		{% endif %}
30 31
	{% endblock blockcontent %}
{% endif %}