{% set prestaMLC = getMLCPrestataire() %}
{{ form_start(form) }}
    {{ form_row(form.expediteur) }}
    {{ form_row(form.destinataire) }}
    {{ form_row(form.moyen) }}
    <p id='demande_achat_text_cheque' class='demande_achat_text' style="display: none;">
        {{ 'demande_achat_text_cheque'|trans({'%ordre%': prestaMLC.raison, '%adresse%' : ((prestaMLC.geolocs|length > 0) ? prestaMLC.geolocs[0].geoloc : '')}, 'flux')|raw }}
    </p>
    <p id='demande_achat_text_virement' class='demande_achat_text' style="display: none;">
        {{ 'demande_achat_text_virement'|trans({'%iban%': prestaMLC.iban}, 'flux')|raw }}
    </p>
    <p id='demande_achat_text_helloasso' class='demande_achat_text' style="display: none;">
        <a target='_blank' href='{{ 'demande_achat_text_helloasso'|trans({'%helloasso%': prestaMLC.web}, 'flux')|raw }}'>
            {{ 'demande_achat_text_helloasso'|trans({'%helloasso%': prestaMLC.web}, 'flux')|raw }}
        </a>
    </p>
    {{ form_row(form.montant) }}
    {{ form_row(form.reference) }}
    {{ form_row(form.save) }}
{{ form_end(form) }}

<a class='btn {{ hasDemandeAchatMonnaie(false) ? 'btn-warning' : 'btn-secondary' }}' href='{{ path('listachatMonnaieAConfirmer') }}'>Voir les demande(s) {{ hasDemandeAchatMonnaie(false) ? '('~getDemandeAchatMonnaie(false)|length~' en attente)' }}</a>