Skip to content
Snippets Groups Projects
Commit df7bf5c0 authored by Martin Mareš's avatar Martin Mareš
Browse files

Registrace: Nastavení kola

parent 76d4dd1c
No related branches found
No related tags found
1 merge request!86Registrace
......@@ -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)
......
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment