2021-08-30 02:29:20 +02:00
|
|
|
{% extends 'user/tabs.html' %}
|
|
|
|
{% load crispy_forms_filters %}
|
|
|
|
|
|
|
|
{% block title %}Puchar Dyrektora - zgłoś uczniów{% endblock %}
|
|
|
|
|
|
|
|
{% block tab %}
|
|
|
|
{% if students %}
|
|
|
|
<div class="hero has-text-centered">
|
|
|
|
<span class="title my-6">Zgłoszeni uczniowie</span>
|
|
|
|
<table class="hero-body table is-striped is-narrow is-hoverable is-fullwidth">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Identyfikator</th>
|
|
|
|
<th>Uczeń</th>
|
|
|
|
<th>Klasa</th>
|
2022-04-25 16:15:52 +00:00
|
|
|
{% if ongoing.scores_available %}
|
|
|
|
<th>Zajęte miejsce</th>
|
|
|
|
<th>Wynik z finału</th>
|
|
|
|
<th>Wynik z eliminacji</th>
|
|
|
|
{% else %}
|
2022-01-19 20:48:33 +01:00
|
|
|
{% if ongoing.scores_eliminations %}
|
|
|
|
<th>Liczba punktów zdobytych podczas eliminacji</th>
|
2022-12-05 04:12:09 +01:00
|
|
|
{% if ongoing.entry_threshold >= 0 %}
|
2022-01-19 20:48:33 +01:00
|
|
|
<th>Wynik eliminacji</th>
|
|
|
|
{% endif %}
|
2022-04-25 16:15:52 +00:00
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
2021-08-30 02:29:20 +02:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
{% for student in students %}
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<th>{{ student.identifier }}</th>
|
|
|
|
<td>{{ student.name }} {{ student.surname }}</td>
|
|
|
|
<td>{{ student.grade }}</td>
|
2022-04-25 16:15:52 +00:00
|
|
|
{% if ongoing.scores_available %}
|
|
|
|
<th>{{ student.ranking }}</td>
|
|
|
|
<td>{{ student.score_second }}</td>
|
|
|
|
<td>{{ student.score_first }}</td>
|
|
|
|
{% else %}
|
2022-01-19 20:48:33 +01:00
|
|
|
{% if ongoing.scores_eliminations %}
|
|
|
|
<td>
|
|
|
|
{{ student.score_first | default:"-" }}
|
|
|
|
</td>
|
|
|
|
{% if ongoing.entry_threshold > 0 %}
|
|
|
|
<td>
|
2022-12-05 04:12:09 +01:00
|
|
|
{% if student.score_first >= ongoing.entry_threshold %}
|
2022-01-19 20:48:33 +01:00
|
|
|
<b>Uczeń zakwalifikowany do finału</b>
|
|
|
|
{% else %}
|
|
|
|
Uczeń niezakwalifikowany do finału
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
2022-04-25 16:15:52 +00:00
|
|
|
{% endif %}
|
2021-08-30 02:29:20 +02:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
{% else %}
|
2021-09-03 01:37:25 +02:00
|
|
|
<div class="hero has-text-centered">
|
|
|
|
<span class="title mt-6">Żaden uczeń nie został zgłoszony</span>
|
|
|
|
</div>
|
2021-08-30 02:29:20 +02:00
|
|
|
{% endif %}
|
2022-04-25 16:15:52 +00:00
|
|
|
{% endblock %}
|