From bee41cc9fd1ecbb7a0b6c5ba09c253d806f25f0c Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Mon, 30 Dec 2024 20:51:01 +0000 Subject: [PATCH] Bug 38681: Add flatpickr to datelastborrowed field in itemsearch To test: 1. APPLY PATCH 2. Have some checkouts with various issue dates. 3. Go to item search and look for the 'Last checkout date:' 4. Try some different searches and confirm that they work as expected. 5. Change the DateFormat system preference and make sure the search still works with all the DateFormat optoins. --- koha-tmpl/intranet-tmpl/prog/css/itemsearchform.css | 4 ++++ .../intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/css/itemsearchform.css b/koha-tmpl/intranet-tmpl/prog/css/itemsearchform.css index 82ca487dd41..158be490a7d 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/itemsearchform.css +++ b/koha-tmpl/intranet-tmpl/prog/css/itemsearchform.css @@ -63,6 +63,10 @@ input[type="text"] { padding: .375rem .75rem; } +#itemsearchform .flatpickr-input { + padding-left: 1.5em; +} + .select2.select2-container.select2-container--default { flex-grow: 1; max-width: 60%; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt index 607972965ae..3c9253f82ee 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt @@ -328,8 +328,7 @@ [% END %] - - ISO Format (YYYY-MM-DD) +
@@ -360,6 +359,7 @@ [% MACRO jsinclude BLOCK %] + [% INCLUDE 'calendar.inc' %] [% INCLUDE 'datatables.inc' %] [% INCLUDE 'columns_settings.inc' %] [% INCLUDE 'select2.inc' %] -- 2.39.2