{% extends '@kohinos/block/block_collapse.html.twig' %} {# Cotisation obligatoire pour les adhérents #} {# {% set cotisation_required = KOH_ALLOW_COTISATION|default('false') == 'true' and KOH_COTISATION_ADHERENT_MANDATORY|default('false') == 'true' and false == isCotisationValid(app.user) %} #} {# {% block blocktoggle %}{% if not cotisation_required %}collapse{% endif %}{% endblock blocktoggle %} #} {% block blocktitle %} {{'Achat de monnaie locale'|trans }} {% endblock blocktitle %} {% block blockcontent %} {# {% if cotisation_required %} {% include '@kohinos/block/_cotisation_required_message.html.twig' with {'operation_label': 'l\'achat de monnaie locale'} %} {% else %} #} {% set form = getAchatMonnaieAdherentForm(app.user) %} {{form_start(form, {'attr': {'class': 'achat-monnaie-form'}})}} {{ form_errors(form) }} {% if form.montantradio is defined %}
{{ form_row(form.montantradio, {'label_attr': {'class': 'radio-group-label'}, 'attr': {'class': 'kohinos-montant-radio'}, 'row_attr': {'class': 'montant-radio-row'}}) }}
{% endif %} {% if form.montant is defined %} {% if 'false' == KOH_ACHAT_MONNAIE_SHOW_MANUEL_AMOUNT and 'false' == KOH_ACHAT_MONNAIE_SHOW_SLIDER_AMOUNT and 'false' == KOH_ACHAT_MONNAIE_SHOW_RADIO_AMOUNT %} {{ form_row(form.montant, {row_attr:{style: 'max-width: 200px;margin: 0 auto;display: none;'}}) }} {% else %} {{ form_row(form.montant, {row_attr:{style: 'max-width: 200px;margin: 0 auto;'}}) }} {% endif %} {% endif %} {% if form.montantslider is defined %} {{ form_row(form.montantslider) }} {% endif %} {% if 'true' == KOH_ACHAT_MONNAIE_SHOW_MANUEL_AMOUNT or form.montantslider is defined or form.montantradio is defined %}

{{ 'Montant choisi'|trans }} :


{% if form.don is defined %} {{ form_row(form.don, {row_attr:{style: 'max-width: 200px;margin: 0 auto;'}}) }}
{% endif %}

{{ 'TOTAL A PAYER'|trans }} :

{% endif %}
{% if form.save is defined %} {{ form_widget(form.save) }} {% endif %} {% if form.saveHelloAsso is defined %} {{ form_widget(form.saveHelloAsso) }} {# TODO {% include '@kohinos/common/helloasso_button.html.twig' with { 'name': form.saveHelloAsso.vars.name, 'type': 'submit', 'label': 'Acheter avec' } %} #} {% endif %} {% if form.payOther is defined %} {{ form_widget(form.payOther) }} {% endif %}
{{form_end(form)}} {# {% endif %} #} {% endblock blockcontent %}