From 662c4d6ba2c9370ee315cd1a99f99cb5acb0ec4d Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Mon, 15 May 2023 16:56:24 +0100 Subject: [PATCH] Bug 29002: Use vis-timeline in bookings view This patch uses vis-timeline to display a timeline of bookings on the booking details display tab. Test plan 1) Follow the steps from the previous patch test plans 2) Note the new visual timeline view of bookings on the bookings detail page. 3) Confirm that clicking the red cross next to a booking triggers the cancellation modal 4) Sign off 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/modules/bookings/list.tt | 87 +++++++++++++++++++ .../prog/js/cancel_booking_modal.js | 4 + .../prog/js/place_booking_modal.js | 13 +++ 3 files changed, 104 insertions(+) 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 34ba2c655a..d9f4fd1aee 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/bookings/list.tt @@ -38,6 +38,7 @@
[% INCLUDE 'cat-toolbar.inc' %]

Bookings for [% INCLUDE 'biblio-title-head.inc' %]

+
@@ -56,6 +57,7 @@ [% MACRO jsinclude BLOCK %] [% Asset.js("lib/dayjs/dayjs.min.js") | $raw %] + [% Asset.js("lib/vis-timeline/vis-timeline-graph2d.min.js") | $raw %] [% INCLUDE 'datatables.inc' %] [% INCLUDE 'columns_settings.inc' %] [% INCLUDE 'calendar.inc' %] @@ -64,8 +66,93 @@ [% Asset.js("js/place_booking_modal.js") | $raw %] [% Asset.js("js/cancel_booking_modal.js") | $raw %]