{% extends 'edx/base.html' %} {% load core_extras %} {% load i18n %} {% load staticfiles %} {% block title %} {% trans 'Basket' %} {% endblock title %} {% block navbar %} {% include 'edx/partials/_student_navbar.html' %} {% endblock navbar %} {% block javascript %} {% endblock %} {% block content %}
{# Use a partial template so that AJAX can be used to re-render basket #} {% if basket.is_empty %} {% block emptybasket %}

{% trans "Your basket is empty" %}

{% captureas dashboard_link_start %} {% endcaptureas %} {% captureas support_link_start %} {% endcaptureas %} {% blocktrans with link_end="" %} If you have attempted to do a purchase, 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 %} {% else %} {% if enable_client_side_checkout %} {% include 'basket/partials/client_side_checkout_basket.html' %} {% else %} {% include 'basket/partials/hosted_checkout_basket.html' %} {% endif %} {% endif %}
{% endblock content %} {% block post_js %} {# Load payment processor code after the basket app to ensure that all neccessary hooks are in place. #} {% if enable_client_side_checkout %} {% include client_side_payment_processor.get_template_name %} {% endif %} {% endblock %}