cotiser.html.twig 1.5 KB
Newer Older
Julien Jorry committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
{% extends '@kohinos/common/layout.html.twig' %}

{% block content %}
<div class='container' style='max-width: 800px;'>
	{% include '@kohinos/block/breadcrumb.html.twig' with {'label': 'Cotiser'} %}
	<h2 class='text-center w-100 mt-4 mb-4'>{{ "Cotiser pour l'année"|trans }} {{ "now"|date('Y') }}</h2>
	<div class='text-center mb-5'>
		{% if app.user and is_granted('ROLE_ADHERENT') %}
			<h4>{{ 'Solde de eMLC'|trans }} : <b>{{ app.user.adherent.emlcAccount.balance }}</b></h4>
			<h5>{{ 'Montant minimum de la cotisation'|trans }} : <b>{{ KOH_COTISATION_ADHERENT|default('') }}</b></h5>
		{% elseif app.user and is_granted('ROLE_PRESTATAIRE') %}
			<h4>{{ 'Solde de eMLC'|trans }} : <b>{{ getCurrentPrestataire().emlcAccount.balance }}</b></h4>
			<h5>{{ 'Montant minimum de la cotisation'|trans }} : <b>{{ KOH_COTISATION_PRESTATAIRE|default('') }}</b></h5>
		{% endif %}
		</h5>
		{{ form_start(form) }}
			{{ form_row(form.operateur) }}
			{{ form_row(form.role) }}
			{{ form_row(form.reference) }}
			{{ form_row(form.montant) }}
			<div class='row mt-4'>
				{% if form.payMLC is defined %}
					{% if form.payCB is defined %}
						<div class='col-6'>
							{{ form_widget(form.payMLC) }}
						</div>
						<div class='col-6'>
							{{ form_widget(form.payCB) }}
						</div>
					{% endif %}
				{% else %}
					{% if form.payCB is defined %}
						<div class='col-12'>
							{{ form_widget(form.payCB) }}
						</div>
					{% endif %}
				{% endif %}
			</div>
		{{ form_end(form) }}
	</div>
</div>
{% endblock %}