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

{% block blocktitle %}
	<i class="fa fa-external-link-alt mr-4"></i> {{ 'Reconversion'|trans }}
{% endblock blocktitle %}
{% block blockcontent %}
	<p>{{'Solde de votre compte'|trans}} : {{ app.session.get('_prestagere').ecompte }}<br/>
	{% if KOH_RECONVERSION_PRESTATAIRE is defined and KOH_RECONVERSION_PRESTATAIRE != '0' and KOH_RECONVERSION_PRESTATAIRE is not empty %}
		<em>{{'Taux de reconversion'|trans}} : {{app.session.get('_prestagere').tauxreconversion ? app.session.get('_prestagere').tauxreconversion : KOH_RECONVERSION_PRESTATAIRE}}%</em>
	{% endif %}
	</p>
	{% set form = getTransfertPrestataireSiegeForm(app.user) %}
	{{ form_start(form) }}
	    {% if form.montant is defined %}
	    	{{ form_row(form.montant, { 'label': 'Montant à reconvertir : ' }) }}
	    {% endif %}
	    {% if form.reference is defined %}
	    	{{ form_row(form.reference) }}
	    {% endif %}
	{{ form_end(form) }}
{% endblock blockcontent %}