diff --git a/aleksis/apps/alsijil/templates/alsijil/class_register/person.html b/aleksis/apps/alsijil/templates/alsijil/class_register/person.html index ef291777605938b8f2dbf4d62d6207faa4ddbfc7..bc715d6794e65d000cc016d0ff3430e6e04054c9 100644 --- a/aleksis/apps/alsijil/templates/alsijil/class_register/person.html +++ b/aleksis/apps/alsijil/templates/alsijil/class_register/person.html @@ -20,7 +20,7 @@ <ul class="collection"> {% for note in unexcused_absences %} - {% period_to_date note.week note.lesson_period.period as note_date %} + {% weekday_to_date note.calendar_week note.lesson_period.period.weekday as note_date %} <li class="collection-item"> <form action="" method="post" class="right" style="margin-top: -7px;"> {% csrf_token %} @@ -63,8 +63,7 @@ <strong>{% blocktrans with week=note.week %}Week {{ week }}{% endblocktrans %}</strong> </li> {% endifchanged %} - - {% period_to_date note.week note.lesson_period.period as note_date %} + {% weekday_to_date note.calendar_week note.lesson_period.period.weekday as note_date %} {% ifchanged note_date %} <li class="collection-item"> <form action="" method="post" class="right" style="margin-top: -7px;"> diff --git a/aleksis/apps/alsijil/templates/alsijil/print/full_register.html b/aleksis/apps/alsijil/templates/alsijil/print/full_register.html index 373ae6a88f6f42953dfa0b4ffeceb8a26716104b..03b75de7b70508885bf06f35e42d1058a5c80b1a 100644 --- a/aleksis/apps/alsijil/templates/alsijil/print/full_register.html +++ b/aleksis/apps/alsijil/templates/alsijil/print/full_register.html @@ -319,7 +319,7 @@ {% for note in person.personal_notes.all %} {% if note.lesson_period in lesson_periods %} {% if note.absent or note.late or note.remarks or note.extra_marks.all %} - {% period_to_date note.week note.lesson_period.period as note_date %} + {% weekday_to_date note.calendar_week note.lesson_period.period.weekday as note_date %} <tr> <td>{{ note_date }}</td> <td>{{ note.lesson_period.period.period }}</td>