{% load i18n %} {% load currency_filters %} {% load crispy_forms_tags %} {% load offer_tags %} {% load widget_tweaks %} {% load static %} {% include 'partials/alert_messages.html' %}
{% csrf_token %} {{ formset.management_form }}

{% trans "in your cart" %}

{% trans "Your purchase contains the following" %}:

{% for form, line_data in formset_lines_data %} {{ form.id }}

{{ line_data.product_title }}

{% include 'oscar/basket/partials/seat_type.html' %}
{% if line_data.enrollment_code %}
{% render_field form.quantity class+="quantity form-control" min=min_seat_quantity max=max_seat_quantity title="Quantity" id="input-quantity-field" %}
Max: 100
{% endif %}
{% endfor %}

{% trans "summary" %}

{% if is_enrollment_code_purchase %}
{% trans "Price" %} {% trans "Quantity" %} {% trans "Subtotal" %}
{{line_price|currency:basket.currency}} {{basket.num_items}} {{order_total.incl_tax|currency:basket.currency}}
{% else %}
{% trans "Price" %} {{basket.total_incl_tax_excl_discounts|currency:basket.currency}}
{% endif %} {% if basket.total_discount %}
{% trans "Discounts applied" %} -{{basket.total_discount|currency:basket.currency}}
{% endif %}
{% block offers %}
{% for offer_id, offer in basket.applied_offers.items %} {% if offer.condition.enterprise_customer_name %}

{% blocktrans with enterprise_customer_name=offer.condition.enterprise_customer_name benefit=offer.benefit|benefit_discount %} {{ benefit }} discount provided by {{ enterprise_customer_name }}. {% endblocktrans %}

{% endif %} {% endfor %}
{% endblock offers %}
{% if show_voucher_form %} {% block vouchers %} {% if basket.contains_a_voucher %}
{% for voucher in basket.vouchers.all %}

{% blocktrans with voucher_code=voucher.code %} Coupon {{ voucher_code }} applied for {{ total_benefit }} off {% endblocktrans %}

{% csrf_token %}

{% endfor %}
{% else %} {# Hide the entire section if a custom BasketView doesn't pass in a voucher form #} {% if voucher_form %}
{% include 'basket/partials/add_voucher_form.html' %}
{% endif %} {% endif %} {% endblock vouchers %} {% endif %}
{% trans "TOTAL" %} {{ order_total.incl_tax|currency:basket.currency }}
{% if order_details_msg %}

{% trans "order details" %}

{{ order_details_msg | safe}}

{% endif %}
{% csrf_token %}
{% if not free_basket %} {% if paypal_enabled %}

{% trans "select payment method" %}

{# Translators: Do NOT translate the name PayPal. #}
{% endif %}

{% trans "card holder information" %}

{% if sdn_check %} {% endif %} {% crispy payment_form %}
{% endif %}
{% if not free_basket %}

{% trans "billing information" %}

{% if not paypal_enabled %} {% endif %}
{# NOTE: The PCI fields should NOT have name attributes by default. This ensures the fields are #} {# not posted to the server if JavaScript is disabled/fails. The processor-specific JS should #} {# restore the name attribute to ensure this information is sent to the payment processor. #}

{% trans "Expiration (required)" %}

{% endif %}
{% if free_basket %} {% trans "Place Order" %} {% else %} {% endif %}