{% load staticfiles i18n cropping data_helpers %}

{% trans 'Class register' %}

{{ group.name }}

{% trans 'Owners' %}: {{ group.owners.all|join:', ' }}

{% trans 'Printed on' %} {{ today }}


{% blocktrans %} This printout is intended for archival purposes. The main copy of the class register is stored in the BiscuIT School Information System. {% endblocktrans %}

{% blocktrans %} Copies of the class register, both digital and as printout, must only be kept inside the school and/or on devices authorised by the school. {% endblocktrans %}

{% blocktrans %} The owner of the group and the headteacher confirm the above, as well as the correctness of this printout. {% endblocktrans %}

({% trans 'Owners' %}), ({% trans 'Headteacher' %})

{% trans 'Persons in group' %} {{ group.name }}

{% for person in group.members.all %} {% endfor %}
{% trans 'No.' %} {% trans 'Last name' %} {% trans 'First name' %} {% trans 'Sex' %} {% trans 'Date of birth' %}
{{ forloop.counter }} {{ person.last_name }} {{ person.first_name }} {{ person.get_sex_display }} {{ person.date_of_birth }}

{% trans 'Teachers and lessons in group' %} {{ group.name }}

{% for lesson in group.lessons.all %} {% endfor %}
{% trans 'Subject' %} {% trans 'Teacher' %} {% trans 'Lesson start' %} {% trans 'Lesson end' %} {% trans 'Per week' %}
{{ lesson.subject.name }} {{ lesson.teachers.all|join:', ' }} {{ lesson.date_start }} {{ lesson.date_end }} {{ lesson.lesson_periods.count }}
{% for week in weeks %}

{% trans 'Lesson documentation for calendar week' %} {{ week.week }}

{% for day in week %} {% with periods_by_day|get_dict:day as periods %} {% for period, documentations, notes, substitution in periods %} {% if forloop.first %} {% endif %} {% endfor %} {% endwith %} {% endfor %}
{% trans 'Pe.' %} {% trans 'Subj.' %} {% trans 'Subs.' %} {% trans 'Lesson topic' %} {% trans 'Homework' %} {% trans 'Notes' %} {% trans 'Te.' %}
{{ day }}{{ period.period.period }} {{ period.lesson.subject.abbrev }} {{ substitution.subject.abbrev }} {% if substitution.cancelled %} {% trans 'Lesson cancelled' %} {% else %} {{ documentations.0.topic }} {% endif %} {{ documentations.0.homework }} {% for note in notes %} {% if note.absent %} {{ note.person.last_name }}, {{ note.person.first_name|slice:"0:1" }}. {% if note.excused %} ({% trans 'e' %}) {% endif %} {% endif %} {% if note.late %} {{ note.person.last_name }}, {{ note.person.first_name|slice:"0:1" }}. ({{ note.late }}′) {% if note.excused %} ({% trans 'e' %}) {% endif %} {% endif %} {% endfor %} {% if documentations.0.topic %} {{ substitution.teachers.first.short_name|default:period.lesson.teachers.first.short_name }} {% endif %}
{% endfor %}