{% load i18n %} {% load core_extras %} {% load currency_filters %} {% load purchase_info_tags %} {% load widget_tweaks %} {% if not is_bulk_purchase %} {% include 'partials/alert_messages.html' %} {% endif %} {% if not basket.is_empty %}
{% block basket_form_main %}
{% csrf_token %} {{ formset.management_form }} {% for form, line_data in formset_lines_data %} {% purchase_info_for_line request line_data.line as session %}
{% if line_data.seat_type %}

{% trans "Earn a valuable certificate to showcase the skills you learn in" %}

{% endif %}
{{ form.id }} {{ line_data.course_name }}

{{ line_data.course_name }} - {{ line_data.course_key.org }} ({{ line_data.course_key.run }})

{{ line_data.course_short_description }}

{% if line_data.enrollment_code %}
{{ line_data.line.price_incl_tax|currency:line_data.line.price_currency }}
{% render_field form.quantity class+="quantity form-control" min=min_seat_quantity %}
{% endif %}
{% if line_data.enrollment_code %} {% endif %} {% if line_data.line.has_discount %}
{% blocktrans with benefit_value=line_data.benefit_value %} {{benefit_value}} off {% endblocktrans %}
{{ line_data.line.line_price_incl_tax|currency:line_data.line.price_currency }}
{% endif %}
{{ line_data.line.line_price_incl_tax_incl_discounts|currency:line_data.line.price_currency }}
{% endfor %}
{% endblock %}
{% if not is_bulk_purchase %} {% block vouchers %} {% if basket.contains_a_voucher %}
{% for voucher in basket.vouchers.all %}

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

{% csrf_token %}

{% endfor %}
{% else %} {# Hide the entire section if a custom BasketView doesn't pass in a voucher form #} {% if voucher_form %}
{% csrf_token %}
{% endif %} {% endif %} {% endblock vouchers %} {% endif %} {% block baskettotals %} {% include 'basket/partials/basket_totals.html' with editable=1 %} {% endblock baskettotals %}
{# Switch Basket view in between single and bulk purchase items #} {% if partner_sku %} {% endif %}
{% if free_basket %} {% trans "Place Order" %} {% else %} {% for processor in payment_processors %} {% endfor %} {% endif %}
{# Translators: tags will bold the text within. Keep the tags and translate the text within. #} {% if is_verification_required %} {% trans "Note: To earn a verified certificate, you must verify your identity with a webcam and a government-issued photo ID. " %} {% else %} {% trans "Note: To complete your enrollment, select Checkout or Checkout with PayPal." %} {% endif %}
{% else %} {% block emptybasket %}

{% trans "Your purchase could not be completed" %}

{% captureas dashboard_link_start %} {% endcaptureas %} {% captureas support_link_start %} {% endcaptureas %} {% blocktrans with link_end="" %} You have not been charged. Return to your {{ dashboard_link_start }}dashboard{{ link_end }} to try again, or {{ support_link_start }}contact {{ platform_name }} Support{{ link_end }}. {% endblocktrans %}
{% endblock %} {% endif %}