From a32ab5e5c1cb709271cdfe26a7761660f165627b Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 5 Dec 2019 16:27:35 +0100 Subject: [PATCH] Bug 24181: Make our datepicker inputs sexy They are skinny and different from others. Not that a problem, I am too. But I do not think it is what they need. Test plan: Edit a patron and take a look at the input for "Date of birth" => Before this patch they are not looking great => After this patch they are beautiful Signed-off-by: Lucas Gass --- koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss | 10 ---------- koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc | 5 ++++- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss index 9530716ec6..e96f37118f 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss +++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss @@ -385,16 +385,6 @@ input { } } - &.hasDatepicker { - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAT0lEQVQ4jWNgoAZYd/LVf3IwigGkAuwGLE4hDg9eA4il8RqADVdtLYVjZLVEuwDZAKJcgKxh+zkyXIBuI8lhgG4jOqZdLJACMAygKDNRAgBj9qOB+rWnhAAAAABJRU5ErkJggg=="); - background-position-x: right; - background-position-y: center; - background-repeat: no-repeat; - border-style: inset outset outset inset; - border-width: 1px; - padding-right: 18px; - } - &.submit { @include default-button; diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc index e6f12ddce0..1cd41e2961 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc @@ -160,7 +160,10 @@ function(value, element, params) { $(document).ready(function(){ $.datepicker.setDefaults({ - showOn: "focus", + showOn: "both", + buttonImage: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAT0lEQVQ4jWNgoAZYd/LVf3IwigGkAuwGLE4hDg9eA4il8RqADVdtLYVjZLVEuwDZAKJcgKxh+zkyXIBuI8lhgG4jOqZdLJACMAygKDNRAgBj9qOB+rWnhAAAAABJRU5ErkJggg==", + buttonImageOnly: true, + buttonText: _("Select date"), changeMonth: true, changeYear: true, showButtonPanel: true, -- 2.11.0