Skip to content
Snippets Groups Projects
Verified Commit af3dcfb3 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Use weekday_to_date instead of period_to_date everywhere

parent f128bb25
No related branches found
No related tags found
1 merge request!80Resolve "Add student view with further information"
......@@ -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;">
......
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment