{% if KOH_USE_SEPA == 'true' and getCurrentPrestataire().mlc == false %} {% set sepaMandates = getSepaMandatesForEntity(getCurrentPrestataire()) %} {% set hasActiveMandate = hasActiveSepaMandateForEntity(getCurrentPrestataire()) %} {% set idcard = 'sepa_mlc_prestataire' %} {% extends '@kohinos/block/block_collapse.html.twig' %} {% block blocktitle %} {{ 'Mes prélèvements SEPA pour la cotisation annuelle'|trans }} {% endblock blocktitle %} {% block blocksubtitle %} {% endblock blocksubtitle %} {% block blockcontent %} {# 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 un prélèvement automatique pour votre cotisation annuelle.'|trans }}
#} {% endif %} {# Section 2 : Cotisation MLC récurrente pour prestataires #}
{{ 'Ma cotisation annuelle automatique'|trans }}
{% set mlcSubscription = getRecurringMlcSubscriptionForPrestataire(getCurrentPrestataire()) %} {% include '@kohinos/block/sepa_mlc_subscription_block.html.twig' with { 'mlcSubscription': mlcSubscription, 'entityType': 'prestataire', 'modifyRoute': 'prestataire_recurring_subscription', 'createRoute': 'prestataire_recurring_subscription', 'allowEmlcPayment': false, 'hasActiveMandate': hasActiveMandate } %} {# Section 3 : Achat mensuel MLC récurrent #}
{{ 'Mon achat mensuel automatique de monnaie locale'|trans }}
{% set purchaseRequest = getRecurringPurchaseForPrestataire(getCurrentPrestataire()) %} {% include '@kohinos/block/sepa_purchase_block.html.twig' with { 'purchaseRequest': purchaseRequest, 'entityType': 'prestataire', 'modifyRoute': 'prestataire_recurring_purchase', 'createRoute': 'prestataire_recurring_purchase', 'hasActiveMandate': hasActiveMandate } %} {# Section 4 : Aide et informations #}
{{ 'Comment ça fonctionne ?'|trans }}
{% endblock blockcontent %} {% endif %}