From 1a05359e1336e268a9c561f2b032614c628c3b85 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 8 May 2018 16:07:00 +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 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: Mark Tompsett --- koha-tmpl/intranet-tmpl/prog/css/staff-global.css | 27 ++++++++++++++++++++++ .../intranet-tmpl/prog/en/includes/calendar.inc | 4 +--- 2 files changed, 28 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/css/staff-global.css b/koha-tmpl/intranet-tmpl/prog/css/staff-global.css index c68bff67f9..813bf382a8 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/staff-global.css +++ b/koha-tmpl/intranet-tmpl/prog/css/staff-global.css @@ -3232,7 +3232,34 @@ ul.buttons-list li a:hover.circ-button { /* ==== MODULE LINKS - End ==== */ +input.hasDatepicker { + background-image: url("../img/famfamfam/silk/calendar.png"); + background-repeat: no-repeat; + background-position-x: right; + background-position-y: center; + border-width: 1px; + border-style: inset outset outset inset; + padding-right: 18px; +} + +span.name { + font-weight: bold; + font-style: italic; +} +.result-biblio-itemtype { + float: right; + padding: .5em; + margin: .5em; + font-size: 85%; + text-align: center; +} + +.result-biblio-itemtype img { + display: block; + margin: auto; + margin-bottom: 2px; +} @media (min-width: 200px) { .navbar-nav > li { diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc index f13a1fa4a5..bf07d6621d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc @@ -128,11 +128,9 @@ jQuery(function($){ $(document).ready(function(){ $.datepicker.setDefaults({ - showOn: "both", + showOn: "focus", changeMonth: true, changeYear: true, - buttonImage: '[% interface %]/[% theme %]/img/famfamfam/silk/calendar.png', - buttonImageOnly: true, showButtonPanel: true, showOtherMonths: true, selectOtherMonths: true, -- 2.11.0