{% 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 %}
{% block top %} {% static_placeholder 'registration_top' %} {% endblock %}
{% block coming_soon %} {% if not allSeries and not allEvents %}

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

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

{% if calendar_url %}

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

{% endif %} {% elif not allSeries %}

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

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

{% if calendar_url %}

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

{% 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 %}
{{ form.non_field_errors }}
{# List of Special Upcoming Class Series with Open Registration #} {% block special_series %} {% if specialSeries %}

{% trans "Register Now: Special Upcoming Classes" %}


{% regroup specialSeries|dictsort:"month" by month as open_list %} {% for month in open_list %}

{{ month.grouper|readable_month }} {% trans "Class Series" %}

{% regroup month.list|dictsort:"weekday" by weekday as weekday_list %} {% for weekday in weekday_list %}

{% readable_weekday weekday.grouper %}s

{% for event in weekday.list %}

{{ event.startTime|date:"g:i A" }} -
{{ event.endTime|date:"g:i A" }}

{{ event.name }}

{% if event.teachers %} {% trans "with" %} {{ event.teachers|join:" & "}} {% endif %} at {% if directions_url %} {{ event.location.name }} {% else %} {{ event.location.name }} {% endif %} {% if event.url %}{% trans "more info" %}{% endif %}

{% for occurrence in event.eventoccurrence_set.all reversed %} {% if occurrence.startTime.date == occurrence.endTime.date and event.numOccurrences == 1 %} {{ occurrence.startTime|date:"g:i A" }} {% else %} {{ occurrence.startTime|date:"D. N d, g:i A" }} {% endif %} - {% if occurrence.startTime.date == occurrence.endTime.date %} {{ occurrence.endTime|date:"g:i A" }} {% else %} {{ occurrence.endTime|date:"D. N d, g:i A" }} {% endif %}
{% endfor %}
{% get_field_for_object 'event' event.id form as field %}
{{ field }}
{% if validationStr %}
{{ field.errors }}
{% endif %}
{% if event.soldOut %}
{% trans "Sold Out!" %}
{% trans "Please join us for another class, another month, or schedule a private lesson!" %}
{% endif %} {% endfor %}
{% endfor %}
{% endfor %} {% endif %} {% endblock %} {# List of Class Series with Open Registration #} {% block reg_open_series %} {% if regOpenSeries %}

{% trans "Register Now: Upcoming Class Series" %}


{% regroup regOpenSeries|dictsort:"month" by month as open_list %} {% for month in open_list %}

{{ month.grouper|readable_month }} {% trans "Class Series" %}

{% regroup month.list|dictsort:"weekday" by weekday as weekday_list %} {% for weekday in weekday_list %}

{% readable_weekday weekday.grouper %}s

{% for event in weekday.list %}

{{ event.startTime|date:"g:i A" }} -
{{ event.endTime|date:"g:i A" }}

{{ event.name }}

{% if event.teachers %} {% trans "with" %} {{ event.teachers|join:" & "}} {% endif %} at {% if directions_url %} {{ event.location.name }} {% else %} {{ event.location.name }} {% endif %} {% if event.url %}{% trans "more info" %}{% endif %}

{% for occurrence in event.eventoccurrence_set.all reversed %} {{ occurrence.startTime|date:"N j"}}{% if not forloop.last %}, {% endif %} {% endfor %}
{% get_field_for_object 'event' event.id form as field %}
{{ field }}
{% if validationStr %}
{{ field.errors }}
{% endif %}
{% if event.soldOut %}
{% trans "Sold Out!" %}
{% trans "Please join us for another class, another month, or schedule a private lesson!" %}
{% endif %} {% endfor %}
{% endfor %}
{% endfor %} {% endif %} {% endblock %} {# List of Upcoming Public Events with Open Registration #} {% block reg_open_events %} {% if regOpenEvents %}

{% trans "Register Now: Upcoming Events" %}


{% regroup regOpenEvents|dictsort:"month" by month as open_list %} {% for month in open_list %}

{{ month.grouper|readable_month }} {% trans "Events" %}

{% for event in month.list %}

{% if event.numOccurrences > 1 %}{% trans "Begins" %} {% endif %}{{ event.firstOcccurrenceTime|date:"N d" }}

{{ event.startTime|date:"g:i A" }} -
{{ event.endTime|date:"g:i A" }}

{{ event.name }}

{% if event.teachers %} {% trans "with" %} {{ event.teachers|join:" & "}} {% endif %} at {% if directions_url %} {{ event.location.name }} {% else %} {{ event.location.name }} {% endif %} {% if event.url %}{% trans "more info" %}{% endif %}

{% for occurrence in event.eventoccurrence_set.all reversed %} {% if occurrence.startTime.date == occurrence.endTime.date and event.numOccurrences == 1 %} {{ occurrence.startTime|date:"g:i A" }} {% else %} {{ occurrence.startTime|date:"D. N d, g:i A" }} {% endif %} - {% if occurrence.startTime.date == occurrence.endTime.date %} {{ occurrence.endTime|date:"g:i A" }} {% else %} {{ occurrence.endTime|date:"D. N d, g:i A" }} {% endif %}
{% endfor %}
{% get_field_for_object 'event' event.id form as field %}
{{ field }}
{% if validationStr %}
{{ field.errors }}
{% endif %}
{% if event.soldOut %}
{% trans "Sold Out!" %}
{% trans "Please join us at our next event!" %}
{% endif %}
{% endfor %}
{% endfor %} {% endif %} {% endblock %} {# List of Upcoming Public Events without Registration #} {% block reg_closed_events %} {% if regClosedEvents %}

{% trans "Upcoming Events (No Registration Required)" %}


{% regroup regClosedEvents|dictsort:"month" by month as open_list %} {% for month in open_list %}

{{ month.grouper|readable_month }} {% trans "Events" %}

{% for event in month.list %}

{% if event.numOccurrences > 1 %}{% trans "Begins" %} {% endif %}{{ event.firstOcccurrenceTime|date:"N d" }}

{{ event.startTime|date:"g:i A" }} -
{{ event.endTime|date:"g:i A" }}

{{ event.name }}

{% if event.teachers %} {% trans "with" %} {{ event.teachers|join:" & "}} {% endif %} at {% if directions_url %} {{ event.location.name }} {% else %} {{ event.location.name }} {% endif %} {% if event.url %}{% trans "more info" %}{% endif %}

{% for occurrence in event.eventoccurrence_set.all reversed %} {% if occurrence.startTime.date == occurrence.endTime.date and event.numOccurrences == 1 %} {{ occurrence.startTime|date:"g:i A" }} {% else %} {{ occurrence.startTime|date:"D. N d, g:i A" }} {% endif %} - {% if occurrence.startTime.date == occurrence.endTime.date %} {{ occurrence.endTime|date:"g:i A" }} {% else %} {{ occurrence.endTime|date:"D. N d, g:i A" }} {% endif %}
{% endfor %}
{% endfor %}
{% endfor %} {% endif %} {% endblock %} {# List of Ongoing Class Series with Closed Registration #} {% block reg_closed_series %} {% if regClosedSeries %}

{% trans "Ongoing Series (Registration Closed)" %}


{% regroup regClosedSeries|dictsort:"month" by month as open_list %} {% for month in open_list %}

{{ month.grouper|readable_month }} {% trans "Class Series" %}

{% regroup month.list|dictsort:"weekday" by weekday as weekday_list %} {% for weekday in weekday_list %}

{% readable_weekday weekday.grouper %}s

{% for event in weekday.list %}

{{ event.startTime|date:"g:i A" }} -
{{ event.endTime|date:"g:i A" }}

{{ event.name }}

{% if event.teachers %} {% trans "with" %} {{ event.teachers|join:" & "}} {% endif %} at {% if directions_url %} {{ event.location.name }} {% else %} {{ event.location.name }} {% endif %} {% if event.url %}{% trans "more info" %}{% endif %}

{% for occurrence in event.eventoccurrence_set.all reversed %} {{ occurrence.startTime|date:"N j"}}{% if not forloop.last %}, {% endif %} {% endfor %}
    {% for role in event.availableRoles %}
  • {{ role.pluralName }} ({% numRegisteredForRole event role %} {% trans "registered" %})
  • {% empty %}
  • ({{ event.numRegistered }} {% trans "registered" %})
  • {% endfor %}
{% if perms.core.override_register_closed %} {% get_field_for_object 'event' event.id form as field %} {{ field }} {% if validationStr %}
{{ field.errors }}
{% endif %} {% endif %}
{% endfor %}
{% endfor %}
{% endfor %} {% endif %} {% endblock %}
{% endblock %}
{% block content_js %} {% addtoblock "js" %} {% endaddtoblock %} {% addtoblock "js" %} {% endaddtoblock %} {% endblock %} {% block content_css %} {% addtoblock "css" %} {% endaddtoblock %} {% endblock %} {% endif %} {% endblock %}