Bug 29002: Add an edit modal
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 18 Aug 2023 16:43:25 +0000 (17:43 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 3 Nov 2023 15:04:19 +0000 (12:04 -0300)
commitd3a3297963328787191c949ab51ae88686855b8b
tree06d8a5431c82cabe8c61598c9db4cf556535a903
parent2c6d57c25405545465ecef34c6b96df1f4015bde
Bug 29002: Add an edit modal

This patch updates the place_booking modal so it may be used as an
edit/confirmation modal at booking edit time.

Test plan
1) Follow the previous test plans
2) Note the new 'Edit' option in the bookings list table
3) Click the 'Edit' button to trigger the edit modal
4) Edit the dates, item or patron and confirm that upon clicking save
   the edit works as expected.
5) Edit a booking via the timeline
6) Note that the edit not triggers the same edit dialogue modal where
   you can make further changes.
7) Save and note the timeline and bookings table reflect the changes.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Janet McGowan <janet.mcgowan@ptfs-europe.com>
Signed-off-by: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com>
Signed-off-by: Laurence Rault <laurence.rault@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/includes/modals/place_booking.inc
koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt
koha-tmpl/intranet-tmpl/prog/js/place_booking_modal.js