<%inherit file="shopping_cart_flow.html" /> <%block name="review_highlight">class="active" <%! from django.core.urlresolvers import reverse from edxmako.shortcuts import marketing_link from django.utils.translation import ugettext as _ from django.utils.translation import ungettext from openedx.core.lib.courses import course_image_url %>
<%block name="custom_content"> % if is_course_enrollment_closed: <% ## Translators: course_names is a comma-separated list of one or more course names expiry_message = ungettext( "{course_names} has been removed because the enrollment period has closed.", "{course_names} have been removed because the enrollment period has closed.", len(expired_course_names) ).format( course_names=", ".join(expired_course_names), ) %> % endif
% if shoppingcart_items: <%block name="billing_details_highlight"> % if order.order_type == 'business':
  • ${_('Billing Details')}
  • % else: % endif % if is_course_enrollment_closed:

    ${expiry_message}

    % endif <% discount_applied = False order_type = 'personal' %>
    % for item, course in shoppingcart_items: <% ## Translators: currency_symbol is a symbol indicating type of currency, ex "$". ## This string would look like this when all variables are in: ## "$500.00" unit_cost = _( "{currency_symbol}{price}" ).format( currency_symbol=currency_symbol, price="{0:0.2f}".format(item.unit_cost) ) %> % if loop.index > 0 :
    %endif % if item.order.order_type == 'business': <% order_type = 'business' %> %endif
    ${course.display_number_with_default | h} ${course.display_name_with_default_escaped} ${_('Cover Image')}
    ## Translators: "Registration for:" is followed by a course name

    ${_('Registration for:')} ${ course.display_name }

    ${_('Course Dates:')} ${ course.start_datetime_text() } - ${ course.end_datetime_text() }


    % if item.is_discounted: <% discount_applied = True %>
    ${_('Price per student:')} ## Translators: currency_symbol is a symbol indicating type of currency, ex "$". ## This string would look like this when all variables are in: ## "$500.00" ${_("{currency_symbol}{price}").format(currency_symbol=currency_symbol, price="{0:0.2f}".format(item.list_price))}
    ${_('Discount Applied:')} ${unit_cost}
    % else:
    ${_('Price per student:')} ${unit_cost}
    % endif
    % endfor
    % if not discount_applied:
    % else:
    ${_('code has been applied')}
    % endif ${_('TOTAL:')} ## Translators: currency_symbol is a symbol indicating type of currency, ex "$". currency_abbr is ## an abbreviation for the currency, ex "USD". This string would look like this when all variables are in: ## "$500.00 USD" ${_("{currency_symbol}{price} {currency_abbr}").format(currency_symbol=currency_symbol, price="{0:0.2f}".format(amount), currency_abbr=currency.upper())}
    % if order_type == 'business':

    ${_('After this purchase is complete, a receipt is generated with relative billing details and registration codes for students.')}

    % else:
    ${form_html}

    ${_('After this purchase is complete, {username} will be enrolled in this course.').format(username=u'
    {username}'.format(username=order.user.username))}

    %endif
    % else:

    ${_('Your Shopping cart is currently empty.')}

    % if is_course_enrollment_closed:

    ${expiry_message}

    % endif ${_('View Courses')}
    % endif