{% extends "cms/home.html" %} {% load cms_tags danceschool_tags sekizai_tags static i18n %} {% block content %} {% page_url 'directions' as directions_url %} {% page_url 'calendar' as calendar_url %}
{# Display any warning or error messages associated with the previous form submission #}
{% for message in messages %}
{{ message }}
{% endfor %}
{% block top %} {% static_placeholder 'registration_top' %} {% endblock %}
{% block coming_soon %} {% if not allSeries and not allEvents and not categorySeparateSeries and not categorySeparateEvents %}

{% trans "More Classes and Events Coming Soon!" %}

{% blocktrans %}Our upcoming classes have not yet been posted, but don't worry, they will be posted here soon! Check back soon for more information.{% endblocktrans %}

{% if calendar_url %}

{% blocktrans %}In the meantime, check out our calendar for more information about our past and current classes.

{% endblocktrans %}{% endif %} {% elif not allSeries and not categorySeparateSeries %}

{% trans "More Classes Coming Soon!" %}

{% blocktrans %}Our upcoming classes have not yet been posted, but don't worry, they will be posted here soon! Check back soon for more information.{% endblocktrans %}

{% if calendar_url %}

{% blocktrans %}In the meantime, check out our calendar for more information about our past and current classes.

{% endblocktrans %}{% endif %} {% endif %} {% endblock %} {% if allSeries or allEvents %} {% block registration_form %}
{% csrf_token %} {{ form.voucher_id }} {% block door_reg %} {% if perms.core.accept_door_payments %} {% endif %} {% endblock %} {% if regOpenEvents or regOpenSeries or categorySeparateSeries or categorySeparateEvents %} {% endif %}
{{ form.non_field_errors }}
{# List of Category-separated Series #} {% block category_separate_series %} {% regroup categorySeparateSeries by category as category_separated_list %} {% for category_list in category_separated_list %} {% if "core/registration/series_category_"|add:category_list.grouper.slug|add:".html"|template_exists %} {% include "core/registration/series_category_"|add:category_list.grouper.slug|add:".html" %} {% else %} {% include "core/registration/series_category__default.html" %} {% endif %} {% endfor %} {% endblock %} {# List of Category-separated Public Events #} {% block category_separate_events %} {% regroup categorySeparateEvents by category as category_separated_list %} {% for category_list in category_separated_list %} {% if "core/registration/event_category_"|add:category_list.grouper.slug|add:".html"|template_exists %} {% include "core/registration/event_category_"|add:category_list.grouper.slug|add:".html" %} {% else %} {% include "core/registration/event_category__default.html" %} {% endif %} {% endfor %} {% endblock %} {# List of Class Series with Open Registration #} {% block reg_open_series %} {% if regOpenSeries %} {% include "core/registration/event_group.html" with group_header='Register Now: Upcoming Class Series' group_section='Class Series' group=regOpenSeries %} {% endif %} {% endblock %} {# List of Upcoming Public Events with Open Registration #} {% block reg_open_events %} {% if regOpenEvents %} {% include "core/registration/event_group.html" with group_header='Register Now: Upcoming Events' group_section='Events' group=regOpenEvents %} {% endif %} {% endblock %} {# List of Upcoming Public Events without/with closed Registration #} {% block reg_closed_events %} {% if regClosedEvents %} {% include "core/registration/event_group.html" with group_header='Upcoming Events (No Registration Required)' group_section='Events' group=regClosedEvents %} {% endif %} {% endblock %} {# List of Ongoing Class Series with closed Registration #} {% block reg_closed_series %} {% if regClosedSeries %} {% include "core/registration/event_group.html" with group_header='Ongoing Series (Registration Closed)' group_section='Class Series' group=regClosedSeries %} {% endif %} {% endblock %}
{% endblock %} {% endif %}
{% block content_js %} {% addtoblock "js" %} {% endaddtoblock %} {% addtoblock "js" %} {% endaddtoblock %} {% addtoblock "js" %} {{ form.media }} {% endaddtoblock %} {% endblock %} {% endblock %}