{% extends "pretixpresale/event/base.html" %}
{% load i18n %}
{% load eventurl %}
{% block title %}{% trans "Pay order" %}{% endblock %}
{% block content %}
    <h2>
        {% blocktrans trimmed with code=order.code %}
            Pay order: {{ code }}
        {% endblocktrans %}
    </h2>

    <form method="post" class="form-horizontal" href="" data-total="{{ order.total|floatformat:2 }}">
        {% csrf_token %}
        <input type="hidden" name="payment" value="{{ provider.identifier }}">
        <div class="form-horizontal payment-redo-form">
            {{ form }}
        </div>
        <div class="row checkout-button-row">
            <div class="col-md-4">
                <a class="btn btn-block btn-default btn-lg"
                   href="{% eventurl request.event "presale:event.order" secret=order.secret order=order.code %}">
                    {% trans "Cancel" %}
                </a>
            </div>
            <div class="col-md-4 col-md-offset-4">
                <button class="btn btn-block btn-primary btn-lg" type="submit">
                    {% trans "Continue" %}
                </button>
            </div>
            <div class="clearfix"></div>
        </div>
    </form>

{% endblock %}
