{% extends 'core/base_print.html' %} {% load data_helpers static i18n %} {% block extra_head %} {% endblock %} {% block page_title %} {% trans "Timetable" %} {{ el.short_name|default:el.name }} {% endblock %} {% block content %}
{# Week days #}
{% for weekday in weekdays %}
{{ weekday.1 }}
{% endfor %}
{% for row in timetable %}
{% if row.type == "period" %} {% include "lesrooster/partials/slot_time.html" with slot=row.slot %} {% endif %}
{% for col in row.cols %} {# A lesson #}
{% if col.type == "period" %} {% include "lesrooster/partials/elements.html" with elements=col.col %} {% else %} {% include "lesrooster/partials/supervision.html" with supervision=col.col %} {% endif %}
{% endfor %}
{% endfor %}
{% trans "Validity range" %}: {{ time_grid.validity_range.date_start }}–{{ time_grid.validity_range.date_end }} {% endblock %}