From e5445f8ad33d24635efcebb2631c4939bc14a2ca Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ji=C5=99=C3=AD=20Setni=C4=8Dka?= <setnicka@seznam.cz>
Date: Thu, 7 Jan 2021 23:26:33 +0100
Subject: [PATCH] =?UTF-8?q?Detail=20a=20editace=20kola:=20Nov=C3=A9=20slou?=
 =?UTF-8?q?pe=C4=8Dky?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 mo/web/org_round.py               | 5 +++--
 mo/web/templates/org_contest.html | 2 +-
 mo/web/templates/org_round.html   | 2 +-
 3 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/mo/web/org_round.py b/mo/web/org_round.py
index 7dad0788..c940f954 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 d2a5772a..2b02d014 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 5ab222a8..b2a3c87f 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>
-- 
GitLab