Bug 7936: Holds Help File for 3.8
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / labels / label-edit-batch.tt
1     <!-- PLEASE MAINTAIN PROPER INDENTATION!!!!  -->
2     [% INCLUDE 'doc-head-open.inc' %]
3     <title>Koha &rsaquo; Tools &rsaquo; Labels &rsaquo; Manage label batches</title>
4     [% INCLUDE 'doc-head-close.inc' %]
5     [% INCLUDE '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 id="labels_label-edit-batch" class="tools labels" onload="dofocus();">
24     [% INCLUDE 'header.inc' %]
25     [% INCLUDE '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">Manage label batches</a> &rsaquo;
31         Manage batch number [% 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                     [% INCLUDE 'labels-batches-toolbar.inc' %]
38                     <div class="yui-g">
39                         <div class="yui-u first" id="manage-label-batches">
40                             <div class="hint">Current library: [% 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="[% 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                                 [% IF ( table_loop ) %]
57                                 <form name="items" class="checkboxed">
58                                     <h2>Items in batch number [% batch_id %]</h2>
59                                     <table>
60                                         [% FOREACH table_loo IN table_loop %]
61                                         [% IF ( table_loo.header_fields ) %]
62                                         <tr>
63                                         [% FOREACH header_field IN table_loo.header_fields %]
64                                             <th>[% header_field.field_label %]</th>
65                                         [% END %]
66                                         </tr>
67                                         [% ELSE %]
68                                         <tr>
69                                         [% FOREACH text_field IN table_loo.text_fields %]
70                                         [% IF ( text_field.select_field ) %]
71                                             <td align="center"><input type="checkbox" name="action" value="[% text_field.field_value %]"></td>
72                                         [% ELSE %]
73                                             <td>[% text_field.field_value %]</td>
74                                         [% END %]
75                                         [% END %]
76                                         </tr>
77                                         [% END %]
78                                         [% END %]
79                                     </table>
80                                 </form>
81                                 [% 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 [% 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                                 [% END %]
91                             </div>
92                             [% IF ( err ) %]
93                             <div class="yui-u">
94                                 <div class="dialog alert">
95                                     <strong>WARNING:</strong> An error was encountered and [% errstr %] Please have your system administrator check the error log for details.
96                                 </div>
97                             </div>
98                             [% ELSIF ( duplicate_message ) %]
99                             <div class="yui-u">
100                                 <div class="dialog message">
101                                     <strong>[% duplicate_count %] duplicate item(s) found</strong> and removed from batch [% batch_id %].
102                                 </div>
103                             </div>
104                             [% END %]
105                         </div>
106                     </div>
107                 </div>
108                 <div class="yui-b">
109                     [% INCLUDE 'labels-menu.inc' %]
110                 </div>
111             </div>
112         </div>
113     [% INCLUDE 'intranet-bottom.inc' %]