Koha/koha-tmpl/intranet-tmpl/prog/en/modules/serials/routing-preview-slip.tt
Owen Leonard 5c68609110 Bug 27561: Remove type attribute from script tags: Various templates
This patch replaces remaining instances of <script type="javascript"> in
templates with "<script>."

To test, apply the patch and check the changes to the template. Verify
that the changes look correct.

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-02-01 16:36:38 +01:00

53 lines
1.5 KiB
Text

[% USE Koha %]
[% USE raw %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Serials &rsaquo; Routing slip preview</title>
[% INCLUDE 'doc-head-close.inc' %]
<style media="print">
#ser_routing-preview-slip { min-width:0; width:auto; }
</style>
</head>
<body id="ser_routing-preview-slip" class="ser">
<div class="container-fluid">
<table>
<tr>
<td colspan="2"><h3>[% libraryname | html %]</h3></td>
</tr>
<tr>
<td colspan="2"><strong>Title:</strong> [% title | html %]<br />[% issue | html %]</td>
</tr>
<tr>
<td><strong>Name</strong></td>
<td><strong>Date due</strong></td>
</tr>
[% FOREACH memberloo IN memberloop %]
<tr>
<td>[% memberloo.name | html %]</td>
<td>&nbsp;</td>
</tr>
[% END %]
</table>
<div id="routingnotes">
<p id="generalroutingnote">[% Koha.Preference('RoutingListNote') | $raw %]</p>
<p id="routingnote">[% routingnotes | html %]</p>
</div>
<div id="closewindow" class="noprint"><a class="btn btn-default btn-default" id="print_slip" href="#"><i class="fa fa-print"></i> Print</a> <a class="btn btn-default btn-default close" href="#">Close</a></div>
[% MACRO jsinclude BLOCK %]
<script>
$(document).ready(function(){
$("#print_slip").on("click",function(e){
e.preventDefault();
window.print();
self.close();
});
});
</script>
[% END %]
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]