{% extends '@kohinos/block/onetransaction.html.twig' %} {# Cotisation obligatoire pour les prestataires #} {% set cotisation_required = KOH_ALLOW_COTISATION|default('false') == 'true' and KOH_COTISATION_PRESTATAIRE_MANDATORY|default('false') == 'true' and false == isCotisationValid(app.user) %} {# DISABLE ALL TRANSACTIONS IF USER HAS NO COTISATION VALID #} {% block blocktoggle %}{% if not cotisation_required %}collapse{% endif %}{% endblock blocktoggle %} {% block blocktitle %} Virement vers un adhérent {% endblock blocktitle %} {% block blockcontent %} {% if cotisation_required %} {% include '@kohinos/block/_cotisation_required_message.html.twig' with {'operation_label': 'les virements vers les adhérents'} %} {% else %} {% set form = getTransactionPrestataireAdherentForm(app.user) %} {{ parent() }} {% endif %} {% endblock blockcontent %}