<h2>Résultat du paiement</h2>

{% with data=request.session.saga_retour_synchrone %}
  {% if data.etat == 'paye' %}

    <div id="messages">
      <ul class="messages">
        <li class="success">Paiement accepté</li>
      </ul>
    </div>

    <div>
      {% if data.factures %}
        <table class="invoices">
          <thead>
             <tr><th>N° de facture</th><th>Montant<th></tr>
          </thead>
          <tbody>
             {% for facture in data.factures %}
                <tr><td>{{ facture.num }}</td><td>{{ facture.montant_initial|floatformat:2 }} €</td></tr>
             {% endfor %}
          </tbody>
        </table>
      {% endif %}
    </div>
  {% endif %}
{% endwith %}

{{cell.text|safe}}
