Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Odevzdávací Systém MO
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MO-P
Odevzdávací Systém MO
Merge requests
!68
Project 'mj/mo-submit' was moved to 'mo-p/osmo'. Please update any links and bookmarks that may still have the old path.
org_contest: Tlačítko na přepnutí stavu soutěže
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Closed
org_contest: Tlačítko na přepnutí stavu soutěže
honza/mra
into
devel
Overview
5
Commits
1
Changes
2
1 open thread
Hide all comments
Closed
org_contest: Tlačítko na přepnutí stavu soutěže
Jan Prachař
requested to merge
honza/mra
into
devel
Mar 29, 2021
Overview
5
Commits
1
Changes
2
1 open thread
Hide all comments
0
0
Merge request reports
Viewing commit
2760c623
Show latest version
2 files
+
17
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
2760c623
org_contest: Tlačítko na přepnutí stavu soutěže
· 2760c623
Jan Prachař
authored
Mar 19, 2021
mo/web/templates/org_contest.html
+
16
−
1
View file @ 2760c623
Edit in single-file editor
Open in Web IDE
Show full file
@@ -20,6 +20,21 @@
<tr><td>
Stav
<td><span
class=
'rstate-{{state.name}}'
>
{{ state.friendly_name() }}
</span>
{% if round.state != RoundState.delegate %}
(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 %}
{% endwith %}
{% with state=contest.ct_state() %}
Loading