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

{% trans "IN YOUR CART" %}

{% for form, line_data in formset_lines_data %} {{ form.id }}
{{ line_data.product_title|default_if_none:'' }}

{{ line_data.product_title }}

{% if line_data.seat_type %}

{% blocktrans with seat_type=line_data.seat_type %} {{ seat_type }} Certificate {% endblocktrans %}

{% endif %}
{% if line_data.enrollment_code %}
{% render_field form.quantity class+="quantity form-control" min=min_seat_quantity %}
{% endif %}
{% endfor %}
{% trans "SUMMARY" %}
{% trans "Price" %} {{basket.total_incl_tax_excl_discounts|currency:basket.currency}}
{% if basket.total_discount %}
{% trans "Discounts applied" %} -{{basket.total_discount|currency:basket.currency}}
{% endif %}
{% 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 }}
{% 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" %} {% crispy payment_form %}
{% endif %}
{% if not free_basket %} {% trans "BILLING INFORMATION" %} {% if not paypal_enabled %} {% endif %}

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