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

UI pro kód kola

parent 702a9a20
No related branches found
No related tags found
1 merge request!99Custom kód kola
......@@ -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.",
......
......@@ -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 %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment