Koha/koha-tmpl/intranet-tmpl/prog/en/modules/circ
Owen Leonard f892ae8bf1 Bug 28376: Replace jQueryUI date/timepicker with Flatpickr
This patch is a proof of concept demonstrating how jQueryUI date & time
pickers could be replaced using the Flatpickr library
(https://flatpickr.js.org/).

NEW: I've modified the default configuration of Flatpickr instances so
that a "Clear date" link is automatically appended. This eliminates the
need to add a button to the markup and event handling for each case.

NEW: Date/time formatting should be corrected in this revised patch.

The patch modifies three pages as test cases:
 - Circulation -> Renew (with SpecifyDueDates enabled), to demonstrate
   date and time selection.
   - NEW: You can also test the datepicker shown when you renew an
     on-hold item. This demonstrates a configuration which requires that
     the selection be after today.
 - Administration -> Patron categories -> New category, to demonstrate a
   calendar-only date picker enforcing a date after today.
 - NEW: Reports -> Patrons. The "Date of birth" fields are linked so
   that the second cannot be before the first.

I've made some customizations to the default Flatpickr library's CSS and
incorporated it into staff-global.scss, so you must rebuild the staff
client SCSS
(https://wiki.koha-community.org/wiki/Working_with_SCSS_in_the_OPAC_and_staff_client).

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-08-30 18:08:04 +02:00
..
article-requests.tt Bug 20472: (QA follow-up) Add few TT filters 2021-07-12 15:47:34 +02:00
bookcount.tt
branchoverdues.tt
branchtransfers.tt Bug 27064: (QA follow-up) Do not create transfer prior to accepting it 2021-06-14 16:10:15 +02:00
checkout-notes.tt
circulation-home.tt Bug 28601: Fix 'Home' breadcrumd on circulation-home.pl 2021-06-24 11:53:44 +02:00
circulation.tt Bug 28261: Add visual feedback on overridden pickup locations on patron's page 2021-08-04 14:06:43 +02:00
circulation_batch_checkouts.tt Bug 28443: Terminology: Issuing should be Checking out 2021-06-21 12:07:28 +02:00
offline-mf.tt
offline.tt
on-site_checkouts.tt
overdue.tt Bug 28695: Add shelving location column to overdue.tt 2021-08-30 17:02:07 +02:00
pendingreserves.tt
printslip.tt
renew.tt Bug 28376: Replace jQueryUI date/timepicker with Flatpickr 2021-08-30 18:08:04 +02:00
request-article.tt Bug 20472: (QA follow-up) Add few TT filters 2021-07-12 15:47:34 +02:00
reserveratios.tt Bug 28728: Link to holds page from holds raio 2021-07-30 16:07:38 +02:00
returns.tt Bug 20688: Add accesskeys for transfers 2021-08-30 17:02:07 +02:00
set-library.tt
transfers_to_send.tt
transferstoreceive.tt
view_holdsqueue.tt
waitingreserves.tt