Skip to content
Snippets Groups Projects

Zjednodušení práce s joby

Merged Jiří Setnička requested to merge jirka/jobs into devel
1 unresolved thread
2 files
+ 24
2
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -11,7 +11,7 @@
{% if ctx.rights.have_right(Right.view_contestants) %}
<div class="btn-group pull-right">
<a class="btn btn-default" href="{{ ctx.url_for('org_score') }}">Aktuální výsledky</a>
<a class="btn btn-default" href="{{ ctx.url_for('org_score_snapshots') }}">Uložené výsledky</a>
<a class="btn btn-default" href="{{ ctx.url_for('org_score_snapshots') }}">Všechny uložené verze</a>
{% if scoretable.pdf_file %}
<a class="btn btn-default" href="{{ ctx.url_for('org_score_snapshot_pdf', scoretable_id=scoretable.scoretable_id) }}">PDF</a>
{% endif %}
@@ -21,9 +21,27 @@
{% block body %}
{% if set_final_form %}
<form method="POST" action="{{ ctx.url_for('org_score_snapshots') }}" class="pull-right">
{{ set_final_form.csrf_token }}
<input type="hidden" name="back_url" value="{{ ctx.url_for('org_score_snapshot', scoretable_id=scoretable.scoretable_id) }}">
{% if ctx.contest.scoretable_id == scoretable.scoretable_id %}
<input type="submit" name="submit_hide" class="btn btn-danger" value="Zrušit zveřejnění">
{% else %}
<input type="hidden" name="scoretable_id" value="{{ scoretable.scoretable_id }}">
<input type="submit" name="submit_set_final" class="btn btn-primary" value="Zveřejnit tuto verzi">
{% endif %}
</form>
{% endif %}
{% if ctx.rights.have_right(Right.view_contestants) %}
<p>Výsledková listina odpovídající stavu k {{ scoretable.created_at|timeformat }}.
Lze ji zveřejnit jako oficiální výsledkovou listinu v přehledu všech uložených verzí výsledkových listin pro tuto soutěž.</p>
{% if scoretable.scoretable_id == ctx.contest.scoretable_id %}
<strong>Tato verze je zveřejněna jako oficiální výsledková listina.</strong>
{% else %}
Tato verze není zveřejněna jako oficiální výsledková listina.
{% endif %}
</p>
{% endif %}
<table class='data'>
Loading