Koha/koha-tmpl/intranet-tmpl/prog/en/modules
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
..
acqui Bug 28773: (bug 23302 follow-up) Fix add order from z3950 search results 2021-08-04 14:06:43 +02:00
admin Bug 28376: Replace jQueryUI date/timepicker with Flatpickr 2021-08-30 18:08:04 +02:00
authorities
basket
batch
catalogue Bug 28891: (bug 23916 follow up) Always use 'Checkout on' as default Checkout history sort column 2021-08-30 17:02:07 +02:00
cataloguing Bug 28828: Fix unimarc_field_4XX.tt and marc21_linking_section.tt value builders 2021-08-11 12:53:54 +02:00
circ Bug 28376: Replace jQueryUI date/timepicker with Flatpickr 2021-08-30 18:08:04 +02:00
clubs
common
course_reserves
errors
ill
installer Bug 25078: Keep atomic updates in "atomicupdate" dir 2021-08-16 11:55:56 +02:00
labels
mana
members Bug 28810: replace housebould detail inputs with textarea 2021-08-30 17:02:07 +02:00
offline_circ
onboarding
patron_lists
patroncards
plugins
pos Bug 28390: Move timestamp into grouping row 2021-08-18 15:10:18 +02:00
reports Bug 28376: Replace jQueryUI date/timepicker with Flatpickr 2021-08-30 18:08:04 +02:00
reserve Bug 7703: (follow-up) Treat no items like none available 2021-08-30 17:02:07 +02:00
reviews
rotating_collections
serials Bug 28719: Change somes links in the serials page to avoid them leading to nothing 2021-08-16 09:56:37 +02:00
services
suggestion
tags
test
tools Bug 28843: Add view and edit buttons to result of MARC record import 2021-08-30 17:02:07 +02:00
virtualshelves
about.tt Bug 12561: Add warning on about page 2021-08-16 09:57:05 +02:00
auth.tt
intranet-main.tt Bug 28819: Fix advanced search button on mainpage.pl incorrectly links to item search 2021-08-19 10:01:15 +02:00