|
Lines 22-27
Link Here
|
| 22 |
[% SET categories = Categories.all.unblessed %] |
22 |
[% SET categories = Categories.all.unblessed %] |
| 23 |
[% SET columns = ['name', 'cardnumber', 'dateofbirth', 'category', 'branch', 'address', 'phone'] %] |
23 |
[% SET columns = ['name', 'cardnumber', 'dateofbirth', 'category', 'branch', 'address', 'phone'] %] |
| 24 |
[% PROCESS "patron-search.inc" %] |
24 |
[% PROCESS "patron-search.inc" %] |
|
|
25 |
[% PROCESS 'modals/holds_table_modals.inc' %] |
| 25 |
<title |
26 |
<title |
| 26 |
>[% FILTER collapse %] |
27 |
>[% FILTER collapse %] |
| 27 |
[% UNLESS ( multi_hold ) %] |
28 |
[% UNLESS ( multi_hold ) %] |
|
Lines 1393-1437
Link Here
|
| 1393 |
[% END # UNLESS patron %] |
1394 |
[% END # UNLESS patron %] |
| 1394 |
[% END %] |
1395 |
[% END %] |
| 1395 |
|
1396 |
|
| 1396 |
<div id="cancelModal" class="modal" tabindex="-1" role="dialog" aria-hidden="true"> |
1397 |
[% PROCESS 'cancel-hold-modal' form_action = 'request.pl' %] |
| 1397 |
<div class="modal-dialog"> |
|
|
| 1398 |
<div class="modal-content"> |
| 1399 |
<div class="modal-header"> |
| 1400 |
<h1 class="modal-title">Confirm deletion</h1> |
| 1401 |
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> |
| 1402 |
</div> |
| 1403 |
|
| 1404 |
<form id="cancel_modal_form" method="post" action="request.pl"> |
| 1405 |
[% INCLUDE 'csrf-token.inc' %] |
| 1406 |
<div id="inputs"> |
| 1407 |
<input type="hidden" name="op" value="cud-cancel" /> |
| 1408 |
</div> |
| 1409 |
|
| 1410 |
<div class="modal-body"> |
| 1411 |
<p>Are you sure you want to cancel this hold?</p> |
| 1412 |
<div id="cancel_hold_alert" class="alert alert-danger" style="display:none;"></div> |
| 1413 |
<fieldset class="action"> |
| 1414 |
[% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %] |
| 1415 |
[% IF hold_cancellation.count %] |
| 1416 |
<label for="modal-cancellation-reason">Cancellation reason: </label> |
| 1417 |
<select class="cancellation-reason" name="cancellation-reason" id="modal-cancellation-reason"> |
| 1418 |
<option value="">No reason given</option> |
| 1419 |
[% FOREACH reason IN hold_cancellation %] |
| 1420 |
<option value="[% reason.authorised_value | html %]">[% reason.lib | html %]</option> |
| 1421 |
[% END %] |
| 1422 |
</select> |
| 1423 |
[% END %] |
| 1424 |
</fieldset> |
| 1425 |
</div> |
| 1426 |
|
1398 |
|
| 1427 |
<div class="modal-footer"> |
|
|
| 1428 |
<button id="cancelModalConfirmBtn" type="submit" class="btn btn-danger">Confirm cancellation</button> |
| 1429 |
<button type="button" class="btn btn-default" data-bs-dismiss="modal">Cancel</button> |
| 1430 |
</div> |
| 1431 |
</form> |
| 1432 |
</div> |
| 1433 |
</div> |
| 1434 |
</div> |
| 1435 |
<div id="hold-actions"> |
1399 |
<div id="hold-actions"> |
| 1436 |
<form id="hold-actions-form"> [% INCLUDE 'csrf-token.inc' %] </form> |
1400 |
<form id="hold-actions-form"> [% INCLUDE 'csrf-token.inc' %] </form> |
| 1437 |
</div> |
1401 |
</div> |
| 1438 |
- |
|
|