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
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
Compare
devel
version 9
2760c623
Aug 23, 2022
version 8
2760c623
Jan 19, 2022
version 7
2760c623
Dec 14, 2021
version 6
2760c623
Nov 29, 2021
version 5
2760c623
Sep 29, 2021
version 4
2760c623
Sep 29, 2021
version 3
2760c623
Apr 19, 2021
version 2
2760c623
Apr 12, 2021
version 1
2760c623
Mar 29, 2021
devel (base)
and
version 8
latest version
2760c623
1 commit,
Sep 26, 2022
version 9
2760c623
1 commit,
Aug 23, 2022
version 8
2760c623
1 commit,
Jan 19, 2022
version 7
2760c623
1 commit,
Dec 14, 2021
version 6
2760c623
1 commit,
Nov 29, 2021
version 5
2760c623
1 commit,
Sep 29, 2021
version 4
2760c623
1 commit,
Sep 29, 2021
version 3
2760c623
1 commit,
Apr 19, 2021
version 2
2760c623
1 commit,
Apr 12, 2021
version 1
2760c623
1 commit,
Mar 29, 2021
2 files
+
17
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
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