Commit c82af127 by Yvon Kerdoncuff

Merge branch '4422-don-association' into 'develop'

4422 don association

See merge request cooperatic/kohinos-tav!35
parents 7c35e29b 0dac26fc
......@@ -25,11 +25,12 @@ class DonFormType extends FluxFormType
])
->add('montant', MoneyType::class, [
'data' => 0,
'label' => "Don à l'association :",
'label' => $this->container->getParameter('tav_env') ? "Don à la caisse alimentaire :" : "Don à l'association :",
'required' => false,
'constraints' => [
new GreaterThanOrEqual(['value' => 0]),
],
'attr' => ['autocomplete' => 'off']
])
->remove('save')
;
......
{% set idcard_sub = idcard_sub|default(random(50000)) %}
{% set collapse = collapse is defined ? collapse : 'collapse' %}
<div class="">
<div class="card-header" onmouseover="$(this).addClass('border-primary');" onmouseout="$(this).removeClass('border-primary');" data-toggle="{% block blocktoggle %}collapse{% endblock blocktoggle %}" data-target="#collapse{{idcard_sub}}" aria-expanded="false" aria-controls="collapse{{idcard_sub}}">{% block blocktitle %}{% endblock blocktitle %}</div>
<div class="card-body {{collapse}}" id="collapse{{idcard_sub}}">
{% block blocksubtitle %}<h4 class="card-title"></h4>{% endblock blocksubtitle %}
<div class="card-text">
{% block blockcontent %}
{% endblock blockcontent %}
</div>
</div>
</div>
......@@ -15,7 +15,7 @@
</p>
{{form_start(form)}}
{% if form.don is defined %}
{{ form_row(form.don, {row_attr:{style: 'max-width: 200px;margin: 0 auto;'}}) }}
{% include '@kohinos/tav/block/adherent_payer_cotisation_don.html.twig' %}
<hr/>
<p><b>{{ 'TOTAL A PAYER'|trans }} : <span class="achat_monnaie_montant_total">{{ form.montant.vars.value }}</span></b></p>
{% endif %}
......
{% extends '@kohinos/block/block_collapse_sub.html.twig' %}
{% block blocktitle %}
En plus de ma cotisation je souhaite faire un don pour ce mois
{% endblock blocktitle %}
{% block blockcontent %}
{{ form_row(form.don, {row_attr:{style: 'max-width: 200px;margin: 0 auto;'}}) }}
{% endblock blockcontent %}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment