{# -*- engine:django -*- #} {% extends "core/base.html" %} {% load week_helpers %} {% load material_form i18n static %} {% block browser_title %}{% blocktrans %}Lesson{% endblocktrans %}{% endblock %} {% block extra_head %} {{ block.super }} {% endblock %} {% block page_title %} {{ day }}, {% blocktrans with period=lesson_period.period.period %}{{ period }}. period{% endblocktrans %} – {% for group in lesson_period.get_groups.all %} {{ group.name }}, {% endfor %} {{ lesson_period.get_subject.name }}, {% for teacher in lesson_period.get_teachers.all %} {{ teacher.short_name }} {% endfor %} {% include "alsijil/partials/lesson_status_icon.html" with period=lesson_period css_class="medium" %} {% endblock %} {% block content %}
{% with prev_lesson=lesson_period.prev %} arrow_back {% trans "Previous lesson" %} {% endwith %} {% with next_lesson=lesson_period.next %} arrow_forward {% trans "Next lesson" %} {% endwith %}
{% include "core/partials/save_button.html" %}
{% csrf_token %}
{% with prev_lesson=lesson_period.prev prev_doc=prev_lesson.get_lesson_documentation %} {% with prev_doc=prev_lesson.get_lesson_documentation absences=prev_lesson.get_absences tardinesses=prev_lesson.get_tardinesses %} {% if prev_doc %} {% weekday_to_date prev_lesson.week prev_lesson.period.weekday as prev_date %}
{% blocktrans %}Overview: Previous lesson{% endblocktrans %} ({{ prev_date }}, {% blocktrans with period=prev_lesson.period.period %}{{ period }}. period{% endblocktrans %}) {% if prev_doc.topic %} {% endif %} {% if prev_doc.homework %} {% endif %} {% if absences %} {% endif %} {% if tardinesses %} {% endif %}
{% trans "Lesson topic of previous lesson:" %} {{ prev_doc.topic }}
{% trans "Homework for this lesson:" %} {{ prev_doc.homework }}
{% trans "Absent persons:" %} {% include "alsijil/partials/absences.html" with notes=absences %}
{% trans "Late persons:" %} {% include "alsijil/partials/tardinesses.html" with notes=tardinesses %}
{% endif %} {% endwith %} {% endwith %}
{% blocktrans %}Lesson documentation{% endblocktrans %} {% form form=lesson_documentation_form %}{% endform %}
{% blocktrans %}Change history{% endblocktrans %} {% include 'core/partials/crud_events.html' with obj=lesson_documentation %}
{% blocktrans %}Personal notes{% endblocktrans %} {% form form=personal_note_formset.management_form %}{% endform %} {% for form in personal_note_formset %} {{ form.id }} {% endfor %}
{% blocktrans %}Person{% endblocktrans %} {% blocktrans %}Absent{% endblocktrans %} {% blocktrans %}Tardiness{% endblocktrans %} {% blocktrans %}Excused{% endblocktrans %} {% blocktrans %}Remarks{% endblocktrans %}
{{ form.person_name }}{{ form.person_name.value }}
{{ form.late }}
{{ form.remarks }}
{% include "core/partials/save_button.html" %}
{% endblock %}