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 f4200e5..5739534 100644 (file)
@@ -1,18 +1,14 @@
+[% SET footerjs = 1 %]
 [% INCLUDE 'doc-head-open.inc' %]
 <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>
     <p id="routingnote">[% routingnotes %]</p>
 </div>
 
-   <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 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>
 
-   </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 %]