{% extends '@kohinos/block/onetransaction.html.twig' %}

{% block blocktitle %}
	<i class="fa fa-exchange fa-exchange-alt mr-4"></i> {{ 'Encaisser la cotisation d\'un habitant'|trans }}
{% endblock blocktitle %}
{% block blockcontent %}
	{% if app.session.has('_comptoirgere') %}
		<div id="formEncaisserCotisationAdherent-montant-container" style="display:none">
			<h5> <b>Montant de la cotisation : <span id="formEncaisserCotisationAdherent-montant-display"></span></b></h5>
			<br/>
		</div>
		<div id="formEncaisserCotisationAdherent-no-cotisation-amount" style="display:none">
			<p class="formEncaisserCotisationAdherent-no-cotisation-amount">
				{% if household_based_allowance %}
					L'habitant•e n'a pas de montant de cotisation renseigné, impossible de l'encaisser.
				{% else %}
					L'habitant•e n'a pas de profil de cotisation affecté, impossible de l'encaisser.
				{% endif %}
			</p>
		</div>
		{% set form = getComptoirEncaisserCotisationForm(app.user) %}
		{{ parent() }}
	{% else %}
		<span><em> {{ 'Aucun Comptoir assigné ! Veuillez contacter un administrateur !'|trans }} </em></span>
	{% endif %}
{% endblock blockcontent %}