{% load staticfiles i18n cropping data_helpers font_awesome week_helpers %} {% fa_css %}

{% 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 persons %} {% endfor %}
{% trans 'No.' %} {% trans 'Last name' %} {% trans 'First name' %} {% trans 'Sex' %} {% trans 'Date of birth' %} {% trans 'Absences' %} {% trans 'Unexcused' %} {% trans 'Tard.' %}
{{ forloop.counter }} {{ person.last_name }} {{ person.first_name }} {{ person.get_sex_display }} {{ person.date_of_birth }} {{ person.absences}} {{ person.unexcused }} {{ person.tardiness }}

{% 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 person in persons %}

{% trans 'Personal overview' %}: {{ person.last_name }}, {{ person.first_name }}

{% blocktrans %}Contact details{% endblocktrans %}

{% comment %} {% endcomment %}
{% if person.photo %} {{ person.first_name }} {{ person.last_name }} {% else %} {{ person.first_name }} {{ person.last_name }} {% endif %} {% fa 'user' %} {{ person.first_name }} {{ person.additional_name }} {{ person.last_name }}
{% fa 'venus-mars' %} {{ person.get_sex_display }}
{% fa 'fa-home' %} {{ person.street }} {{ person.housenumber }} {{ person.postal_code }} {{ person.place }}
{% fa 'phone-square' %} {{ person.phone_number }} {{ person.mobile_number }}
{% fa 'envelope' %} {{ person.email }}
{% fa 'gift' %} {{ person.date_of_birth|date }}
{% fa 'graduation-cap' %} Class Teacher
{% if personal_note_filters %}

{% trans 'Statistics on remarks' %}

{% for note_filter in personal_note_filters %} {% with "_personal_notes_with_"|add:note_filter.identifier as identifier %} {% endwith %} {% endfor %}
{% trans 'Description' %} {% trans 'Count' %}
{{ note_filter.description }}{{ person|get_dict:identifier }}
{% endif %}

{% trans 'Absences and tardiness' %}

{% trans 'Absences' %} {% trans 'Unexcused' %} {% trans 'Tardiness' %}
{{ person.absences }} {{ person.unexcused }} {{ person.tardiness }}

{% trans 'Relevant personal notes' %}

{% for note in person.personal_notes.all %} {% if note.absent or note.late or note.remarks %} {% period_to_date note.week note.lesson_period.period as note_date %} {% endif %} {% endfor %}
{% trans 'Date' %} {% trans 'Pe.' %} {% trans 'Subj.' %} {% trans 'Te.' %} {% trans 'Absent' %} {% trans 'Tard.' %} {% trans 'Remarks' %}
{{ note_date }} {{ note.lesson_period.period.period }} {{ note.lesson_period.get_subject.abbrev }} {{ note.lesson_period.get_teachers.first.short_name }} {% if note.absent %} {% trans 'Yes' %} {% if note.escused %} ({% trans 'e' %}) {% endif %} {% endif %} {% if note.late %} {{ note.late }} {% endif %} {{ note.remarks }}
{% endfor %} {% 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 %}