Bug 5227 [3.4] Enhance the label batch edit interface
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / labels / label-edit-batch.tmpl
1     <!-- PLEASE MAINTAIN PROPER INDENTATION!!!!  -->
2     <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
3     <title>Koha &rsaquo; Tools &rsaquo; Labels &rsaquo; Manage Label Batches</title>
4     <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
5     <!-- TMPL_INCLUDE NAME="greybox.inc" -->
6     <script type="text/javascript">
7     //<![CDATA[
8         function dofocus() {    // named function req'd for body onload event by some FF and IE7 security models
9             $(".focus:last").select();
10         }
11         function verifyBarcodes(barcodes) {
12             if (barcodes.value == '') {
13                 alert("Please add barcodes using either the direct entry text area or the item search.");
14                 return false;   // not ok
15             }
16             else {
17                 return true;    // ok
18             };
19         }
20     //]]>
21     </script>
22 </head>
23 <body onload="dofocus();">
24     <!-- TMPL_INCLUDE NAME="header.inc" -->
25     <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
26     <div id="breadcrumbs">
27         <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; 
28         <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo;
29         <a href="/cgi-bin/koha/labels/label-home.pl">Labels Home</a> &rsaquo;
30         <a href="/cgi-bin/koha/labels/label-manage.pl?label_element=batch">Mange Label Batches</a> &rsaquo;
31         Manage Batch Number <!-- TMPL_VAR NAME="batch_id" -->
32     </div>
33     <div id="doc3" class="yui-t2">
34         <div id="bd">
35             <div id="yui-main">
36                 <div class="yui-b">
37                     <!-- TMPL_INCLUDE NAME="labels-batches-toolbar.inc" -->
38                     <div class="yui-g">
39                         <div class="yui-u first" id="manage-label-batches">
40                             <div class="hint">Current Branch: <!-- TMPL_VAR NAME="LoginBranchname" --></div>
41                             <form name="add_by_barcode" action="/cgi-bin/koha/labels/label-edit-batch.pl" method="post">
42                                 <div>
43                                     <fieldset class="rows" style="border-bottom: 0px; border: 0px;">
44                                     <ol><li>
45                                     <input type="hidden" name="op" value="add" \>
46                                     <input type="hidden" name="batch_id" value="<!-- TMPL_VAR NAME="batch_id" -->" \>
47                                     <label for="barcode">Add by Barcode(s): 
48                                         <br \> <span class="hint">One barcode per line.</span>
49                                         <br \> <span class="hint">Leave empty to add via item search.</span>
50                                     </label>
51                                     <textarea rows="5" id="barcode" name="barcode" tabindex="1" class="focus"></textarea>
52                                     </li></ol>
53                                     </fieldset>
54                                 </div>
55                             </form>
56                                 <!-- TMPL_IF NAME="table_loop" -->
57                                 <form name="items" class="checkboxed">
58                                     <h2>Items in batch number <!-- TMPL_VAR NAME="batch_id" --></h2>
59                                     <table>
60                                         <!-- TMPL_LOOP NAME="table_loop" -->
61                                         <!-- TMPL_IF NAME="header_fields" -->
62                                         <tr>
63                                         <!-- TMPL_LOOP NAME="header_fields" -->
64                                             <th><!-- TMPL_VAR NAME="field_label" --></th>
65                                         <!-- /TMPL_LOOP -->
66                                         </tr>
67                                         <!-- TMPL_ELSE -->
68                                         <tr>
69                                         <!-- TMPL_LOOP NAME="text_fields" -->
70                                         <!-- TMPL_IF NAME="select_field" -->
71                                             <td align="center"><input type="checkbox" name="action" value="<!-- TMPL_VAR NAME="field_value" -->"></td>
72                                         <!-- TMPL_ELSE -->
73                                             <td><!-- TMPL_VAR NAME="field_value" --></td>
74                                         <!-- /TMPL_IF -->
75                                         <!-- /TMPL_LOOP -->
76                                         </tr>
77                                         <!-- /TMPL_IF -->
78                                         <!-- /TMPL_LOOP -->
79                                     </table>
80                                 </form>
81                                 <!-- TMPL_ELSE -->
82                                 <fieldset class="rows" style="border-bottom: 0px; border: 0px;">
83                                 <ol><li>
84                                     <div class="dialog message">
85                                         <h4>There are no items in Batch <!-- TMPL_VAR NAME="batch_id" --> yet</h4>
86                                         <p>Add items by barcode using the text area above or leave empty to add via item search.</p>
87                                     </div>
88                                 </li></ol>
89                                 </fieldset>
90                                 <!-- /TMPL_IF -->
91                             </div>
92                             <!-- TMPL_IF NAME="err" -->
93                             <div class="yui-u">
94                                 <div class="dialog alert">
95                                     <strong>WARNING:</strong> An error was encountered and <!-- TMPL_VAR NAME="errstr" --> Please have your system administrator check the error log for details.
96                                 </div>
97                             </div>
98                             <!-- TMPL_ELSIF NAME="duplicate_message" -->
99                             <div class="yui-u">
100                                 <div class="dialog message">
101                                     <strong><!-- TMPL_VAR NAME="duplicate_count" --> duplicate item(s) found</strong> and removed from batch <!-- TMPL_VAR NAME="batch_id" -->.
102                                 </div>
103                             </div>
104                             <!-- /TMPL_IF -->
105                         </div>
106                     </div>
107                 </div>
108                 <div class="yui-b">
109                     <!-- TMPL_INCLUDE NAME="labels-menu.inc" -->
110                 </div>
111             </div>
112         </div>
113     <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->