{# -*- engine:django -*- #} {% extends 'core/base.html' %} {% load data_helpers static i18n %} {% block extra_head %} {% endblock %} {% block browser_title %}{% blocktrans %}Timetable{% endblocktrans %}{% endblock %} {% block content %} {% if smart %} {{ week_select|json_script:"week_select" }} {% endif %}

{% trans "Timetable" %} {{ el }}

{# Show class teacher and deputy class teacher #} {% if type == "group" and el.owners.all %}
{% trans "Group teachers:" %} {% for teacher in el.owners.all %} {{ teacher.short_name }}{% if not forloop.last %},{% endif %} {% endfor %}
{% endif %}
{# Show print button only if not on mobile #}
print
{% if smart %} {# Show if smart #} {# Toggle button to regular and smart plan badge #}
{% trans "SMART PLAN" %} slideshow {% trans "Show regular timetable" %}
{# Week select #}
{% with wanted_week=week %}
{% endwith %}
{% else %} {# Show if regular #} slideshow {% trans "Show SMART PLAN" %} {% endif %}
{% include "core/announcements.html" with announcements=announcements show_interval=1 %} {# show full timetable on tablets, laptops and pcs #}
{# Week days #}
{# Show short weekdays on tablets #} {% for day in weekdays_short.items %}
{{ day.1 }} {# {% if day.1 %}#} {# {{ day.1.0 }}#} {# {% endif %}#}
{% endfor %} {# Show long weekdays elsewere #} {% for day in weekdays.items %}
{{ day.1 }} {# {% if day.1 %}#} {# {{ day.1.0 }}#} {# {% endif %}#}
{% endfor %}
{# Lessons #} {% for period, lesson_periods_period in lesson_periods.items %}
{% include "chronos/partials/period_time.html" with period=period periods=periods %}
{% for weekday, lessons in lesson_periods_period.items %} {# A lesson #}
{% include "chronos/partials/lesson.html" with lessons=lessons %}
{% endfor %}
{% endfor %}
{# show 5 seperate ones on mobiles #}
{% for day in weekdays.items %}
{{ day.1 }} {# {% if day.1 %}#} {# {{ day.1.0 }}#} {# {% endif %}#} {#  #}
{% for period, lesson_periods_period in lesson_periods.items %}
{% include "chronos/partials/period_time.html" with period=period periods=periods %}
{% for weekday, lessons in lesson_periods_period.items %} {% if forloop.counter0|add:"1" == day.0 %}
{# A lesson #} {% include "chronos/partials/lesson.html" with lessons=lessons %}
{% endif %} {% endfor %}
{% endfor %} {% endfor %}
{% endblock %}