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
Martin Mareš
Odevzdávací Systém MO
Commits
4ae89dc7
Commit
4ae89dc7
authored
3 years ago
by
Martin Mareš
Browse files
Options
Downloads
Patches
Plain Diff
UI pro kód kola
parent
702a9a20
No related branches found
No related tags found
1 merge request
!99
Custom kód kola
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
mo/web/org_round.py
+3
-0
3 additions, 0 deletions
mo/web/org_round.py
mo/web/templates/org_round.html
+1
-1
1 addition, 1 deletion
mo/web/templates/org_round.html
with
4 additions
and
1 deletion
mo/web/org_round.py
+
3
−
0
View file @
4ae89dc7
...
...
@@ -368,6 +368,9 @@ class RoundEditForm(FlaskForm):
_for_round
:
Optional
[
db
.
Round
]
=
None
name
=
wtforms
.
StringField
(
"
Název
"
,
render_kw
=
{
'
autofocus
'
:
True
})
code
=
wtforms
.
StringField
(
"
Kód
"
,
description
=
"
Kód kola používaný v kódech úloh (
'
1
'
,
'
S
'
apod.). Není-li vyplněn, použije se pořadí kola v kategorii.
"
,
)
state
=
wtforms
.
SelectField
(
"
Stav kola
"
,
choices
=
db
.
RoundState
.
choices
(),
coerce
=
db
.
RoundState
.
coerce
,
description
=
"
Stav soutěží ve všech oblastech kola. Pokud zvolíme
'
po oblastech
'
, každá soutěž si svůj stav určuje sama.
"
,
...
...
This diff is collapsed.
Click to expand it.
mo/web/templates/org_round.html
+
1
−
1
View file @
4ae89dc7
...
...
@@ -28,7 +28,7 @@
</thead>
<tr><td>
Ročník
<td>
{{ round.year }}
<tr><td>
Kategorie
<td>
{{ round.category }}
<tr><td>
Pořadí
<td>
{{ round.seq }}
<tr><td>
Pořadí
/ kód
<td>
{{ round.seq }}
/ {{ round.code if round.code else round.seq }}
{% if round.part > 0 %}
<tr><td>
Část
<td>
{{ round.part_code() }}{% endif %}
<tr><td>
Oblast
<td>
{{ round.get_level().name }}
<tr><td>
Vaše role
<td>
{% if g.user.is_admin %}správce{% elif roles %}{{ roles|join(", ") }}{% else %}–{% endif %}
...
...
This diff is collapsed.
Click to expand it.
Martin Mareš
@mj
mentioned in commit
dde85749
·
2 years ago
mentioned in commit
dde85749
mentioned in commit dde85749ee79cfd901163808a359f3a389ab3a1f
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment