Bug 31261: Disable dates in the past for curbside pickups
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Sun, 31 Jul 2022 06:29:41 +0000 (08:29 +0200)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 14 Nov 2022 12:15:51 +0000 (09:15 -0300)
commit614b0a50330b9e110c69b30a83045c99c941ed20
treeed1baa29398452c604d3f24c44688855b8af5a06
parent6df74598ebd2f18320540fc32e7249dfe8239f67
Bug 31261: Disable dates in the past for curbside pickups

When creating a new pickup the dates in the past won't display any
available slots. It would be better to disable them in the date picker.

Test plan:
Setup curbside pickups for your library (see bug 30650 test plan if
needed)
Create a new pickup (staff and OPAC) and confirm that the date picker widget
has the dates in the past disabled.

QA note: More work would be needed to sync calendar.inc code between
OPAC and staff. Also note that the "clear date" code wasn't needed
(please confirm).

Sponsored-by: Association KohaLa - https://koha-fr.org/
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/modules/circ/curbside_pickups.tt
koha-tmpl/opac-tmpl/bootstrap/en/includes/calendar.inc
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-curbside-pickups.tt