{# -*- engine:django -*- #} {% extends "core/base.html" %} {% load rules data_helpers week_helpers i18n material_form django_tables2 %} {% block browser_title %}{% blocktrans %}Class register: person{% endblocktrans %}{% endblock %} {% block page_title %} {% has_perm "alsijil.view_my_students" user as has_students %} {% if has_students %} chevron_left {% trans "Back" %} {% endif %} {% blocktrans with person=person %} Class register overview for {{ person }} {% endblocktrans %} {% endblock %} {% block content %}
{% if register_object_table %}
{% include "alsijil/partials/objects_table.html" with table=register_object_table filter_form=filter_form %}
{% endif %}
{% has_perm "alsijil.edit_person_overview_personalnote" user person as can_mark_all_as_excused %} {% has_perm "alsijil.register_absence" user person as can_register_absence %} {% if can_register_absence %} rate_review {% trans "Register absence" %} {% endif %}
{% trans "Unexcused absences" %}
    {% for note in unexcused_absences %}
  • {% has_perm "alsijil.edit_personalnote" user note as can_edit_personal_note %} {% if can_edit_personal_note %}
    {% csrf_token %} {% trans "Mark as" %} {% include "alsijil/partials/mark_as_buttons.html" %} cancel
    {% endif %} warning

    {{ note.date }}, {{ note.lesson_period }}

    {% if note.remarks %}

    {{ note.remarks }}

    {% endif %} {% if can_edit_personal_note %}
    {% csrf_token %} {% trans "Mark as" %} {% include "alsijil/partials/mark_as_buttons.html" %} cancel
    {% endif %}
  • {% empty %}
  • check {% trans "There are no unexcused lessons." %}
  • {% endfor %}
{% if stats %}
{% trans "Statistics on absences, tardiness and remarks" %}
    {% for school_term, stat in stats %}
  • date_range{{ school_term }}
    {% for excuse_type in excuse_types %} {% endfor %} {% for extra_mark in extra_marks %} {% endfor %}
    {% trans 'Absences' %} {{ stat.absences_count }}
    {% trans "thereof" %} {% trans 'Excused' %} {{ stat.excused }}
    {{ excuse_type.name }} {{ stat|get_dict:excuse_type.count_label }}
    {% trans 'Unexcused' %} {{ stat.unexcused }}
    {% trans 'Tardiness' %} {{ stat.tardiness }}'/{{ stat.tardiness_count }} ×
    {{ extra_mark.name }} {{ stat|get_dict:extra_mark.count_label }}
  • {% endfor %}
{% endif %}
{% trans "Relevant personal notes" %}
    • {% for note in personal_notes %} {% ifchanged note.school_term %}
  • date_range{{ note.school_term }}
      {% endifchanged %} {% ifchanged note.week %}
    • {% blocktrans with week=note.calendar_week.week %}Week {{ week }}{% endblocktrans %}
    • {% endifchanged %} {% ifchanged note.date %}
    • {% if can_mark_all_as_excused and note.date %}
      {% csrf_token %} {% trans "Mark all as" %} {% include "alsijil/partials/mark_as_buttons.html" %}
      {% endif %} schedule {% if note.date %} {{ note.date }} {% else %} {{ note.register_object.date_start }} {{ note.register_object.period_from.period }}.–{{ note.register_object.date_end }} {{ note.register_object.period_to.period }}. {% endif %} {% if can_mark_all_as_excused and note.date %}
      {% csrf_token %} {% trans "Mark all as" %} {% include "alsijil/partials/mark_as_buttons.html" %}
      {% endif %}
    • {% endifchanged %}
    • {% if note.register_object.period %} {{ note.register_object.period.period }}. {% endif %}
      {% has_perm "alsijil.edit_personalnote" user note as can_edit_personal_note %} {% if note.absent and not note.excused and can_edit_personal_note %}
      {% csrf_token %} {% trans "Mark as" %} {% include "alsijil/partials/mark_as_buttons.html" %} cancel
      {% elif can_edit_personal_note %} cancel {% endif %} {% if note.absent %}
      {% trans 'Absent' %}
      {% endif %} {% if note.excused %}
      {% if note.excuse_type %} {{ note.excuse_type.name }} {% else %} {% trans 'Excused' %} {% endif %}
      {% endif %} {% if note.late %}
      {% blocktrans with late=note.late %}{{ late }}' late{% endblocktrans %}
      {% endif %} {% for extra_mark in note.extra_marks.all %}
      {{ extra_mark.name }}
      {% endfor %} {{ note.remarks }}
      {% if note.absent and not note.excused and can_edit_personal_note %}
      {% csrf_token %} {% trans "Mark as" %} {% include "alsijil/partials/mark_as_buttons.html" %} cancel
      {% elif can_edit_personal_note %} cancel {% trans "Delete" %} {% endif %}
    • {% endfor %}
{% endblock %}