Skip to content
Snippets Groups Projects

Formulář na přidání účastníka do soutěže

Closed Jan Prachař requested to merge honza/add-contestant into devel
1 file
+ 6
3
Compare changes
  • Side-by-side
  • Inline
+ 16
2
@@ -49,6 +49,9 @@
{% if state != RoundState.preparing %}
<a class="btn btn-primary" href='{{ url_for('org_contest_solutions', id=contest.contest_id, site_id=site_id) }}'>Odevzdaná řešení</a>
{% endif %}
{% if can_manage and site %}
<a class="btn btn-default" href="{{ url_for('org_contest_add_user', id=contest.contest_id, site_id=site_id) }}">+ Přidat účastníka</a>
{% endif %}
{% if not site %}
{% if state in [RoundState.grading, RoundState.closed] %}
<a class="btn btn-primary" href='{{ url_for('org_score', contest_id=contest.contest_id) }}'>Výsledky</a>
@@ -73,25 +76,36 @@
{% if places_counts %}
<table class=data>
<thead>
<tr><th>Místo<th>Počet účastníků
<tr><th>Místo<th>Počet účastníků<th>Akce
</thead>
{% for (place, count) in places_counts %}
<tr>
<td><a href="{{ url_for('org_contest', id=contest.contest_id, site_id=place.place_id) }}">{{ place.name }}</a>
<td>{{ count }}
<td>
<a class="btn btn-xs btn-primary" href="{{ url_for('org_contest', id=contest.contest_id, site_id=place.place_id) }}">Detail</a>
{% if can_manage %}
<a class="btn btn-xs btn-default" href="{{ url_for('org_contest_add_user', id=contest.contest_id, site_id=place.place_id) }}">+ Přidat účastníka</a>
{% endif %}
</tr>
{% endfor %}
<tfoot>
<tr>
<th>Celkem
<th>{{ places_counts|sum(attribute=1) }}
<th>
</tr>
</tfoot>
</table>
{% else %}
<i>Žádní účastníci a žádná soutěžní místa.</i>
<p><i>Žádní účastníci a žádná soutěžní místa.</i></p>
{% endif %}
{% endif %}
<div class="btn-group">
{% if can_manage and not site %}
<a class="btn btn-default" href='{{ url_for('org_contest_add_user', id=contest.contest_id) }}'>+ Přidat účastníka</a>
{% endif %}
</div>
<h3>Úlohy</h3>
{% if tasks %}
Loading