Bug 29002: (follow-up) Use $patron_to_html function
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / labels / spinelabel-home.tt
1 [% USE raw %]
2 [% USE Asset %]
3 [% PROCESS 'i18n.inc' %]
4 [% SET footerjs = 1 %]
5 [% INCLUDE 'doc-head-open.inc' %]
6     <title>[% FILTER collapse %]
7         [% t("Quick spine label creator") | html %] &rsaquo;
8         [% t("Cataloging") | html %] &rsaquo;
9         [% t("Koha") | html %]
10     [% END %]</title>
11     [% INCLUDE 'doc-head-close.inc' %]
12 </head>
13
14 <body id="labels_spinelabel-home" class="tools labels">
15 [% WRAPPER 'header.inc' %]
16     [% INCLUDE 'cat-search.inc' %]
17 [% END %]
18
19 [% WRAPPER 'sub-header.inc' %]
20     [% WRAPPER breadcrumbs %]
21         [% WRAPPER breadcrumb_item %]
22             <a href="/cgi-bin/koha/cataloguing/cataloging-home.pl">Cataloging</a>
23         [% END %]
24         [% WRAPPER breadcrumb_item bc_active= 1 %]
25             <span>Quick spine label creator</span>
26         [% END %]
27     [% END #/ WRAPPER breadcrumbs %]
28 [% END #/ WRAPPER sub-header.inc %]
29
30 <div class="main container-fluid">
31     <div class="row">
32         <div class="col-sm-10 col-sm-push-2">
33             <main>
34
35 <h1>Quick spine label creator</h1>
36                 <form action="/cgi-bin/koha/labels/spinelabel-print.pl" method="post" id="spinelabelprint">
37                                 <fieldset class="brief">
38                                 <ol>
39                                         <li><label for="barcode">Barcode: </label>
40                         <input type="text" name="barcode" id="barcode" class="focus" required="required" />
41                                         </li>
42                                 </ol>
43                                 </fieldset>
44                     <fieldset class="action">
45                         <input type="submit" class="btn btn-primary" value="View spine label" />
46                     </fieldset>
47                                 </form>
48
49             </main>
50         </div> <!-- /.col-sm-10.col-sm-push-2 -->
51
52         <div class="col-sm-2 col-sm-pull-10">
53             <aside>
54                 [% INCLUDE 'cat-menu.inc' %]
55             </aside>
56         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
57      </div> <!-- /.row -->
58
59 [% MACRO jsinclude BLOCK %]
60     <script>
61         $(document).ready(function(){
62             $("#spinelabelprint").on("submit", function(e){
63                 e.preventDefault();
64                 var params = $(this).serialize();
65                 openWindow("/cgi-bin/koha/labels/spinelabel-print.pl?" + params,"Print spine label",400,400);
66                 $("#barcode").val("").focus();
67             });
68         });
69     </script>
70 [% END %]
71
72 [% INCLUDE 'intranet-bottom.inc' %]