{% extends 'base.html.j2' %} {# NateMan – Nachschreibtermin-Manager templates/klausuren/stufe.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 . #} {% block title %}Klausuren {{ stufe.name }}{% endblock %} {% block header %}Klausuren {{ stufe.name }}{% endblock %} {# stufe #} {# dates_anstehend #} {# dates_vergangen #} {% set lehrer_can_access = g.lehrer is not none and g.lehrer.can_access(stufe) %} {% set klausur_count = dates_anstehend | length + dates_vergangen | length %} {% set beratungslehrer_list = Lehrer.query.filter_by(beraet=stufe).all() %} {% block content %}

Beratungslehrkräfte: {% if beratungslehrer_list|length == 0 %} keine {% else %} {% for l in beratungslehrer_list %} {{ l.kuerzel }}{% if l.email is not none %} <{{ l.email }}>{% endif %}{% if not loop.last %},{% endif %} {% endfor %} {% endif %}

{% if lehrer_can_access %}

Klausur hinzufügen

{% endif %} {% if klausur_count != 0 %}

zu heute springen

{% endif %} {% if klausur_count == 0 %}

keine

{% else %} {% for dates_list in (dates_anstehend, dates_vergangen) %} {% if loop.index0 == 1 %}
heute ({{ util.format_date(datetime.now()) }})
{% endif %} {% for date in dates_list %} {% set date_klausur_list = Klausur.query.filter_by(stufe=stufe, date=date).all() %} {% set date_iso = date.strftime('%Y-%m-%d') %}

{{ util.format_date(date) }}:

{% if lehrer_can_access %} {% endif %} {% for k in date_klausur_list %} {% if lehrer_can_access %} {% if k.edited %} {% else %} {% endif %} {% if k.annotation is not none %} {% else %} {% endif %} {% endif %} {% endfor %}
Lehrkraft Kurs Zeitraumbearbeitet Bemerkung
{{ k.lehrer.kuerzel }} {{ k.kursname }} {{ zeitraum(k) }} Std.janein{{ k.annotation }}keine
{% endfor %} {% endfor %} {% endif %} {% endblock %}