From e6c1baa513f5ea33fd7335ad79cc481251457d6c Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 10 Oct 2018 18:16:10 +0000 Subject: [PATCH] Bug 20729: Update style of datepickers This patch updates the styling of form fields which are configured to use the jQueryUI datepicker widget. Some CSS has been added, and the default datepicker configuration has been changed. To test, apply the patch, rebuild the staff client CSS file, and clear your cache if necessary. Test pages which include a datepicker to confirm that they look correct and work correctly. Some examples: - Circulation -> Check out -> Specify due date - Patrons -> Add patron -> Date of birth, registration date, expiry date fields - Serials -> Search subscriptions -> Search results page sidebar - Tools -> News -> Add news item And confirm that this change hasn't adversely affected the calendar tool: - Tools -> Calendar 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 | 8 ++------ 2 files changed, 12 insertions(+), 6 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 dc72a32..d7578e9 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss +++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss @@ -485,6 +485,16 @@ input { border-color: #900; } + &.hasDatepicker { + background-image: url("../img/famfamfam/silk/calendar.png"); + 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 1d06bca..1a17442 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc @@ -1,6 +1,5 @@ [% USE Koha %] - -- 2.1.4