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

Add corridors and supervisions to substitutions

parent 899a5fa6
No related branches found
No related tags found
No related merge requests found
......@@ -90,10 +90,18 @@
<tr
{% if sub.type == 1 or sub.type == 2 %}
class="green-text"
{% elif sub.type == 3 %}
class="blue-text"
{% endif %}
>
<td>
<strong>{{ sub.lesson }}.</strong>
<strong>
{% if sub.type == 3 %}
{{ sub.lesson|add:-1 }}./{{ sub.lesson }}.
{% else %}
{{ sub.lesson }}.
{% endif %}
</strong>
</td>
<td>
{% for class_ in sub.classes %}
......@@ -113,7 +121,9 @@
{% endif %}
</td>
<td>
{% if sub.type == 1 or sub.type == 2 %}
{% if sub.type == 3 %}
<span class="badge new blue">Aufsicht</span>
{% elif sub.type == 1 or sub.type == 2 %}
<s>{{ sub.subject_old.shortcode }}</s>
{% elif sub.subject_new and sub.subject_old %}
<s>{{ sub.subject_old.shortcode }}</s>
......@@ -125,7 +135,9 @@
{% endif %}
</td>
<td>
{% if sub.type == 1 or sub.type == 2 %}
{% if sub.type == 3 %}
{{ sub.corridor.name }}
{% elif sub.type == 1 or sub.type == 2 %}
{% elif sub.room_new and sub.room_old %}
<s>
{{ sub.room_old.shortcode }}
......@@ -152,8 +164,7 @@
Lehrer frei</span>
{% endif %}
</td>
<td>
<small>{{ sub.id }} {{ sub.lesson_id }}</small>
</td>
</tr>
......
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