[func] don't show shchools without points [func] show ranking and scores for teachers

This commit is contained in:
2022-04-25 16:15:52 +00:00
parent befa154b4e
commit 8e8474920f
2 changed files with 23 additions and 4 deletions

View File

@ -13,12 +13,18 @@
<th>Identyfikator</th>
<th>Uczeń</th>
<th>Klasa</th>
{% if ongoing.scores_available %}
<th>Zajęte miejsce</th>
<th>Wynik z finału</th>
<th>Wynik z eliminacji</th>
{% else %}
{% if ongoing.scores_eliminations %}
<th>Liczba punktów zdobytych podczas eliminacji</th>
{% if ongoing.entry_threshold > 0 %}
<th>Wynik eliminacji</th>
{% endif %}
{%endif %}
{% endif %}
{% endif %}
</tr>
</thead>
{% for student in students %}
@ -27,6 +33,11 @@
<th>{{ student.identifier }}</th>
<td>{{ student.name }} {{ student.surname }}</td>
<td>{{ student.grade }}</td>
{% if ongoing.scores_available %}
<th>{{ student.ranking }}</td>
<td>{{ student.score_second }}</td>
<td>{{ student.score_first }}</td>
{% else %}
{% if ongoing.scores_eliminations %}
<td>
{{ student.score_first | default:"-" }}
@ -41,6 +52,7 @@
</td>
{% endif %}
{% endif %}
{% endif %}
</tr>
</tbody>
{% endfor %}
@ -51,4 +63,4 @@
<span class="title mt-6">Żaden uczeń nie został zgłoszony</span>
</div>
{% endif %}
{% endblock %}
{% endblock %}