Bug 30952: Staff interface redesign (header)
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / labels / spinelabel-home.tt
1 [% USE raw %]
2 [% USE Asset %]
3 [% SET footerjs = 1 %]
4 [% INCLUDE 'doc-head-open.inc' %]<title>Quick spine label creator &rsaquo; Tools &rsaquo; Koha</title>
5 [% INCLUDE 'doc-head-close.inc' %]
6 </head>
7
8 <body id="labels_spinelabel-home" class="tools labels">
9 [% WRAPPER 'header.inc' %]
10     [% INCLUDE 'cat-search.inc' %]
11 [% END %]
12
13 [% WRAPPER 'sub-header.inc' %]
14 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
15     <ol>
16         <li>
17             <a href="/cgi-bin/koha/mainpage.pl"><i class="fa fa-home"></i></a>
18         </li>
19         <li>
20             <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a>
21         </li>
22         <li>
23             <a href="#" aria-current="page">
24                 Quick spine label creator
25             </a>
26         </li>
27     </ol>
28 </nav>
29 [% END %]
30
31 <div class="main container-fluid">
32     <div class="row">
33         <div class="col-sm-10 col-sm-push-2">
34             <main>
35
36 <h1>Quick spine label creator</h1>
37                 <form action="/cgi-bin/koha/labels/spinelabel-print.pl" method="post" id="spinelabelprint">
38                                 <fieldset class="brief">
39                                 <ol>
40                                         <li><label for="barcode">Barcode: </label>
41                         <input type="text" name="barcode" id="barcode" class="focus" required="required" />
42                                         </li>
43                                 </ol>
44                                 <fieldset class="action"><input type="submit" value="View spine label" /></fieldset>
45                                 </fieldset>
46                                 </form>
47
48             </main>
49         </div> <!-- /.col-sm-10.col-sm-push-2 -->
50
51         <div class="col-sm-2 col-sm-pull-10">
52             <aside>
53                 [% INCLUDE 'tools-menu.inc' %]
54             </aside>
55         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
56      </div> <!-- /.row -->
57
58 [% MACRO jsinclude BLOCK %]
59     [% Asset.js("js/tools-menu.js") | $raw %]
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' %]