Skip to content
Snippets Groups Projects

org_contest: Tlačítko na přepnutí stavu soutěže

Closed Jan Prachař requested to merge honza/mra into devel
1 unresolved thread

Files

+ 16
1
@@ -19,7 +19,22 @@
@@ -19,7 +19,22 @@
{% with state=contest.state %}
{% with state=contest.state %}
<tr><td>Stav<td><span class='rstate-{{state.name}}'>{{ state.friendly_name() }}</span>
<tr><td>Stav<td><span class='rstate-{{state.name}}'>{{ state.friendly_name() }}</span>
{% if round.state != RoundState.delegate %}
{% if round.state != RoundState.delegate %}
(určeno nastavením kola)
(určeno nastavením kola)
 
{% elif can_manage and not site %}
 
{% if state == RoundState.running %}
 
<form method="post" action="{{ url_for('org_contest_edit', id=contest.contest_id) }}" style="display: inline-block">
 
{{ edit_form.csrf_token }}
 
<button type="submit" class="btn btn-sm btn-default">Změnit na: opravuje se</button>
 
<input type="hidden" name="state" value="{{ RoundState.grading.name }}">
 
</form>
 
{% elif state == RoundState.grading %}
 
<form method="post" action="{{ url_for('org_contest_edit', id=contest.contest_id) }}" style="display: inline-block">
 
{{ edit_form.csrf_token }}
 
<button type="submit" class="btn btn-sm btn-default">Změnit na: ukončeno</button>
 
<input type="hidden" name="state" value="{{ RoundState.closed.name }}">
 
</form>
 
{% endif %}
 
{% else %}
{% endif %}
{% endif %}
{% endwith %}
{% endwith %}
{% with state=contest.ct_state() %}
{% with state=contest.ct_state() %}
Loading