{# NateMan – Nachschreibtermin-Manager templates/schueler/versaeumnisse.html.j2 Copyright © 2020 Niklas Elsbrock This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . -#} {% extends 'base.html.j2' %} {% block title %}Versäumnisse{% endblock %} {% block header %}Versäumnisse{% endblock %} {# versaeumt_dict: Dictinonary mit jeweils eimem Tupel aus zwei Listen aller nicht nachgeschriebenen bzw. nachgeschriebenen versäumten Klausurteilnahmen pro Stufe, auf die der angemeldete Lehrer Zugriff hat #} {% block content %}
{% for stufe, versaeumt_listen in versaeumt_dict.items() %}

{{ stufe.name }}

{% for versaeumt_list in versaeumt_listen %}

{% if loop.first %} noch nicht nachgeschrieben: {% else %} bereits nachgeschrieben: {% endif %}

{% if versaeumt_list|length == 0 %}

keine

{% else %} {% for kt in versaeumt_list %} {% if kt.klausur.annotation is not none %} {% else %} {% endif %} {% endfor %}
Schüler Klausurdatum Kurs Lehrkraft Länge Bemerkung attestiert nachgeschrieben
{{ kt.schueler.nachname }}, {{ kt.schueler.vorname }} ({% if kt.schueler.stammschule is not none %}{{ kt.schueler.stammschule.name }}, {% endif %}{{ kt.schueler.id }}) {{ macros.date(kt.klausur.date) }} {{ kt.klausur.kursname }} {{ kt.klausur.lehrer.kuerzel }} {{ kt.klausur.laenge }}{{ kt.klausur.annotation }}keine
{% endif %} {% endfor %}
{% endfor %}

{% endblock %}