Bug 24085: Make print and cancel-hold buttons instead of submit

To test:
 1 - Place a hold on an item
 2 - Check in the item to trigger the hold
 3 - Test both the print and cancel buttons to make sure all looks
     correct

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Nick Clemens 2019-12-13 23:01:05 +00:00 committed by Martin Renvoize
parent f497008d7f
commit 568cbb3a0e
Signed by: martin.renvoize
GPG key ID: 422B469130441A0F

View file

@ -474,11 +474,11 @@
</button>
<input type="hidden" name="print_slip" value="0" />
<button type="submit" class="btn btn-default print">
<button type="button" class="btn btn-default print">
<i class="fa fa-print"></i> Print slip and confirm
</button>
<button type="submit" class="btn btn-default deny cancel-hold">
<button type="button" class="btn btn-default deny cancel-hold">
<i class="fa fa-times"></i> Cancel hold
</button>
</div> <!-- /.modal-footer -->
@ -521,7 +521,7 @@
<div class="modal-footer">
[% IF !transfer %]
<button type="submit" name="dotransfer" value="Yes" class="btn btn-default approve"><i class="fa fa-check"></i> Yes</button>
<button type="submit" name="dotransfer" value="Yes" class="btn btn-default print openWin" data-url="transfer-slip.pl?transferitem=[% itemnumber | uri %]&amp;&amp;branchcode=[% returnbranch | uri %]&amp;op=slip"><i class="fa fa-print"></i> Yes, print slip</button>
<button type="button" name="dotransfer" value="Yes" class="btn btn-default print openWin" data-url="transfer-slip.pl?transferitem=[% itemnumber | uri %]&amp;&amp;branchcode=[% returnbranch | uri %]&amp;op=slip"><i class="fa fa-print"></i> Yes, print slip</button>
<button type="button" data-dismiss="modal" class="btn btn-default deny" name="notransfer" value="No"><i class="fa fa-times"></i> No</button>
[% ELSE %]
<button type="button" data-dismiss="modal" class="btn btn-default approve"><i class="fa fa-check"></i> OK</button>
@ -636,14 +636,14 @@
<button type="submit" class="btn btn-default approve">
<i class="fa fa-check"></i> Confirm hold and transfer
</button>
<button type="submit" class="btn btn-default print">
<button type="button" class="btn btn-default print">
<i class="fa fa-print"></i> Print slip, transfer, and confirm
</button>
[% ELSE %]
<button type="submit" class="btn btn-default approve">
<i class="fa fa-check"></i> Confirm hold
</button>
<button type="submit" class="btn btn-default print">
<button type="button" class="btn btn-default print">
<i class="fa fa-print"></i> Print slip and confirm
</button>
[% END %]