From d3a3297963328787191c949ab51ae88686855b8b Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 18 Aug 2023 17:43:25 +0100 Subject: [PATCH] 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 Signed-off-by: Janet McGowan Signed-off-by: Caroline Cyr La Rose Signed-off-by: Laurence Rault Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi --- .../prog/en/includes/modals/place_booking.inc | 4 +- .../prog/en/modules/bookings/list.tt | 39 +-- .../prog/js/place_booking_modal.js | 288 ++++++++++++------ 3 files changed, 207 insertions(+), 124 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/modals/place_booking.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/modals/place_booking.inc index e5df814c5f..bfc9010877 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/modals/place_booking.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/modals/place_booking.inc @@ -5,11 +5,12 @@