diff --git a/mo/web/org_round.py b/mo/web/org_round.py index 7dad0788c18dd5343fbe46678acb42fe970e0b4e..c940f9547749dd195cffcb344c5578bba1d3c7d0 100644 --- a/mo/web/org_round.py +++ b/mo/web/org_round.py @@ -250,8 +250,9 @@ class RoundEditForm(FlaskForm): state = wtforms.SelectField("Stav kola", choices=db.RoundState.choices()) # Only the desktop Firefox does not support datetime-local field nowadays, # other browsers does provide date and time picker UI :( - submit_start = DateTimeLocalField( - "Začátek kola", validators=[validators.Optional()], + tasks_file = wtforms.StringField("Soubor se zadáním", description="Cesta k ručně uploadovanému souboru") + ct_tasks_start = DateTimeLocalField( + "Čas zveřejnění úloh", validators=[validators.Optional()], description="Ve formátu 2020-01-01 00:00:00" ) ct_submit_end = DateTimeLocalField( diff --git a/mo/web/templates/org_contest.html b/mo/web/templates/org_contest.html index d2a5772a1ab4be1ac3d8bf2d394a57e0f8d7d95a..2b02d014459eb019a40616b99e2966c235f7376a 100644 --- a/mo/web/templates/org_contest.html +++ b/mo/web/templates/org_contest.html @@ -12,7 +12,7 @@ <tr><td>Název<td>{{ contest.round.name }} <tr><td>Oblast<td><a href='{{ url_for('org_place', id=contest.place.place_id) }}'>{{ contest.place.name }}</a> <tr><td>Stav<td class='rstate-{{contest.round.state.name}}'>{{ contest.round.state.friendly_name() }} - <tr><td>Začátek odevzdávání<td>{{ contest.round.submit_start|timeformat }} + <tr><td>Čas zveřejnění úloh<td>{{ contest.round.ct_tasks_start|timeformat }} <tr><td>Konec pro účastníky<td>{{ contest.round.ct_submit_end|timeformat }} <tr><td>Konec pro dozor<td>{{ contest.round.pr_submit_end|timeformat }} </table> diff --git a/mo/web/templates/org_round.html b/mo/web/templates/org_round.html index 5ab222a8440c21e0018cb9f51a89307de96a8cab..b2a3c87fa8a3fea07622e938465a0b977722c455 100644 --- a/mo/web/templates/org_round.html +++ b/mo/web/templates/org_round.html @@ -9,7 +9,7 @@ <tr><td>Název<td>{{ round.name }} <tr><td>Oblast<td>{{ level_names[round.level] }} <tr><td>Stav<td class='rstate-{{round.state.name}}'>{{ round.state.friendly_name() }} - <tr><td>Začátek odevzdávání<td>{{ round.submit_start|timeformat }} + <tr><td>Čas zveřejnění úloh<td>{{ round.ct_tasks_start|timeformat }} <tr><td>Konec pro účastníky<td>{{ round.ct_submit_end|timeformat }} <tr><td>Konec pro dozor<td>{{ round.pr_submit_end|timeformat }} </table>