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

[Full register] Show only personal notes of group members

parent 4a5b813e
No related branches found
No related tags found
1 merge request!70Resolve "[Full register] Only show personal notes of group members"
Pipeline #3091 passed
...@@ -397,34 +397,36 @@ ...@@ -397,34 +397,36 @@
<td class="lesson-homework">{{ documentations.0.homework }}</td> <td class="lesson-homework">{{ documentations.0.homework }}</td>
<td class="lesson-notes"> <td class="lesson-notes">
{% for note in notes %} {% for note in notes %}
{% if note.absent %} {% if note.person in group.members.all %}
<span class="lesson-note-absent"> {% if note.absent %}
{{ note.person.last_name }}, {{ note.person.first_name|slice:"0:1" }}. <span class="lesson-note-absent">
{% if note.excused %} {{ note.person.last_name }}, {{ note.person.first_name|slice:"0:1" }}.
<span class="lesson-note-excused"> {% if note.excused %}
{% if note.excuse_type %} <span class="lesson-note-excused">
({{ note.excuse_type.short_name }}) {% if note.excuse_type %}
{% else %} ({{ note.excuse_type.short_name }})
({% trans 'e' %}) {% else %}
{% endif %} ({% trans 'e' %})
</span> {% endif %}
{% endif %} </span>
{% endif %}
</span> </span>
{% endif %} {% endif %}
{% if note.late %} {% if note.late %}
<span class="lesson-note-late"> <span class="lesson-note-late">
{{ note.person.last_name }}, {{ note.person.first_name|slice:"0:1" }}. {{ note.person.last_name }}, {{ note.person.first_name|slice:"0:1" }}.
({{ note.late }}′) ({{ note.late }}′)
{% if note.excused %} {% if note.excused %}
<span class="lesson-note-excused"> <span class="lesson-note-excused">
{% if note.excuse_type %} {% if note.excuse_type %}
({{ note.excuse_type.short_name }}) ({{ note.excuse_type.short_name }})
{% else %} {% else %}
({% trans 'e' %}) ({% trans 'e' %})
{% endif %} {% endif %}
</span> </span>
{% endif %} {% endif %}
</span> </span>
{% endif %}
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</td> </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