From 2a67a7a90a8d2edc432e3e54262fb8dc60c4e805 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 --- 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 8fc9058..f5a0876 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss +++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss @@ -483,6 +483,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 653221e..0af144c 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