Bug 29394: (follow-up) Pass correct time format and other corrections
authorOwen Leonard <oleonard@myacpl.org>
Tue, 16 Nov 2021 16:46:44 +0000 (16:46 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 22 Nov 2021 10:48:45 +0000 (11:48 +0100)
commit8fb01c0453ad3272a2fbb2a05ecfc10789094559
treef324fff33972571d67ac12426a71fe00160f4516
parentbcfd3849a9f8ac91ab9a0b90c1e5cdf9d7b360bc
Bug 29394: (follow-up) Pass correct time format and other corrections

This patch makes a few corrections, including adding the
correct Flatpickr date format option when the timepicker is enabled.

Besides past and future date options, I've added a "pastinclusive"
option which allows dates in the past OR today. This option was
previously applied to the checkin page.

The patch also corrects a couple of places where the wrong date field
was modified with the new data attributes.

To test, apply the patch and test the datepickers on the batch checkout
and renew pages. When you select a date and time the "TimeFormat" system
preference should be correctly applied.

The calendar widget on the checkin page should allow you to select
today's date.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation_batch_checkouts.tt
koha-tmpl/intranet-tmpl/prog/en/modules/circ/renew.tt
koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt