Koha/koha-tmpl/intranet-tmpl/prog/en/includes/modals/cancel_booking.inc
Martin Renvoize 21fb463445
Bug 29002: Add modal based booking cancellation
This patch adds a modal based booking cancellation flow to the biblio
bookings display tab page.

Test plan
1) Follow the test plans for the previous patches
2) Note a new column now appears in the bookings table with a 'Cancel'
   action button against each booking
3) Cancel one of the bookings using the new cancel button
4) A modal dialog should appear allowing you to continue with the
   cancelation or cancel
5) Confirm the cancelled booking is removed from the bookings table
6) Sign off

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>
2023-11-03 12:04:09 -03:00

22 lines
1.3 KiB
HTML

<!-- Cancel booking modal -->
<div class="modal" id="cancelBookingModal" tabindex="-1" role="dialog" aria-labelledby="cancelBookingLabel">
<form id="cancelBookingForm">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title" id="cancelBookingLabel">Cancel booking</h4>
</div>
<div class="modal-body">
<div id="cancel_booking_result"></div>
<input type="hidden" name="booking_id" id="cancel_booking_id">
<p>Are you sure you want to cancel this booking?</p>
</div> <!-- /.modal-body -->
<div class="modal-footer">
<button type="submit" class="btn btn-danger">Confirm</button>
<button type="button" class="btn btn-default" data-dismiss="modal" aria-hidden="true">Cancel</button>
</div> <!-- /.modal-footer -->
</div> <!-- /.modal-content -->
</div> <!-- /.modal-dialog -->
</form>
</div> <!-- /#cancelBookingModal -->