{% load danceschool_tags i18n %} {% 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.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 %}

{% 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 %}
{% endfor %}
{% endfor %} {% endif %}