{# Message d'erreur pour cotisation requise Variables: - operation_label (optional): Label de l'opération bloquée (ex: "les transactions", "l'achat de monnaie") - show_link (optional): true pour afficher le lien vers le paiement de cotisation (default: true) #} {% set operation_label = operation_label|default("cette opération") %} {% set show_link = show_link|default(true) %}
{{ 'Cotisation requise'|trans }}

{{ 'Votre cotisation n\'est pas à jour. Vous ne pouvez pas accéder à %operation%.'|trans({'%operation%': operation_label}) }}

{{ 'Veuillez renouveler votre cotisation pour accéder de nouveau à cette fonctionnalité.'|trans }}

{% if show_link %}
{% if is_granted('ROLE_PRESTATAIRE') and app.user.prestataire is defined %} {% if KOH_USE_HELLOASSO|default('false') == 'true' and KOH_HELLOASSO_URL_COTISATION_PRESTATAIRE|default('') != '' %} {{ 'Payer ma cotisation en ligne'|trans }} {% elseif KOH_USE_PAYZEN|default('false') == 'true' %} {{ 'Payer ma cotisation'|trans }} {% else %} {{ 'Contactez l\'association pour renouveler votre cotisation.'|trans }} {% endif %} {% elseif is_granted('ROLE_ADHERENT') and app.user.adherent is defined %} {% if KOH_USE_HELLOASSO|default('false') == 'true' and KOH_HELLOASSO_URL_COTISATION_ADHERENT|default('') != '' %} {{ 'Payer ma cotisation en ligne'|trans }} {% elseif KOH_USE_PAYZEN|default('false') == 'true' %} {{ 'Payer ma cotisation'|trans }} {% else %} {{ 'Contactez l\'association pour renouveler votre cotisation.'|trans }} {% endif %} {% else %} {{ 'Contactez l\'association pour renouveler votre cotisation.'|trans }} {% endif %}
{% endif %}