{% extends 'core/base.html' %} {% load data_helpers static %} {% block extra_head %} {% endblock %} {% block content %}

Stundenplan {{ el }}

{# Show class teacher and deputy class teacher #} {% if type == 2 and el.teachers %}
Klassenlehrkräfte: {% for teacher in el.teachers %} {{ teacher.shortcode }}{% 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 #}
SMART PLAN slideshow REGELPLAN ANZEIGEN
{# Week select #}
{% else %} {# Show if regular #} slideshow SMART PLAN ANZEIGEN {% endif %}
{# {% include "chronos/hintsinplan.html" %}#} {# 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 %}
{# Lesson number #} {{ period }}. {# Time dimension of lesson #}
{% with period_obj=periods|get_dict:period %} {{ period_obj.0|date:"H:i" }}
{{ period_obj.1|date:"H:i" }} {% endwith %}
{% for weekday, lessons in lesson_periods_period.items %} {# A lesson #}
{% include "chronos/lesson.html" with lessons=lessons %}
{% endfor %}
{% endfor %}
{# show 5 seperate ones on mobiles #}
{% for day in long_week_days %}
{{ day.0.0 }} {% if day.1 %} {{ day.1.0 }} {% endif %}  
{% for row, time in plan %}
{# Lesson number #} {{ time.number_format }} {# Time dimension of lesson #}
{{ time.start|date:"H:i" }}
{{ time.end|date:"H:i" }}
{% for weekday, col in row %} {% if forloop.counter0 == day.0.1 %}
{# A lesson #} {% include "timetable/lesson.html" %}
{% endif %} {% endfor %}
{% endfor %} {% endfor %}
{% endblock %}