{% load i18n %}
{% if regies %}
<h2>{% trans "Basket" %}</h2>
{% for regie_info in regies %}
{% if regies|length != 1 %}<h3 class="regie-name">{{regie_info.regie.label}}</h3>{% endif %}
<form action="{% url 'lingo-pay' %}" method="POST">
{% csrf_token %}
<input type="hidden" name="next_url" value="{{ cell.page.get_online_url }}" />
{% if regies|length != 1 %}<input type="hidden" name="regie" value="{{regie_info.regie.id}}" />{% endif %}
<ul>
  {% for item in regie_info.items %}
  <li><label><input style="display: none;" type="checkbox" name="item" value="{{ item.id }}" checked/></label>
          <a class="label-item" href="{{ item.source_url }}">{{ item.subject }}</a> <span class="amount-item">{{ item.amount }} &euro;</span>
          {% if item.user_cancellable %}
          <a class="remove-item" rel="popup" href="{% url 'lingo-cancel-item' pk=item.id %}">{% trans 'remove' %}</a>
          {% endif %}
  </li>
  {% endfor %}
  <li><strong>{% trans "Total:" %}</strong> {{ regie_info.total }} &euro;</li>
</ul>
<input id="pay" type="submit" value="Payer votre commande"/>
<a href="{{portal_url}}demarches" id="new-command">Commander un autre document</a>
<!--input type="submit" value="{% trans "Pay" %}"/-->
</form>
{% endfor %}
{% endif %}
