puchar/app/templates/user/submission.html

34 lines
998 B
HTML
Raw Normal View History

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>
{% if ongoing.scores_eliminations %}<th>Wynik uzyskany podczas eliminacji</th>{% endif %}
</tr>
</thead>
{% for student in students %}
<tbody>
<tr>
<th>{{ student.identifier }}</th>
<td>{{ student.name }} {{ student.surname }}</td>
<td>{{ student.grade }}</td>
{% if ongoing.scores_eliminations %}<td>{{ student.score_first | default:"-" }}</td>{% endif %}
</tr>
</tbody>
{% endfor %}
</table>
</div>
{% else %}
<span>Brak zgłoszonych uczniów</span>
{% endif %}
{% endblock %}