Bug 7910: Give feedack when the subscriptions have been renewed
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / serials / routing-preview-slip.tt
index be5084e..5739534 100644 (file)
@@ -1,37 +1,51 @@
+[% SET footerjs = 1 %]
 [% INCLUDE 'doc-head-open.inc' %]
-<title>Koha &rsaquo; Serials  &rsaquo; Routing Slip Preview</title>
+<title>Koha &rsaquo; Serials  &rsaquo; Routing slip preview</title>
 [% INCLUDE 'doc-head-close.inc' %]
-
-<style type="text/css">
-   #custom-doc { width:38.46em;*width:37.53em;min-width:500px; margin:auto; text-align:left; }
-</style>
-<style type="text/css" media="print">
-   .yui-t7, #custom-doc { min-width:0; width:auto; }
+<style media="print">
+     #ser_routing-preview-slip { min-width:0; width:auto; }
 </style>
 </head>
-<body>
 
-<div id="custom-doc" class="yui-t7">
-   <div id="bd">
-       
+<body id="ser_routing-preview-slip" class="ser">
+    <div class="container-fluid">
 
 <table>
-<tr><td colspan="3"><h3>[% libraryname %]</h3></td></tr>
-<tr><td colspan="3"><b>Title:</b> [% title |html %]<br />
-[% issue %]</td></tr>
-<tr><td><b>Name</b></td>
-    <td><b>Date Due</b></td></tr>
-[% FOREACH memberloo IN memberloop %]
-        <tr><td>[% memberloo.name %]</td>
-            <td>&nbsp;</td></tr>
-[% END %]
+    <tr>
+        <td colspan="2"><h3>[% libraryname %]</h3></td>
+    </tr>
+    <tr>
+        <td colspan="2"><b>Title:</b> [% title |html %]<br />[% issue %]</td>
+    </tr>
+    <tr>
+        <td><b>Name</b></td>
+        <td><b>Date due</b></td>
+    </tr>
+    [% FOREACH memberloo IN memberloop %]
+    <tr>
+        <td>[% memberloo.name %]</td>
+        <td>&nbsp;</td>
+    </tr>
+    [% END %]
 </table>
-<p><b>Notes:</b> Please return this item promptly as others are waiting for it.
-<br />[% routingnotes %]</p>
-   <div id="slip-block-links" class="noprint">
-   <a class="button" href="javascript:window.print();self.close()">Print</a> &nbsp; <a class="button" href="javascript:self.close()">Close</a>
-   </div>
 
-   </div>
+<div id="routingnotes">
+    <p id="generalroutingnote">[% generalroutingnote %]</p>
+    <p id="routingnote">[% routingnotes %]</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 type="text/javascript">
+        $(document).ready(function(){
+            $("#print_slip").on("click",function(e){
+                e.preventDefault();
+                window.print();
+                self.close();
+            });
+        });
+    </script>
+[% END %]
 
-[% INCLUDE 'intranet-bottom.inc' %]
+[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]