Koha/koha-tmpl/intranet-tmpl/lib
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
..
bootstrap Bug 22023: Further improve responsive layout handling of staff client menu bar 2019-03-13 05:31:28 +00:00
Chocolat Bug 28179: (follow-up) Updates to styling of lightbox controls 2021-05-10 15:52:53 +02:00
codemirror Bug 27643: Add CodeMirror custom syntax highlighting for SQL runtime parameters 2021-02-08 17:09:34 +01:00
d3c3
datatables Bug 26471: Remove invalid Map URL 2021-05-10 10:28:00 +02:00
flatpickr Bug 28376: Replace jQueryUI date/timepicker with Flatpickr 2021-08-30 18:08:04 +02:00
font-awesome
greybox
jquery Bug 26806: Remove the jquery.checkboxes plugin from the staff client 2020-11-03 10:57:35 +01:00
js-cookie Bug 23944: Phase out use of jquery.cookie.js in favor of js.cookie.js 2020-01-29 09:08:30 +00:00
jsdiff
keyboard Bug 17178: (RM follow-up) Use latest version of library 2019-06-28 16:35:18 +01:00
koha/cateditor Bug 27308: Skip blank lines when inserting new 2021-01-12 16:03:03 +01:00
leaflet
linters Bug 24193: Add CodeMirror linting of JavaScript, CSS, HTML, and YAML 2020-03-02 10:44:14 +00:00
moment Bug 24455: Add moment-timezone library in staff 2020-03-25 13:54:16 +00:00
select2 Bug 25727: Upgrade the Select2 JS lib to version 4 2020-08-24 11:19:03 +02:00
shortcut
tiny_mce Bug 22661: TinyMCE/WYSIWYG editor doesn't translate 2019-11-03 07:39:54 +00:00
yui Bug 23259: Remove reset-fonts-grids.css 2019-07-15 11:28:07 +01:00
filesaver.js
hc-sticky.js Bug 21751: Replace fixFloat with HC-sticky to fix Chrome display 2019-02-04 14:13:35 +00:00
require.js