Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Odevzdávací Systém MO
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Mareš
Odevzdávací Systém MO
Commits
e5445f8a
Commit
e5445f8a
authored
4 years ago
by
Jiří Setnička
Browse files
Options
Downloads
Patches
Plain Diff
Detail a editace kola: Nové sloupečky
parent
e2bcbb26
No related branches found
No related tags found
1 merge request
!9
WIP: Zárodek uživatelské části webu a submitování
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
mo/web/org_round.py
+3
-2
3 additions, 2 deletions
mo/web/org_round.py
mo/web/templates/org_contest.html
+1
-1
1 addition, 1 deletion
mo/web/templates/org_contest.html
mo/web/templates/org_round.html
+1
-1
1 addition, 1 deletion
mo/web/templates/org_round.html
with
5 additions
and
4 deletions
mo/web/org_round.py
+
3
−
2
View file @
e5445f8a
...
...
@@ -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
(
...
...
This diff is collapsed.
Click to expand it.
mo/web/templates/org_contest.html
+
1
−
1
View file @
e5445f8a
...
...
@@ -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>
...
...
This diff is collapsed.
Click to expand it.
mo/web/templates/org_round.html
+
1
−
1
View file @
e5445f8a
...
...
@@ -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>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment