diff --git a/aleksis/apps/alsijil/templates/alsijil/partials/register_coursebook.html b/aleksis/apps/alsijil/templates/alsijil/partials/register_coursebook.html index 9dccecfd61b0a13f0ea9e4b71510e57f9af81612..f0dff0573337e34b37ad7b6cfeadd9581fb6c9de 100644 --- a/aleksis/apps/alsijil/templates/alsijil/partials/register_coursebook.html +++ b/aleksis/apps/alsijil/templates/alsijil/partials/register_coursebook.html @@ -53,34 +53,19 @@ <td class="lesson-homework">{{ doc.homework }}</td> <td class="lesson-notes"> {{ documentation.group_note }} - {% for note in notes %} - {% if note.absent %} + {% for participation in doc.notable_participations %} + {% if participation.absence_reason %} <span class="lesson-note-absent"> - {{ note.person.last_name }}, {{ note.person.first_name|slice:"0:1" }}. - {% if note.excused %} - <span class="lesson-note-excused"> - {% if note.excuse_type %} - ({{ note.excuse_type.short_name }}) - {% else %} - ({% trans 'e' %}) - {% endif %} - </span> - {% endif %} + {{ participation.person.short_name }} + <span class="lesson-note-excused"> + ({{ participation.absence_reason.short_name }}) + </span> </span> {% endif %} - {% if note.tardiness %} + {% if participation.tardiness %} <span class="lesson-note-late"> - {{ note.person.last_name }}, {{ note.person.first_name|slice:"0:1" }}. - ({{ note.tardiness }}′) - {% if note.excused %} - <span class="lesson-note-excused"> - {% if note.excuse_type %} - ({{ note.excuse_type.short_name }}) - {% else %} - ({% trans 'e' %}) - {% endif %} - </span> - {% endif %} + {{ participation.person.short_name }} + ({{ participation.tardiness }}′) </span> {% endif %} {% for extra_mark in note.extra_marks.all %}