Koha/koha-tmpl/intranet-tmpl/prog/js
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
..
pages Bug 7703: Don't block bulk hold action on search results if some items can't be placed on hold 2021-08-30 17:02:07 +02:00
acq.js
acquisitions-menu.js
additem.js Bug 28135: Replace use of input type number in additem.js 2021-05-11 15:37:42 +02:00
addorderiso2709.js Bug 27982: (follow-up) Address another missing instance 2021-04-06 15:56:31 +02:00
admin-menu.js
ajax.js
audio_alerts.js
auth-finder-search.js
automatic_item_modification_by_age.js
background-job-progressbar.js
basket.js Bug 27754: Correct eslint errors in basket.js 2021-03-01 11:28:03 +01:00
basketgroup.js
biblio_framework.js
browser.js Bug 28802: Untranslatable strings in browser.js 2021-08-18 12:40:49 +00:00
calendar.js Bug 28376: Replace jQueryUI date/timepicker with Flatpickr 2021-08-30 18:08:04 +02:00
cart.js Bug 26439: (QA follow-up) Correct MSG instances in cart.js 2020-11-04 12:59:34 +01:00
cashup_modal.js Bug 26274: Update register.tt to use the API 2021-02-12 12:33:41 +01:00
catalog.js Bug 26707: Split cart and lists button on bibliographic detail pages 2021-01-04 16:31:29 +01:00
cataloging.js Bug 28812: Improve robustness of selector 2021-08-30 17:02:07 +02:00
cataloging_additem.js Bug 28689: Extra %s in alert message when saving an items 2021-07-30 16:07:38 +02:00
categories.js Bug 28376: Replace jQueryUI date/timepicker with Flatpickr 2021-08-30 18:08:04 +02:00
charts.js
checkouts.js Bug 28271: Add (current status) 2021-06-21 10:50:09 +02:00
circ-patron-search-results.js
datatables.js Bug 28096: Fix table settings for API datatables wrapper 2021-04-21 10:51:29 +02:00
desk_selection.js
elasticsearch-mappings.js Bug 26970: Add row highlight on drag in Elasticsearch mapping template 2021-04-07 16:08:04 +02:00
file-upload.js
funds_sorts.js
holds.js Bug 28261: (QA follow-up) Fix width after adding visual feedback 2021-08-04 14:06:43 +02:00
ill-availability-partner.js
ill-availability.js
ill-list-table.js Bug 25614: Move ILL request keyword filter to sidebar 2021-01-27 10:45:54 +01:00
item_search_fields.js
letter.js Bug 26602: (QA follow-up) Cleanup datatables settings 2021-02-08 14:56:00 +01:00
localcovers.js
mana.js
marc_modification_templates.js Bug 28418: Show template_id of MARC modification templates 2021-06-21 14:01:51 +02:00
marc_subfields_structure.js Bug 8976: Add the ability to sort subfields for the MARC frameworks 2021-03-01 15:14:22 +01:00
members-menu.js Bug 15788: Use delete_borrowers permission 2021-06-21 13:50:26 +02:00
members.js Bug 27430: Change password minimum value hint when patron category is changed 2021-02-01 16:36:38 +01:00
merge-record.js
messaging-preference-form.js Bug 13613: Move similar JS code to a function 2021-05-11 15:13:25 +02:00
offlinecirc.js
onboarding.js
register_selection.js Bug 24786: Allow selection of cash register at login 2020-11-06 15:39:59 +01:00
rotating-collections.js
select2.js Bug 27124: JS error "select2Width is not defined" 2020-12-21 10:07:40 +01:00
serials-toolbar.js
showpredictionpattern.js
sms_providers.js
staff-global.js Bug 28522: Correct eslint errors in staff-global.js 2021-06-21 12:07:28 +02:00
subscription-add.js Bug 27998: (follow-up) Address missing instances 2021-04-06 15:56:31 +02:00
table_filters.js
tools-menu.js
viewlog.js Bug 26572: (QA follow-up) Escape strings in autocomplete 2020-11-04 12:59:34 +01:00
xmlControlfield.js
z3950_search.js Bug 28773: (QA follow-up) Additional changes 2021-08-04 14:06:43 +02:00