Skip to content
Snippets Groups Projects
Commit c32f27f4 authored by Jan Prachař's avatar Jan Prachař
Browse files

Tabulka řešení: odkazy na výsledky a účastníky v záhlaví tabulky

parent 6656514a
No related branches found
No related tags found
No related merge requests found
......@@ -13,13 +13,6 @@
{{ ctx.breadcrumbs(action="Založení řešení" if edit_form else "Tabulka řešení") }}
{% endblock %}
{% block pretitle %}
{% if contest.state in [RoundState.grading, RoundState.closed] %}
<div class="btn-group pull-right">
<a class="btn btn-warning" href="{{ ctx.url_for('org_score') }}">Výsledky {{ round.get_level().name_genitive() }}</a>
</div>
{% endif %}
{% endblock %}
{% block body %}
{% include "parts/org_submit_warning.html" %}
......@@ -53,8 +46,8 @@ Přes ikonku <span class="icon">🔍</span> se dostanete na detail, kde můžete
{% endif %}
<thead>
<tr>
<th rowspan=2>Účastník
<th rowspan=2>Stav účasti</th>
<th colspan="2">
<a class="btn btn-xs btn-default" href='{{ ctx.url_for('org_generic_list') }}'><span class="glyphicon glyphicon-user"></span> Seznam účastníků</a>
{% for task in tasks[4*i:4*(i+1)] %}<th colspan=4>
<a href="{{ ctx.url_for('org_contest_task', task_id=task.task_id) }}">{{ task.code }}</a>
{% if edit_points or edit_create %}
......@@ -65,11 +58,22 @@ Přes ikonku <span class="icon">🔍</span> se dostanete na detail, kde můžete
{% endif %}
{% endfor %}
{% if last_loop %}
<th rowspan=2>Body celkem
<th>
{% if contest.state in [RoundState.grading, RoundState.closed] %}
<a class="btn btn-xs btn-warning" href="{{ ctx.url_for('org_score') }}">
<span class="glyphicon glyphicon-bullhorn"></span>
Výsledková listina
</a>
{% endif %}
{% endif %}
</tr>
<tr>
<th>Účastník
<th>Stav účasti
{% for task in tasks[4*i:4*(i+1)] %}<th title="Řešení">Ř<th title="Oprava">O<th title="Body">B<th title="Detail"><span class="icon">🔍</span>{% endfor %}
{% if last_loop %}
<th>Body celkem
{% endif %}
</tr>
</thead>
{% for pion in pions %}
......@@ -167,7 +171,10 @@ Přes ikonku <span class="icon">🔍</span> se dostanete na detail, kde můžete
{% else %}
<div>
{% if rights.can_create_solutions() %}
<a class="btn btn-primary" href="{{ ctx.url_for('org_contest_solutions_edit') }}">Založit řešení hromadně</a>
<a class="btn btn-default" href="{{ ctx.url_for('org_contest_solutions_edit') }}">
<span class="glyphicon glyphicon-check"></span>
Založit řešení hromadně
</a>
{% endif %}
</div>
{% endif %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment