{# -*- 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.value == "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 #} {% include "chronos/partials/week_select.html" with wanted_week=week %} {% 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 weekday in weekdays_short %}
{{ weekday.name }} {{ weekday.date }} {% if weekday.holiday %}
{% include "chronos/partials/holiday.html" with holiday=weekday.holiday %} {% endif %}
{% endfor %} {# Show long weekdays elsewere #} {% for weekday in weekdays %}
{{ weekday.name }} {{ weekday.date }} {% if weekday.holiday %}
{% include "chronos/partials/holiday.html" with holiday=weekday.holiday %} {% endif %}
{% endfor %}
{# Lessons #} {% for row in timetable %}
{% if row.type == "period" %} {% include "chronos/partials/period_time.html" with period=row.period periods=periods %} {% endif %}
{% for col in row.cols %} {# A lesson #}
{% if row.type == "period" %} {% include "chronos/partials/elements.html" with elements=col %} {% else %} {% include "chronos/partials/supervision.html" with supervision=col %} {% endif %}
{% endfor %}
{% endfor %}
{# show 5 seperate ones on mobiles #}
{% for weekday in weekdays %}
{{ weekday.name }} {{ weekday.date }} {% if weekday.holiday %}
{% include "chronos/partials/holiday.html" with holiday=weekday.holiday %} {% endif %}
{% for row in timetable %}
{% include "chronos/partials/period_time.html" with period=row.period periods=periods %}
{% for col in row.cols %} {% if forloop.counter0 == weekday.key %}
{# A lesson #} {% if row.type == "period" %} {% include "chronos/partials/elements.html" with elements=col %} {% else %} {% include "chronos/partials/supervision.html" with supervision=col %} {% endif %}
{% endif %} {% endfor %}
{% endfor %} {% endfor %}
{% endblock %}