{% include 'partials/header.html' %}

Vertretungen

{% include "timetable/datepicker.html" %}
{{ date|date:"l, j. F Y" }}
{% for sub in sub_table %} {% endfor %}
people access_time Lehrer Fach Raum Hinweis
{{ sub.classes }} {{ sub.lesson }} {% if sub.sub.type == 1 %} {{ sub.sub.teacher_old.shortcode }} {% elif sub.sub.teacher_new and sub.sub.teacher_old %} {{ sub.sub.teacher_old.shortcode }} {{ sub.sub.teacher_new.shortcode }} {% elif sub.sub.teacher_new and not sub.sub.teacher_old %} {{ sub.sub.teacher_new.shortcode }} {% elif sub.sub.teacher_old %} {{ sub.sub.teacher_old.shortcode }} {% endif %} {# {{ sub.teacher|safe }}#} {% if sub.sub.type == 3 %} Aufsicht {% elif not sub.sub.subject_new and not sub.sub.subject_old %} {% elif sub.sub.type == 1 or sub.sub.type == 2 %} {{ sub.sub.subject_old.shortcode }} {% elif sub.sub.subject_new and sub.sub.subject_old %} {{ sub.sub.subject_old.shortcode }}{{ sub.sub.subject_new.shortcode }} {% elif sub.sub.subject_new and not sub.sub.subject_old %} {{ sub.sub.subject_new.shortcode }} {% else %} {{ sub.sub.subject_old.shortcode }} {% endif %} {# {{ sub.subject|safe }}#} {% if sub.sub.type == 3 %} {# Supervisement #} {{ sub.sub.corridor.name }} {% elif sub.sub.type == 1 or sub.sub.type == 2 %} {# Canceled lesson: no room #} {% elif sub.sub.roow_new and sub.sub.room_old %} {# New and old room available #} {{ sub.sub.room_old.shortcode }} {{ sub.sub.room_new.shortcode }} {% elif sub.sub.room_new and not sub.sub.room_old %} {# Only new room available #} {{ sub.sub.room_new.shortcode }} {% elif not sub.sub.room_new and not sub.sub.room_old %} {# Nothing to view #} {% else %} {# Only old room available #} {{ sub.sub.room_old.shortcode }} {% endif %} {# #} {# {{ sub.sub.room }}#} {# #} {% if sub.badge %} {{ sub.badge }} {% endif %} {{ sub.text|default:"" }} {% if sub.badge %} {{ sub.badge }} {% endif %}
{% include 'partials/footer.html' %}