{% for week in weeks %}

{% trans 'Week' %} {{ week.week }}: {{ week.0 }}–{{ week.6 }}

{% for day in week %} {% with register_objects_by_day|get_dict:day as register_objects %} {% for register_object, documentation, notes, substitution in register_objects %} {% if forloop.first %} {% endif %} {% endfor %} {% endwith %} {% endfor %}
{% trans 'Pe.' %} {% trans 'Subj.' %} {% trans 'Lesson topic' %} {% trans 'Homework' %} {% trans 'Notes' %} {% trans 'Te.' %}
{{ day|date:"D" }} {% if register_object.label_ != "event" %} {{ register_object.period.period }} {% else %} {{ register_object.period_from_on_day }}.–{{ register_object.period_to_on_day }}. {% endif %} {% if register_object.label_ == "event" %} {% trans "Event" %} {% elif substitution %} {% include "chronos/partials/subs/subject.html" with type="substitution" el=substitution %} {% else %} {% include "chronos/partials/subject.html" with subject=register_object.get_subject %} {% endif %} {% if register_object.label_ == "event" %} {{ register_object.title }}: {{ documentation.topic }} {% elif substitution.cancelled %} {% trans 'Lesson cancelled' %} {% else %} {{ documentation.topic }} {% endif %} {{ documentation.homework }} {{ documentation.group_note }} {% for note in notes %} {% if note.absent %} {{ note.person.last_name }}, {{ note.person.first_name|slice:"0:1" }}. {% if note.excused %} {% if note.excuse_type %} ({{ note.excuse_type.short_name }}) {% else %} ({% trans 'e' %}) {% endif %} {% endif %} {% endif %} {% if note.tardiness %} {{ note.person.last_name }}, {{ note.person.first_name|slice:"0:1" }}. ({{ note.tardiness }}′) {% if note.excused %} {% if note.excuse_type %} ({{ note.excuse_type.short_name }}) {% else %} ({% trans 'e' %}) {% endif %} {% endif %} {% endif %} {% for extra_mark in note.extra_marks.all %} {{ note.person.last_name }}, {{ note.person.first_name|slice:"0:1" }}. ({{ extra_mark.short_name }}) {% endfor %} {% endfor %} {% if documentation.topic %} {{ register_object.get_teachers.first.short_name }} {% endif %}
 
{% endfor %}