Skip to content

Commit

Permalink
[frontend] Fix datetime picker minute and second increment to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreDoneux committed Feb 5, 2024
1 parent e6b17c1 commit 5b7754e
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
4 changes: 4 additions & 0 deletions inginious/frontend/plugins/contests/admin.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ <h2>Contest settings</h2>
clickOpens: false,
enableTime: true,
enableSeconds: true,
minuteIncrement: 1,
secondIncrement: 1,
dateFormat: flatpickr_datetime_format,
allowInput: true,
time_24hr: true,
Expand Down Expand Up @@ -103,6 +105,8 @@ <h2>Contest settings</h2>
clickOpens: false,
enableTime: true,
enableSeconds: true,
minuteIncrement: 1,
secondIncrement: 1,
dateFormat: flatpickr_datetime_format,
allowInput: true,
time_24hr: true,
Expand Down
8 changes: 8 additions & 0 deletions inginious/frontend/templates/course_admin/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@ <h2>{{_("Course settings")}}</h2>
clickOpens: false,
enableTime: true,
enableSeconds: true,
minuteIncrement: 1,
secondIncrement: 1,
dateFormat: flatpickr_datetime_format,
allowInput: true,
time_24hr: true,
Expand All @@ -207,6 +209,8 @@ <h2>{{_("Course settings")}}</h2>
clickOpens: false,
enableTime: true,
enableSeconds: true,
minuteIncrement: 1,
secondIncrement: 1,
dateFormat: flatpickr_datetime_format,
allowInput: true,
time_24hr: true,
Expand Down Expand Up @@ -283,6 +287,8 @@ <h2>{{_("Course settings")}}</h2>
clickOpens: false,
enableTime: true,
enableSeconds: true,
minuteIncrement: 1,
secondIncrement: 1,
dateFormat: flatpickr_datetime_format,
allowInput: true,
time_24hr: true,
Expand All @@ -296,6 +302,8 @@ <h2>{{_("Course settings")}}</h2>
clickOpens: false,
enableTime: true,
enableSeconds: true,
minuteIncrement: 1,
secondIncrement: 1,
dateFormat: flatpickr_datetime_format,
allowInput: true,
time_24hr: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
clickOpens: false,
enableTime: true,
enableSeconds: true,
minuteIncrement: 1,
secondIncrement: 1,
dateFormat: flatpickr_datetime_format,
allowInput: true,
time_24hr: true,
Expand All @@ -27,6 +29,8 @@
clickOpens: false,
enableTime: true,
enableSeconds: true,
minuteIncrement: 1,
secondIncrement: 1,
dateFormat: flatpickr_datetime_format,
allowInput: true,
time_24hr: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@
clickOpens: false,
enableTime: true,
enableSeconds: true,
minuteIncrement: 1,
secondIncrement: 1,
dateFormat: flatpickr_datetime_format,
allowInput: true,
time_24hr: true,
Expand Down

0 comments on commit 5b7754e

Please sign in to comment.