From b25bb752a64dde21f20de60d2f9ecac14f950daf Mon Sep 17 00:00:00 2001 From: AlexandreDoneux <94830560+AlexandreDoneux@users.noreply.github.com> Date: Fri, 19 Jan 2024 10:28:14 +0100 Subject: [PATCH] typo in flickr files names --- .../{flatpicker.min.css => flatpickr.min.css} | 0 .../{flatpicker.min.js => flatpickr.min.js} | 0 .../templates/course_admin/settings.html | 17 +++++++++++++++-- inginious/frontend/templates/layout.html | 1 + 4 files changed, 16 insertions(+), 2 deletions(-) rename inginious/frontend/static/css/{flatpicker.min.css => flatpickr.min.css} (100%) rename inginious/frontend/static/js/libs/{flatpicker.min.js => flatpickr.min.js} (100%) diff --git a/inginious/frontend/static/css/flatpicker.min.css b/inginious/frontend/static/css/flatpickr.min.css similarity index 100% rename from inginious/frontend/static/css/flatpicker.min.css rename to inginious/frontend/static/css/flatpickr.min.css diff --git a/inginious/frontend/static/js/libs/flatpicker.min.js b/inginious/frontend/static/js/libs/flatpickr.min.js similarity index 100% rename from inginious/frontend/static/js/libs/flatpicker.min.js rename to inginious/frontend/static/js/libs/flatpickr.min.js diff --git a/inginious/frontend/templates/course_admin/settings.html b/inginious/frontend/templates/course_admin/settings.html index 897312a3a..c32759ab6 100644 --- a/inginious/frontend/templates/course_admin/settings.html +++ b/inginious/frontend/templates/course_admin/settings.html @@ -166,9 +166,10 @@

{{_("Course settings")}}

- + hey + + -
@@ -194,6 +195,18 @@

{{_("Course settings")}}

$('#accessible_end_picker').datetimepicker({locale: '{{user_manager.session_language()}}', timeZone: '{{user_manager.session_timezone()}}', defaultDate: end_date, sideBySide: true, format:'YYYY-MM-DD HH:mm:ss'}); + flatpickr("#datetimePicker", { + enableTime: true, + dateFormat: "Y-m-d H:i", + }); + +/* + $("#datetimePicker").flatpickr({ + enableTime: true, + dateFormat: "Y-m-d H:i", + }); +*/ + }); diff --git a/inginious/frontend/templates/layout.html b/inginious/frontend/templates/layout.html index 3fcb5c698..15f7aa326 100644 --- a/inginious/frontend/templates/layout.html +++ b/inginious/frontend/templates/layout.html @@ -92,6 +92,7 @@ {% endif %} +