Owen Leonard
f892ae8bf1
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> |
||
---|---|---|
.. | ||
article-requests.tt | ||
bookcount.tt | ||
branchoverdues.tt | ||
branchtransfers.tt | ||
checkout-notes.tt | ||
circulation-home.tt | ||
circulation.tt | ||
circulation_batch_checkouts.tt | ||
offline-mf.tt | ||
offline.tt | ||
on-site_checkouts.tt | ||
overdue.tt | ||
pendingreserves.tt | ||
printslip.tt | ||
renew.tt | ||
request-article.tt | ||
reserveratios.tt | ||
returns.tt | ||
set-library.tt | ||
transfers_to_send.tt | ||
transferstoreceive.tt | ||
view_holdsqueue.tt | ||
waitingreserves.tt |