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
df7bf5c0
Commit
df7bf5c0
authored
3 years ago
by
Martin Mareš
Browse files
Options
Downloads
Patches
Plain Diff
Registrace: Nastavení kola
parent
76d4dd1c
No related branches found
No related tags found
1 merge request
!86
Registrace
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
mo/web/org_round.py
+4
-0
4 additions, 0 deletions
mo/web/org_round.py
mo/web/templates/org_round.html
+2
-0
2 additions, 0 deletions
mo/web/templates/org_round.html
with
6 additions
and
0 deletions
mo/web/org_round.py
+
4
−
0
View file @
df7bf5c0
...
...
@@ -446,6 +446,8 @@ class RoundEditForm(FlaskForm):
"
Přesnost bodování
"
,
choices
=
db
.
round_points_step_choices
,
coerce
=
decimal
.
Decimal
,
description
=
"
Ovlivňuje možnost zadávání nových bodů, již uložené body nezmění
"
)
enroll_mode
=
wtforms
.
SelectField
(
"
Režim přihlašování
"
,
choices
=
db
.
RoundEnrollMode
.
choices
(),
coerce
=
db
.
RoundEnrollMode
.
coerce
)
enroll_advert
=
wtforms
.
StringField
(
"
Popis v přihlášce
"
)
has_messages
=
wtforms
.
BooleanField
(
"
Zprávičky pro účastníky (aktivuje možnost vytvářet novinky zobrazované účastníkům)
"
)
submit
=
wtforms
.
SubmitField
(
'
Uložit
'
)
...
...
@@ -483,6 +485,8 @@ def org_round_edit(id: int):
del
form
.
score_winner_limit
del
form
.
score_successful_limit
del
form
.
points_step
# ani nastavení přihlašování
del
form
.
enroll_mode
if
form
.
validate_on_submit
():
form
.
populate_obj
(
round
)
...
...
This diff is collapsed.
Click to expand it.
mo/web/templates/org_round.html
+
2
−
0
View file @
df7bf5c0
...
...
@@ -34,6 +34,8 @@
{% with state=round.ct_state() %}
<tr><td>
Stav pro účastníky
<td
class=
'rstate-{{state.name}}'
>
{{ state.friendly_name() }}
{% endwith %}
<tr><td>
Režim přihlašování
<td>
{{ round.enroll_mode.friendly_name() }}
<tr><td>
Popis v přihlášce
<td>
{{ round.enroll_advert }}
</table>
<table
class=
data
style=
"float: left;"
>
<thead>
...
...
This diff is collapsed.
Click to expand it.
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