|
Lines 686-691
Link Here
|
| 686 |
|
686 |
|
| 687 |
<div class="modal-footer"> |
687 |
<div class="modal-footer"> |
| 688 |
<input type="hidden" name="cancel_reserve" value="0" /> |
688 |
<input type="hidden" name="cancel_reserve" value="0" /> |
|
|
689 |
<input type="hidden" name="cancel_reason" value="" /> |
| 689 |
<input id="confirm-hold-barcode" type="hidden" name="barcode" value="[% barcode | html %]" /> |
690 |
<input id="confirm-hold-barcode" type="hidden" name="barcode" value="[% barcode | html %]" /> |
| 690 |
|
691 |
|
| 691 |
<button type="submit" class="btn btn-default approve" data-dismiss="modal" accesskey="y"> |
692 |
<button type="submit" class="btn btn-default approve" data-dismiss="modal" accesskey="y"> |
|
Lines 700-708
Link Here
|
| 700 |
<i class="fa fa-times"></i> Ignore (I) |
701 |
<i class="fa fa-times"></i> Ignore (I) |
| 701 |
</button> |
702 |
</button> |
| 702 |
|
703 |
|
| 703 |
<button type="button" class="btn btn-default deny cancel-hold" accesskey="X"> |
704 |
<fieldset class="action"> |
| 704 |
<i class="fa fa-trash-can"></i> Cancel hold (X) |
705 |
[% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %] |
| 705 |
</button> |
706 |
[% IF hold_cancellation.count %] |
|
|
707 |
<select name="cancellation-reason" id="cancellation-reason"> |
| 708 |
<option value="NULL">No reason given</option> |
| 709 |
[% FOREACH reason IN hold_cancellation %] |
| 710 |
<option value="[% reason.authorised_value | html %]">[% reason.lib | html %]</option> |
| 711 |
[% END %] |
| 712 |
</select> |
| 713 |
[% END %] |
| 714 |
<button type="button" class="btn btn-default deny cancel-hold" accesskey="X"> |
| 715 |
<i class="fa fa-trash-can"></i> Cancel hold (X) |
| 716 |
</button> |
| 717 |
</fieldset> |
| 718 |
|
| 706 |
</div> <!-- /.modal-footer --> |
719 |
</div> <!-- /.modal-footer --> |
| 707 |
</form> <!-- /.confirm --> |
720 |
</form> <!-- /.confirm --> |
| 708 |
</div> <!-- /.modal-content --> |
721 |
</div> <!-- /.modal-content --> |
|
Lines 1549-1555
Link Here
|
| 1549 |
this.form.submit(); |
1562 |
this.form.submit(); |
| 1550 |
}); |
1563 |
}); |
| 1551 |
$('.cancel-hold').on("click",function(e){ |
1564 |
$('.cancel-hold').on("click",function(e){ |
|
|
1565 |
let cancel_reason = document.getElementById('cancellation-reason').value; |
| 1552 |
this.form.cancel_reserve.value = 1; |
1566 |
this.form.cancel_reserve.value = 1; |
|
|
1567 |
this.form.cancel_reason.value = cancel_reason; |
| 1553 |
this.form.submit(); |
1568 |
this.form.submit(); |
| 1554 |
}); |
1569 |
}); |
| 1555 |
|
1570 |
|
| 1556 |
- |
|
|