fix markup problems in label-edit-layout.tmpl
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / labels / label-edit-layout.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" --><title>Koha &rsaquo; Tools &rsaquo; Labels</title>
2 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
3 <script type="text/javascript">
4 $(document).ready(function() {
5     $("input[@name='layoutchoice']").change( function() { layout_method() } );
6     layout_method();
7 });
8 function layout_method() {
9     if( $("input[@name='layoutchoice']:checked").val() == 'layout_string' ) {
10         $('#layout_tx').hide();
11         $('#layout_string').show();
12     } else {
13         $('#layout_tx').show();
14         $('#layout_string').hide();
15     }
16
17 }
18 </script>
19 </head>
20 <body>
21 <!-- TMPL_INCLUDE NAME="header.inc" -->
22 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
23
24 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo; <a href="/cgi-bin/koha/labels/label-home.pl">Labels</a> &rsaquo; <!-- TMPL_IF NAME="layout_id" -->Edit<!-- TMPL_ELSE -->Create<!-- /TMPL_IF --> Label Layout</div>
25
26 <div id="doc3" class="yui-t2">
27    
28    <div id="bd">
29         <div id="yui-main">
30         <div class="yui-b">
31         <!-- TMPL_INCLUDE NAME="tools-labels-toolbar.inc" -->
32 <form name="input" action="/cgi-bin/koha/labels/label-manager.pl" method="get">
33 <fieldset class="rows">
34 <legend><!-- TMPL_IF NAME="layout_id" -->Edit<!-- TMPL_ELSE -->Create<!-- /TMPL_IF --> Label Layout</legend>
35 <ol>
36 <li><label for="layoutname">Layout Name</label>
37 <input type="text" name="layoutname" id="layoutname" size="20" value="<!-- TMPL_VAR NAME="layoutname" -->" /></li>
38
39 <li><label for="barcodetype">Choose Barcode Type (encoding)</label>
40 <select name="barcodetype" id="barcodetype">
41     <!-- TMPL_LOOP NAME="barcode_types" -->
42         <!-- TMPL_IF NAME="active" -->
43         <option value="<!-- TMPL_VAR NAME="code" -->" selected="selected"><!-- TMPL_VAR NAME="desc" --></option>
44         <!-- TMPL_ELSE -->
45         <option value="<!-- TMPL_VAR NAME="code" -->"><!-- TMPL_VAR NAME="desc" --></option>
46         <!-- /TMPL_IF -->
47     <!-- /TMPL_LOOP -->
48 </select></li>
49
50
51 <li><label for="printingtype">Choose Layout Type</label>
52 <select name="printingtype" id="printingtype">
53     <!-- TMPL_LOOP NAME="printingtypes" -->
54 <!-- TMPL_IF NAME="active" -->
55         <option value="<!-- TMPL_VAR NAME="code" -->" selected="selected"><!-- TMPL_VAR NAME="desc" --></option>
56         <!-- TMPL_ELSE -->
57         <option value="<!-- TMPL_VAR NAME="code" -->"><!-- TMPL_VAR NAME="desc" --></option>
58 <!-- /TMPL_IF -->
59     <!-- /TMPL_LOOP -->
60 </select></li>
61
62
63 <li> 
64 <fieldset class="rows">
65 <legend>
66 Bibliographic Data to Print
67 </legend>
68 <!-- TMPL_IF NAME="layout_string" -->
69 <input type="radio" name="layoutchoice" value="layout_tx" />Choose Order Of Text Fields to Print
70 <!-- TMPL_ELSE -->
71 <input type="radio" name="layoutchoice" value="layout_tx" checked="checked" />Choose Order Of Text Fields to Print
72 <!-- /TMPL_IF -->
73 <br />
74 <fieldset id="layout_tx">
75 <table summary="fields to print">
76 <tr>
77         <td>
78  <select name="tx_title" id="tx_title">
79             <!-- TMPL_LOOP Name="tx_title" -->
80                         <!-- TMPL_IF Name="selected" -->
81                 <option value="<!-- TMPL_VAR Name="num" -->" selected="selected">
82                     <!-- TMPL_VAR Name="num" -->
83                 </option>
84                         <!-- TMPL_ELSE -->
85                 <option value="<!-- TMPL_VAR Name="num" -->">
86                     <!-- TMPL_VAR Name="num" -->
87                 </option>
88                 <!-- /TMPL_IF -->
89             <!-- /TMPL_LOOP -->
90             </select>
91         <label for="tx_title">Title</label>
92         </td>
93         <td>
94         <select name="tx_author" id="tx_author">
95              <!-- TMPL_LOOP Name="tx_author" -->
96                 <!-- TMPL_IF Name="selected" -->         
97                 <option value="<!-- TMPL_VAR Name="num" -->" selected="selected">
98                     <!-- TMPL_VAR Name="num" -->
99                 </option>
100                 <!-- TMPL_ELSE -->              
101                 <option value="<!-- TMPL_VAR Name="num" -->">
102                     <!-- TMPL_VAR Name="num" -->
103                 </option>
104                 <!-- /TMPL_IF -->               
105             <!-- /TMPL_LOOP -->
106             </select>
107        <label for="tx_author">Author</label>
108         </td>
109         <td>
110         <select name="tx_isbn" id="tx_isbn">
111               <!-- TMPL_LOOP Name="tx_isbn" -->
112                 <!-- TMPL_IF Name="selected" -->          
113                 <option value="<!-- TMPL_VAR Name="num" -->" selected="selected">
114                     <!-- TMPL_VAR Name="num" -->
115                 </option>
116                 <!-- TMPL_ELSE -->              
117                 <option value="<!-- TMPL_VAR Name="num" -->">
118                     <!-- TMPL_VAR Name="num" -->
119                 </option>
120                 <!-- /TMPL_IF -->               
121             <!-- /TMPL_LOOP -->
122             </select>
123       <label for="tx_isbn">ISBN</label>
124         </td>
125 </tr>
126 <tr>
127         <td>
128         <select name="tx_issn" id="tx_issn">
129                <!-- TMPL_LOOP Name="tx_issn" -->
130                 <!-- TMPL_IF Name="selected" -->           
131                 <option value="<!-- TMPL_VAR Name="num" -->" selected="selected">
132                     <!-- TMPL_VAR Name="num" -->
133                 </option>
134                 <!-- TMPL_ELSE -->              
135                 <option value="<!-- TMPL_VAR Name="num" -->">
136                     <!-- TMPL_VAR Name="num" -->
137                 </option>
138                 <!-- /TMPL_IF -->               
139             <!-- /TMPL_LOOP -->
140             </select>
141      <label for="tx_issn">ISSN</label>
142          </td>
143         <td>
144         <select name="tx_itemtype" id="tx_itemtype">
145                  <!-- TMPL_LOOP Name="tx_itemtype" -->
146                 <!-- TMPL_IF Name="selected" -->                 
147                 <option value="<!-- TMPL_VAR Name="num" -->" selected="selected">
148                     <!-- TMPL_VAR Name="num" -->
149                 </option>
150                         <!-- TMPL_ELSE -->      
151                 <option value="<!-- TMPL_VAR Name="num" -->">
152                     <!-- TMPL_VAR Name="num" -->
153                 </option>
154                 <!-- /TMPL_IF -->               
155             <!-- /TMPL_LOOP -->
156             </select>
157    <label for="tx_itemtype">Itemtype</label>
158         </td>
159         <td>
160         <select id="tx_barcode" name="tx_barcode">
161                  <!-- TMPL_LOOP Name="tx_barcode" -->
162                 <!-- TMPL_IF Name="selected" -->                 
163                 <option value="<!-- TMPL_VAR Name="num" -->" selected="selected">
164                     <!-- TMPL_VAR Name="num" -->
165                 </option>
166                         <!-- TMPL_ELSE -->       
167                 <option value="<!-- TMPL_VAR Name="num" -->">
168                     <!-- TMPL_VAR Name="num" -->
169                 </option>
170                         <!-- /TMPL_IF -->       
171             <!-- /TMPL_LOOP -->
172       </select>
173         <label for="tx_barcode">Barcode (as text)</label>
174         </td>
175 </tr> 
176  <tr>
177             <td>
178         <select name="tx_itemcallnumber" id="tx_itemcallnumber">
179                  <!-- TMPL_LOOP Name="tx_itemcallnumber" -->
180                         <!-- TMPL_IF Name="selected" -->          
181                 <option value="<!-- TMPL_VAR Name="num" -->" selected="selected">
182                     <!-- TMPL_VAR Name="num" -->
183                 </option>
184                         <!-- TMPL_ELSE -->       
185                 <option value="<!-- TMPL_VAR Name="num" -->">
186                     <!-- TMPL_VAR Name="num" -->
187                 </option>
188                         <!-- /TMPL_IF -->       
189             <!-- /TMPL_LOOP -->
190       </select>
191         <label for="tx_itemcallnumber">Call Number</label>
192         </td>
193                 <td>&nbsp;</td>
194                 <td>&nbsp;</td>
195   </tr>
196 </table>
197 <br />
198 </fieldset>
199 <br />
200 <!-- TMPL_IF NAME="formatstring" -->
201 <input type="radio" name="layoutchoice" value="layout_string" checked="checked"/> List Fields
202 <!-- TMPL_ELSE -->
203 <input type="radio" name="layoutchoice" value="layout_string" /> List Fields
204 <!-- /TMPL_IF -->
205 <fieldset id="layout_string" class="brief">
206 <label for="layoutname">Data Fields</label>
207   
208 <input type="text" name="formatstring" id="formatstring" size="80" value="<!-- TMPL_VAR ESCAPE='HTML' NAME="formatstring" -->" />
209
210    <div class="help">
211    <p>Enter a comma separated list of fields to print.  You may include any <em>Koha field</em> or MARC subfield.</p>
212    <p>See online help for advanced options</p>
213    <p>ex: barcode, itemcallnumber, title, "050a 050b", 300a </p>
214         </div>
215 </fieldset>
216 </fieldset>   
217 </li>
218 <li><label for="startlabel">Start printing from Label number: </label><input type="text" name="startlabel"  id="startlabel" size="1"  value="<!-- TMPL_IF NAME="startlabel" --><!-- TMPL_VAR NAME="startlabel" --><!-- TMPL_ELSE -->1<!-- /TMPL_IF -->" /></li>
219
220
221 <li><label for="guidebox">Draw Guide Boxes</label>
222 <!-- TMPL_IF NAME="guidebox"-->
223 <input type="checkbox" name="guidebox" id="guidebox" value="1"  checked="checked" />
224 <!-- TMPL_ELSE -->
225 <input type="checkbox" name="guidebox" id="guidebox" value="1" />
226 <!-- /TMPL_IF --></li>
227
228 <li><label for="callnum_split">Split Call Numbers</label>
229 <!-- TMPL_IF NAME="callnum_split"-->
230 <input type="checkbox" name="callnum_split" id="callnum_split" value="1"  checked="checked" />
231 <!-- TMPL_ELSE -->
232 <input type="checkbox" name="callnum_split" id="callnum_split" value="1" />
233 <!-- /TMPL_IF --></li>
234
235 <li><label for="text_justify">Text Justification</label>
236 <select id="text_justify" name="text_justify">
237 <!-- TMPL_IF NAME="justify_L" --><option value='L' selected="selected">Left</option>
238 <!-- TMPL_ELSE --><option value='L'>Left</option>
239 <!-- /TMPL_IF -->
240 <!-- TMPL_IF NAME="justify_C" --><option value='C' selected="selected">Center</option>
241 <!-- TMPL_ELSE --><option value='C'>Center</option>
242 <!-- /TMPL_IF -->
243 <!-- TMPL_IF NAME="justify_R" --><option value='R' selected="selected">Right</option>
244 <!-- TMPL_ELSE --><option value='R'>Right</option>
245 <!-- /TMPL_IF -->
246 </select>
247 </li>
248
249 </ol>
250 </fieldset>
251 <fieldset class="action">
252         <input type="submit" value="Submit" /> <a class="cancel" href="/cgi-bin/koha/labels/label-home.pl">Cancel</a>
253         <input type="hidden" name="op" value="<!-- TMPL_IF NAME="layout_id" -->save<!-- TMPL_ELSE -->add<!-- /TMPL_IF -->_layout" />
254         <input type="hidden" name="layout_id" value="<!-- TMPL_VAR NAME="layout_id" -->" />
255 </fieldset>
256 </form>
257
258 </div>
259 </div>
260 <div class="yui-b">
261 <!-- TMPL_INCLUDE NAME="labels-menu.inc" -->
262 </div>
263 </div>
264 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->