|
Lines 15-48
Link Here
|
| 15 |
|
15 |
|
| 16 |
[% IF ( BarcodeNotFound ) %] |
16 |
[% IF ( BarcodeNotFound ) %] |
| 17 |
<body id="labels_spinelabel-print" class="tools labels"> |
17 |
<body id="labels_spinelabel-print" class="tools labels"> |
| 18 |
<p>The barcode [% Barcode | html %] was not found.</p> |
18 |
<div class="dialog message">The barcode [% Barcode | html %] was not found.</div> |
| 19 |
<p><a href="spinelabel-home.pl">Return to spine label printer</a></p> |
19 |
<div id="print_button" class="noprint"> |
|
|
20 |
<button class="btn btn-default close-window">Close</button> |
| 21 |
</div> |
| 20 |
[% ELSE %] |
22 |
[% ELSE %] |
| 21 |
<body id="labels_spinelabel-print" class="tools labels"> |
23 |
<body id="labels_spinelabel-print" class="tools labels"> |
| 22 |
<div id="spinelabel"> |
24 |
<div id="spinelabel"> |
| 23 |
[% content | $raw %] |
25 |
[% content | $raw %] |
| 24 |
</div> |
26 |
</div> |
| 25 |
<div id="print_button" class="noprint"> |
27 |
<div id="print_button" class="noprint"> |
| 26 |
<button class="btn btn-default print-label" onclick="window.print()"><i class="fa fa-print"></i> Print this label</button> |
28 |
<button class="btn btn-default print-label"><i class="fa fa-print"></i> Print this label</button> |
| 27 |
</div> |
29 |
</div> |
| 28 |
[% END %] |
30 |
[% END %] |
| 29 |
|
31 |
|
| 30 |
[% IF ( IntranetUserJS ) %] |
32 |
[% Asset.js( "lib/jquery/jquery-2.2.3.min.js" ) | $raw %] |
| 31 |
[% Asset.js( "lib/jquery/jquery-2.2.3.min.js" ) | $raw %] |
33 |
[% Asset.js( "lib/jquery/jquery-migrate-1.3.0.min.js" ) | $raw %] |
| 32 |
[% Asset.js( "lib/jquery/jquery-migrate-1.3.0.min.js" ) | $raw %] |
34 |
[% IF ( autoprint ) %] |
| 33 |
[% IF ( autoprint ) %] |
35 |
[% INCLUDE 'slip-print.inc' #printThenClose %] |
| 34 |
[% INCLUDE 'slip-print.inc' #printThenClose %] |
|
|
| 35 |
[% END %] |
| 36 |
<script> |
| 37 |
[% IntranetUserJS | $raw %] |
| 38 |
$(document).ready(function(){ |
| 39 |
$(".print-label").on("click", function(e){ |
| 40 |
e.preventDefault(); |
| 41 |
window.print(); |
| 42 |
window.close(); |
| 43 |
}); |
| 44 |
}); |
| 45 |
</script> |
| 46 |
[% END %] |
36 |
[% END %] |
|
|
37 |
<script> |
| 38 |
[% IntranetUserJS | $raw %] |
| 39 |
$(document).ready(function(){ |
| 40 |
$(".print-label").on("click", function(e){ |
| 41 |
e.preventDefault(); |
| 42 |
window.print(); |
| 43 |
window.close(); |
| 44 |
}); |
| 45 |
|
| 46 |
$(".close-window").on("click", function(e){ |
| 47 |
e.preventDefault(); |
| 48 |
window.close(); |
| 49 |
}); |
| 50 |
}); |
| 51 |
</script> |
| 47 |
|
52 |
|
| 48 |
[% INCLUDE 'popup-bottom.inc' %] |
53 |
[% INCLUDE 'popup-bottom.inc' %] |
| 49 |
- |
|
|