{% extends "cms/home.html" %} {% load danceschool_tags crispy_forms_tags cms_tags i18n %} {% block title %}{% trans "Complete Your Registration" %}{% endblock %} {% block content %} {# Display any warning or error messages associated with the previous form submission #}
{% for message in messages %}
{{ message }}
{% endfor %}
{% block summary %}

{% blocktrans with name=invoice.firstName|default_if_none:"Friend" %} Hi {{ name }}! {% endblocktrans %}

{% trans "You have selected the following" %}:

{% for item in invoice.invoiceitem_set.all %} {% with item.eventRegistration as er %} {% if er %} {% else %} {% endif %} {% endwith %} {% endfor %}
{% trans "Description" %} {% trans "Date(s)" %} {% trans "Time" %} {% trans "Role" %} {% trans "Price" %}
{% if er.dropIn %}{% trans "DROP IN" %}: {% endif %}{{ er.event.name }} {% if er.event.eventoccurrence_set.count == 4 and not er.event.series.special %} {% blocktrans with weekday=er.event.startTime|date:"l" month=er.event.month|readable_month startTime=er.event.startTime|date:"F jS" %} {{ weekday }}s in {{ month }}, starting {{ startTime }} {% endblocktrans %} {% else %} {% for occ in er.event.eventoccurrence_set.all reversed %} {{ occ.startTime|date:"D. F jS" }}{% if not forloop.last %}, {% endif %} {% endfor %} {% endif %} {{ er.event.startTime|date:"P" }} {{ er.role.name|default:"N/A" }}{{ item.description }} {{ currencySymbol }}{{ item.grossTotal|floatformat:"-2" }}
{% if addonItems %}

{% for addon in addonItems %} {% trans "Free Add-On" %}: {{ addon.name }} {% endfor %}

{% endif %}

{% if total_discount_amount > 0 %} {% for code in discount_codes %} {% trans "Discount Code Applied" %}: {{ code.0 }}, {{ currencySymbol }}{{ code.2|floatformat:"-2" }}
{% endfor %} {% if discount_codes %}
{% endif %} {% if vouchers.items %} {% trans "Vouchers Applied" %}: {% for v in vouchers.items %} {{ v.name }}{% if not forloop.last %}, {% endif %} {% endfor %}

{% endif %} {% trans "Total Discounts Applied" %}: {{ currencySymbol }}{{ total_discount_amount|floatformat:"-2" }}

{% endif %} {# Add taxes if they are not included in the published price #} {% if invoice.adjustments or invoice.amountPaid or invoice.taxes and invoice.buyerPaysSalesTax %} {% trans "Subtotal" %}: {{ currencySymbol }}{{ invoice.total|floatformat:"-2" }}
{% endif %} {% if invoice.taxes %} {% trans "Taxes" %}: {{ currencySymbol }}{{ invoice.taxes|floatformat:"-2" }}
{% endif %} {% if invoice.amountPaid %} {% trans "Previous Payments" %}: - {{ currencySymbol }}{{ invoice.amountPaid|floatformat:"-2" }}
{% endif %}

{% trans "Total" %}: {{ currencySymbol }}{{ invoice.outstandingBalance|floatformat:"-2" }}

{% endblock %} {% block payment_info %} {% if is_complete or zero_balance %}

{% trans "Thanks! You're all set." %}

{% trans "Return" %}

{% else %}

{% trans "In order to complete your registration you must click on the button below to make a payment." %}

{% if payAtDoor %} {% static_placeholder "registration_payatdoor_placeholder" %} {% static_placeholder "registration_invoice_placeholder" %} {% else %} {% static_placeholder "registration_payment_placeholder" %} {% endif %} {% endif %} {% endblock %} {% block disclaimer %} {% static_placeholder "registration_summary_disclaimer" %} {% endblock %}
{% endblock %}