Koha/koha-tmpl/intranet-tmpl/prog/en/modules
Jonathan Druart adbf5e4a6a
Bug 31265: Update style of time selection controls
This patch updates the style of the time selection controls so that it
is clearer that they are elements which the user can interact with. The
times are now styled as buttons, and a check-mark icon is added when a
time is selected.

Also changed: Pickup date and notes fields are hidden until a library
has been selected. The count of existing appointments has been removed
in favor of showing the count of available appointments. A tooltip has
been added: "Appointments available: X"

I also changed the way the date selection event is fired. I found that
jQuery's "change" event on the input itself was not reliable for some
reason. I implemented instead an "onClose" event using the flatpickr
instance.

Note: The patch contains some indentation changes.

To test, apply the patch and enable and configure curbside pickups if
necessary. You should have at least two libraries with curbside hours
defined.

- Log in to the OPAC and go to "your curbside pickups."
- Under the "Schedule a pickup" tab you should see only the option to
  select a library.
- When you select a library the "Pickup date" field should appear.
- When you select a date the time-selection buttons and the notes field
  should appear.
- Hovering over a time should trigger the "Appointments available"
  tooltip.
- Clicking a time should cause the "button" to turn green with a
  check-mark icon.
- Submit a pickup request and confirm that it is saved correctly.
- Return to the "Schedule a pickup" form and confirm that selecting the
  same library again triggers a message, "You already have a pickup
  scheduled for this library."
- Select another library and another date.
- Switch your library selection to the library you already have a
  request for. The date, time, and notes fields should be hidden again
  and the same message triggered about already having a pickup
  scheduled.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2022-08-09 13:32:00 -03:00
..
acqui Bug 10086: (QA follow-up) Fix TT filters 2022-08-09 08:57:22 -03:00
admin Bug 29897: (QA follow-up) Add valid $2 codes to pref description 2022-08-09 10:58:48 -03:00
authorities
basket
batch
catalogue Bug 31305: Remove type= from detail.pl 2022-08-08 13:11:53 -03:00
cataloguing
circ Bug 31265: Update style of time selection controls 2022-08-09 13:32:00 -03:00
clubs
course_reserves Bug 30578: Remove circ/ysearch.pl in favor of the /patrons REST API route 2022-07-18 11:01:34 -03:00
errors
ill Bug 28909: Fix handling if backend doesn't support 2022-08-09 13:21:39 -03:00
installer
labels Bug 31220: (QA follow-up) Add missing filter 2022-08-03 11:49:56 -03:00
mana
members Bug 30874: Remove category_type 2022-08-05 14:51:36 -03:00
offline_circ
onboarding
patron_lists
patroncards Bug 28864: Have patron card creator use PatronsPerPage 2022-08-01 09:53:24 -03:00
plugins
pos Bug 31121: Fix date formatting in cashup summary modal 2022-07-22 14:48:43 -03:00
recalls
reports
reserve Bug 30992: Improve translatability for Waiting at|On hold 2022-08-05 11:52:45 -03:00
reviews
rotating_collections
serials Bug 30658: (bug 29496 follow-up) CheckMandatorySubfields don't work properly with select field in serials-edit.tt for Supplemental issue 2022-08-01 09:20:49 -03:00
services
suggestion
tags Bug 31319: Remove GetItemsInfo from tags/list.pl 2022-08-09 12:03:28 -03:00
test
tools Bug 31269: Define sDefaultContent for DataTables 2022-08-01 09:18:00 -03:00
virtualshelves Bug 25498: (follow-up) Change for autocomplete change of 30578 2022-07-19 11:25:26 -03:00
about.tt Bug 30650: Add dayjs license to the about page 2022-07-29 15:01:50 -03:00
auth.tt
intranet-main.tt Bug 27497: Display Koha version in staff interface home page 2022-08-05 12:01:31 -03:00