{% if KOH_USE_SEPA == 'true' %} {% set idcard = 'sepa_mlc' %} {% extends '@kohinos/block/block_collapse.html.twig' %} {% block blocktitle %} {{ 'Mes prélèvements SEPA pour la monnaie locale'|trans }} {% endblock blocktitle %} {% block blocksubtitle %} {% endblock blocksubtitle %} {% block blockcontent %} {% set hasActiveMandate = hasActiveSepaMandateForEntity(app.user.adherent) %} {# Section 1 : Mandat SEPA #} {% if not hasActiveMandate %}
{{ 'Vous n\'avez pas encore de mandat SEPA. Créez-en un pour activer les prélèvements automatiques.'|trans }}
{{ 'Créer un mandat SEPA'|trans }} {% else %}
{{ 'Vous avez un mandat SEPA actif. Vous pouvez mettre en place des prélèvements automatiques.'|trans }}
{% endif %} {# Section 2 : Cotisation MLC récurrente #}
{{ 'Ma cotisation annuelle automatique'|trans }}
{% set mlcSubscription = getRecurringMlcSubscriptionForAdherent(app.user.adherent) %} {% include '@kohinos/block/sepa_mlc_subscription_block.html.twig' with { 'mlcSubscription': mlcSubscription, 'entityType': 'adherent', 'modifyRoute': 'adherent_recurring_subscription', 'createRoute': 'adherent_recurring_subscription', 'allowEmlcPayment': true, 'hasActiveMandate': hasActiveMandate } %} {# Section 3 : Achat mensuel MLC récurrent #}
{{ 'Mon achat mensuel automatique de monnaie locale'|trans }}
{% set purchaseRequest = getRecurringPurchaseForAdherent(app.user.adherent) %} {% include '@kohinos/block/sepa_purchase_block.html.twig' with { 'purchaseRequest': purchaseRequest, 'entityType': 'adherent', 'modifyRoute': 'adherent_recurring_purchase', 'createRoute': 'adherent_recurring_purchase', 'hasActiveMandate': hasActiveMandate } %} {# Section 4 : Aide et informations #}
{{ 'Comment ça fonctionne ?'|trans }}
{% endblock blockcontent %} {% endif %}