{% if KOH_USE_SEPA == 'true' %} {% set currentPrestataire = app.session.get('_prestagere') %} {% if currentPrestataire %} {% set sepaMandates = getSepaMandatesForEntity(currentPrestataire) %} {% set hasActiveMandate = hasActiveSepaMandateForEntity(currentPrestataire) %} {% set idcard = 'sepa_ssa_presta' %} {% extends '@kohinos/block/block_collapse.html.twig' %} {% block blocktitle %} {{ 'Prélèvements SEPA pour les caisses SSA'|trans }} {% endblock blocktitle %} {% block blocksubtitle %} {% endblock blocksubtitle %} {% block blockcontent %} {% if not hasActiveMandate %}
{{ 'Vous n\'avez pas encore de mandat SEPA actif. Créez-en un pour pouvoir cotiser par prélèvement automatique.'|trans }}
{{ 'Créer un mandat SEPA'|trans }} {% else %}
{{ 'Vous avez un mandat SEPA actif.'|trans }}
{% endif %} {% if sepaMandates|length > 0 %}
{{ 'Mandats SEPA'|trans }}
{% endif %} {% endblock blockcontent %} {% endif %} {% endif %}