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

Přidávání role zdůrazňuje, že se jedná o ročník MO

parent 78d492c3
No related branches found
No related tags found
No related merge requests found
......@@ -238,7 +238,7 @@ def org_orgs():
class FormAddRole(FlaskForm):
role = wtforms.SelectField('Role', choices=db.RoleType.choices(), coerce=db.RoleType.coerce, render_kw={'autofocus': True})
place = mo_fields.Place()
year = wtforms.IntegerField('Ročník', validators=[validators.Optional()])
year = wtforms.IntegerField('Ročník', render_kw={"placeholder": "Ročník MO"}, validators=[validators.Optional()])
category = mo_fields.String("Kategorie", validators=[validators.Length(max=2)], filters=[lambda x: x.upper() if x else None])
seq = wtforms.IntegerField("Kolo", render_kw={"placeholder": "Pořadí kola v kategorii"}, validators=[validators.Optional()])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment