From 0b444cc8ed5161e671fd59a70027fa2038282ba2 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Tue, 7 Feb 2023 07:31:12 +0100 Subject: [PATCH] Replace the old time pickers in the working plan handling --- assets/css/layouts/backend_layout.scss | 1 + assets/js/utils/working_plan.js | 77 ++++++++++++-------------- 2 files changed, 36 insertions(+), 42 deletions(-) diff --git a/assets/css/layouts/backend_layout.scss b/assets/css/layouts/backend_layout.scss index f8f3c83a..d35a81ae 100644 --- a/assets/css/layouts/backend_layout.scss +++ b/assets/css/layouts/backend_layout.scss @@ -706,6 +706,7 @@ body .form-horizontal .controls { #providers-page #providers .working-plan-view .work-start, #providers-page #providers .working-plan-view .work-end { + width: 100px; max-width: 100px; } diff --git a/assets/js/utils/working_plan.js b/assets/js/utils/working_plan.js index f864ae4e..0ab06823 100755 --- a/assets/js/utils/working_plan.js +++ b/assets/js/utils/working_plan.js @@ -189,6 +189,7 @@ App.Utils.WorkingPlan = (function () { this.editableDayCell($('.breaks .break-day')); this.editableTimeCell($('.breaks').find('.break-start, .break-end')); } + /** * Setup the dom elements of a given working plan exception. * @@ -203,6 +204,7 @@ App.Utils.WorkingPlan = (function () { ); } } + /** * Enable editable break day. * @@ -228,6 +230,7 @@ App.Utils.WorkingPlan = (function () { type: 'select', data: weekDays, event: 'edit', + width: '100px', height: '30px', submit: '', cancel: '', @@ -245,6 +248,7 @@ App.Utils.WorkingPlan = (function () { } ); } + /** * Enable editable break time. * @@ -260,6 +264,7 @@ App.Utils.WorkingPlan = (function () { }, { event: 'edit', + width: '100px', height: '30px', submit: $('