diff --git a/mo/web/org_round.py b/mo/web/org_round.py index b4da3657181f26e13febaa369f5fb1c09b88133b..7fc300ec3e976c6fcb7e0cfb27af061674a8666e 100644 --- a/mo/web/org_round.py +++ b/mo/web/org_round.py @@ -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) diff --git a/mo/web/templates/org_round.html b/mo/web/templates/org_round.html index 2d13b18136d95d201618c4a06af1acfce84f6a19..ddddc7df8f2f622a83a951de62106679b7c53834 100644 --- a/mo/web/templates/org_round.html +++ b/mo/web/templates/org_round.html @@ -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>