From 0f18c6fa4b36ad963b380cf7e5801910e93d6a3b Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 8 Dec 2021 14:59:17 +0000 Subject: [PATCH] Bug 29002: Add modal based booking cancellation This patch adds a modal based booking cancellation flow to the biblio bookings display tab page. --- .../en/includes/modals/cancel_booking.inc | 22 +++++++++++++++ .../prog/en/modules/bookings/list.tt | 12 ++++++++ .../prog/js/cancel_booking_modal.js | 28 +++++++++++++++++++ 3 files changed, 62 insertions(+) create mode 100644 koha-tmpl/intranet-tmpl/prog/en/includes/modals/cancel_booking.inc create mode 100644 koha-tmpl/intranet-tmpl/prog/js/cancel_booking_modal.js diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/modals/cancel_booking.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/modals/cancel_booking.inc new file mode 100644 index 0000000000..3e54718311 --- /dev/null +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/modals/cancel_booking.inc @@ -0,0 +1,22 @@ + + diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt index 52834a6aab..b718e4ddae 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt @@ -57,6 +57,7 @@ [% INCLUDE modals/place_booking.inc %] + [% INCLUDE modals/cancel_booking.inc %] [% MACRO jsinclude BLOCK %] [% Asset.js("lib/dayjs/dayjs.min.js") | $raw %] @@ -66,6 +67,7 @@ [% INCLUDE 'select2.inc' %] [% INCLUDE 'js-date-format.inc' %] [% Asset.js("js/place_booking_modal.js") | $raw %] + [% Asset.js("js/cancel_booking_modal.js") | $raw %]