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

Remove superfluous endif in full register template (merge result)

parent 32c26f55
No related branches found
No related tags found
1 merge request!120Resolve "Support events and extra lessons in class register"
...@@ -317,34 +317,33 @@ ...@@ -317,34 +317,33 @@
<tbody> <tbody>
{% for note in person.filtered_notes %} {% for note in person.filtered_notes %}
{% if note.absent or note.late or note.remarks or note.extra_marks.all %} {% if note.absent or note.late or note.remarks or note.extra_marks.all %}
<tr> <tr>
{% if note.date %} {% if note.date %}
<td>{{ note.date }}</td> <td>{{ note.date }}</td>
<td>{{ note.register_object.period.period }}</td> <td>{{ note.register_object.period.period }}</td>
{% else %}
<td colspan="2">
{{ note.register_object.date_start }} {{ note.register_object.period_from.period }}.–{{ note.register_object.date_end }}
{{ note.register_object.period_to.period }}.
</td>
{% endif %}
<td>
{% if note.register_object.label_ != "event" %}
{{ note.register_object.get_subject.short_name }}
{% else %} {% else %}
<td colspan="2"> {% trans "Event" %}
{{ note.register_object.date_start }} {{ note.register_object.period_from.period }}.–{{ note.register_object.date_end }}
{{ note.register_object.period_to.period }}.
</td>
{% endif %} {% endif %}
<td> </td>
{% if note.register_object.label_ != "event" %} <td>{{ note.register_object.teacher_short_names }}</td>
{{ note.register_object.get_subject.short_name }} <td>
{% else %} {% if note.absent %}
{% trans "Event" %} {% trans 'Yes' %}
{% endif %} {% if note.excused %}
</td> {% if note.excuse_type %}
<td>{{ note.register_object.teacher_short_names }}</td> ({{ note.excuse_type.short_name }})
<td> {% else %}
{% if note.absent %} ({% trans 'e' %})
{% trans 'Yes' %}
{% if note.excused %}
{% if note.excuse_type %}
({{ note.excuse_type.short_name }})
{% else %}
({% trans 'e' %})
{% endif %}
{% endif %} {% endif %}
{% endif %} {% endif %}
{% endif %} {% endif %}
......
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