{% load danceschool_tags i18n %} {% if category_list %}

{{ category_list.grouper.name }}


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

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

{{ 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 }}{% if event.room.name %} - {{ event.room.name }}{% endif %} {% else %} {{ event.location.name }}{% if event.room.name %} - {{ event.room.name }}{% endif %} {% endif %} {% if event.url %}{% trans "more info" %}{% endif %}
{% if event.pricingTier and event.registrationOpen %} {{ event.pricingTier.name }} {% endif %}
{% for occurrence in event.eventoccurrence_set.all %} {% if occurrence.startTime.date == occurrence.endTime.date and event.numOccurrences == 1 %} {{ occurrence.startTime|date:"g:i A" }} {% else %} {{ occurrence.startTime|date:"D. N j, g:i A" }} {% endif %} - {% if occurrence.startTime.date == occurrence.endTime.date %} {{ occurrence.endTime|date:"g:i A" }} {% else %} {{ occurrence.endTime|date:"D. N j, g:i A" }} {% endif %}
{% endfor %}
{% get_field_for_object event.polymorphic_ctype.model 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 %}
{% endif %}