{% extends '@kohinos/common/layout.html.twig' %} {% block content %} {% if app.request.session.has('_ssaSubmit') and item is not null %} {% include '@kohinos/solidoume/modale_confirmation_ssa.html.twig' %} {% endif %}
{% include '@kohinos/block/breadcrumb.html.twig' with {'label' : param.name } %}
{{ param.name }}

{{ param.descriptionCotisation|raw }}



{# Affichage de la participation SEPA existante #} {% if sepaItem is defined and sepaItem %}
Votre cotisation SEPA à cette caisse
  • Montant mensuel : {{ sepaItem.amount|number_format(2, ',', ' ') }}€
  • Mode de paiement : Prélèvement SEPA (euros)
  • Statut : Actif
  • Prochains prélèvements : Le {{ ssa.executionDate }} de chaque mois
  • {% if sepaItem.isRecurrent %}
  • Type : Paiement récurrent mensuel
  • {% endif %}
Vous participez déjà à cette caisse par prélèvement SEPA automatique.
Les prélèvements sont actifs et seront effectués chaque mois. Pour modifier ou annuler votre participation, veuillez contacter le trésorier.
{% endif %} {# Restriction configurable : adhérent avec participation non archivée mais sans cotisation individuelle paramétrée. Activée depuis SolidoumeParamAdmin pour les types 'suggested' et 'fixed_min'. Le message est défini par l'admin (HTML CKEditor). #} {% if cotisationRestrictionActive is defined and cotisationRestrictionActive %} {% endif %} {# Formulaire de participation - masqué si participation SEPA active existe #} {% if form is not null and (sepaItem is not defined or not sepaItem) %} {% if effectiveMinimum is defined %} {% endif %} {# Zone montant recommandé - uniquement pour cotisationType = 'suggested' #} {% if ssa.cotisationType == 'suggested' %} {% set suggestedAmt = effectiveMinimum %} {% set tolerancePct = ssa.cotisationTolerancePercent ?? 0 %} {% set minAllowed = suggestedAmt * (1 - tolerancePct / 100) %}
{{ suggestedAmt|number_format(0, ',', ' ') }}€
recommandé
Cotisation recommandée

Ce montant a été calculé pour permettre à la caisse de fonctionner équitablement pour tous les participants.

{% if tolerancePct > 0 %}
Minimum accepté : {{ minAllowed|number_format(2, ',', ' ') }}€ ({{ suggestedAmt|number_format(2, ',', ' ') }}€ − {{ tolerancePct|number_format(0) }}%)
{% endif %}
{% endif %}
{{form_start(form)}} {{ form_row(form.user) }} {{ form_row(form.adherent) }} {% 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 %} {# Stepper +/- pour tous les modes avec champ montant #} {% set suggestedVal = effectiveMinimum %} {% set toleranceVal = ssa.cotisationTolerancePercent ?? 0 %} {% set minAllowedVal = ssa.cotisationType == 'suggested' ? suggestedVal * (1 - toleranceVal / 100) : effectiveMinimum %} {% if 'false' == KOH_SSA_SHOW_MANUEL_AMOUNT and 'false' == KOH_SSA_SHOW_SLIDER_AMOUNT and 'false' == KOH_SSA_SHOW_RADIO_AMOUNT and ssa.cotisationType != 'suggested' %} {# Montant caché (tous les contrôles désactivés, pas de stepper) #} {{ form_row(form.montant, {row_attr:{style: 'max-width: 300px;margin: 0 auto;display: none;'}}) }} {% else %} {# Stepper visible pour tous les autres modes #} {% form_theme form with ['@kohinos/solidoume/_ssa_stepper_theme.html.twig'] %}
{{ form_label(form.montant, 'Votre participation', {label_attr: {class: 'form-label fw-semibold text-center d-block mb-2 text-success'}}) }}
{{ form_widget(form.montant, { attr: { class: 'ssa-stepper-input ssa-amount-input achatmonnaie-montant', step: '1', 'data-suggested': suggestedVal, 'data-min-allowed': minAllowedVal, 'data-tolerance': toleranceVal, 'data-cotisation-type': ssa.cotisationType } }) }}
{{ form_errors(form.montant) }}
{% endif %} {% endif %} {% if form.montantslider is defined %} {{ form_row(form.montantslider) }} {% endif %} {% if form.isRecurrent is defined %} {{ form_row(form.isRecurrent) }} {% endif %} {% if (form.paiementDate is defined) %} {{ form_row(form.paiementDate) }} {% endif %} {% if (form.payNow is defined) %} {{ form_row(form.payNow) }} {% endif %} {% if form.autopayWithSsa is defined %} {{ form_row(form.autopayWithSsa) }} {% endif %} {% if form.canAutoCompleteFromMainAccount is defined %} {{ form_row(form.canAutoCompleteFromMainAccount) }} {% endif %} {% if form.isDonation is defined %} {{ form_row(form.isDonation) }} {% endif %} {% if form.householdSize is defined %} {{ form_row(form.householdSize) }} {% endif %} {% if form.paymentMethod is defined %} {{ form_row(form.paymentMethod) }} {% endif %} {% if form.don is defined %}
{{ form_row(form.don, {row_attr:{style: 'max-width: 200px;margin: 0 auto;'}}) }}

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

{% endif %}
{% if getSsaParticipation(ssa) == null or ssa.enabled == false %}
{{ form_widget(form.save) }}
{% else %} {% set item = getSsaParticipation(ssa) %} {% if item is not null and not item.isRecurrent %}
{{ form_widget(form.save, {label: 'Modifier ma participation'}) }}
{% endif %} {% endif %}
{{form_end(form)}}
{% endif %}
{% endblock %} {% block stylesheets %} {{ parent() }} {{ encore_entry_link_tags('ssa-stepper') }} {% endblock %} {% block js %} {% if app.request.session.has('_ssaSubmit') and item is not null %} {% endif %} {% endblock js %}