{% extends '@kohinos/common/layout.html.twig' %} {% block header %}
{% endblock header %} {% block content %}
{% if validation != true %}
{{ 'Retour'|trans }} {{ prestataire }}

{{ "Encaisser un adhérent"|trans }}

{% else %}
{{ 'Retour'|trans }} {{ prestataire }}
{% if adherent_name is defined and montant is defined %}

{{ adherent_name }}

Valider le paiement de {{ montant }} {{ KOH_MLC_SYMBOL|default('eMlc') }}

Prestataire : {{ prestataire }}

{% endif %}
{% endif %} {# SHOW BALANCE MODALE#} {% if insufficientBalance is not null %} {% set modal_id = 'showbalancemodal' %} {% set modal_title = 'Mon solde'|trans %} {% set modal_content %}
{{ "Solde restant :"|trans }} {{ insufficientBalance }} {{ KOH_MLC_SYMBOL|default('eMlc') }}
{% endset %} {% include '@kohinos/block/modal.html.twig' with {'btn_primary' : null, 'btn_secondary' : 'Ok'} %}
Votre solde est insuffisant, voulez-vous consulter votre solde ?
{{ 'Oui'|trans }} {{ 'Non'|trans }}
{% endif %}
{{ form_start(form, {'attr': {'autocomplete': 'off'}}) }} {% if validation == true %}
{{ "Veuillez entrer votre code de validation"|trans }}
{{ form_row(form.adherent, {'attr': {'data-adherent-name': form.adherent.vars.data ? form.adherent.vars.data.name : ''}}) }} {{ form_row(form.montant) }} {{ form_widget(form.account_type) }} {{ form_widget(form.payment_code) }}
{% else %} {{ form_row(form.adherent) }} {{ form_row(form.montant) }} {{ form_widget(form.account_type, {'attr': {'style': 'display:none;', 'class': 'account-type-input'}}) }}
{% endif %}
{{ form_end(form) }}
{# Include the encaissement.js file #} {% block javascripts %} {{ parent() }} {{ encore_entry_script_tags('encaissement') }} {% endblock %} {% endblock %} {% block footer %}{% endblock footer %}