[29/40] Work on label module general tool bar.
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / labels / label-edit-layout.tmpl
1     <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2     <title>Koha &rsaquo; Tools &rsaquo; Labels</title>
3     <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4     <script type="text/JavaScript" language="JavaScript">
5         //<![CDATA[
6             $(document).ready(function() {
7                 $("input[@name='layout_choice']").change( function() { layout_method() } );
8                 layout_method();
9             });
10             function layout_method() {
11                 if( $("input[@name='layout_choice']:checked").val() == 'layout_string' ) {
12                     $('#layout_table').hide();
13                     $('#layout_string').show();
14                 } else {
15                     $('#layout_table').show();
16                     $('#layout_string').hide();
17                 }
18             }
19         //]]>
20     </script>
21 </head>
22 <body>
23     <!-- TMPL_INCLUDE NAME="header.inc" -->
24     <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
25     <div id="breadcrumbs">
26         <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
27         <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo;
28         <a href="/cgi-bin/koha/labels/label-home.pl">Labels</a> &rsaquo;
29         <!-- TMPL_IF NAME="layout_id" -->Edit<!-- TMPL_ELSE -->Create<!-- /TMPL_IF --> Label Layout
30     </div>
31     <div id="doc3" class="yui-t2">
32         <div id="bd">
33             <div id="yui-main">
34                 <div class="yui-b">
35                     <form name="input" action="/cgi-bin/koha/labels/label-edit-layout.pl" method="get">
36                         <fieldset class="rows">
37                             <legend><!-- TMPL_IF NAME="layout_id" -->Edit<!-- TMPL_ELSE -->Create<!-- /TMPL_IF --> Label Layout</legend>
38                             <ol>
39                                 <li>
40                                     <label for="layout_name">Layout Name</label>
41                                     <input type="text" name="layout_name" id="layout_name" size="20" value="<!-- TMPL_VAR NAME="layout_name" -->" />
42                                 </li>
43                                 <li>
44                                     <label for="barcode_type">Choose Barcode Type (encoding)</label>
45                                     <select name="barcode_type" id="barcode_type">
46                                     <!-- TMPL_LOOP NAME="barcode_types" -->
47                                     <!-- TMPL_IF NAME="selected" -->
48                                     <option value="<!-- TMPL_VAR NAME="type" -->" selected="selected"><!-- TMPL_VAR NAME="name" --></option>
49                                     <!-- TMPL_ELSE -->
50                                     <option value="<!-- TMPL_VAR NAME="type" -->"><!-- TMPL_VAR NAME="name" --></option>
51                                     <!-- /TMPL_IF -->
52                                     <!-- /TMPL_LOOP -->
53                                     </select>
54                                 </li>
55                                 <li>
56                                     <label for="printing_type">Choose Layout Type</label>
57                                     <select name="printing_type" id="printing_type">
58                                     <!-- TMPL_LOOP NAME="label_types" -->
59                                     <!-- TMPL_IF NAME="selected" -->
60                                     <option value="<!-- TMPL_VAR NAME="type" -->" selected="selected"><!-- TMPL_VAR NAME="name" --></option>
61                                     <!-- TMPL_ELSE -->
62                                     <option value="<!-- TMPL_VAR NAME="type" -->"><!-- TMPL_VAR NAME="name" --></option>
63                                     <!-- /TMPL_IF -->
64                                     <!-- /TMPL_LOOP -->
65                                     </select>
66                                 </li>
67                                 <li> 
68                                     <fieldset class="rows">
69                                         <legend>Bibliographic Data to Print</legend>
70                                         <input type="radio" name="layout_choice" value="layout_table" <!-- TMPL_UNLESS NAME="layout_string" -->checked="checked"<!-- /TMPL_UNLESS -->" >Choose Order Of Text Fields to Print</input>
71                                         <br />
72                                             <fieldset id="layout_table">
73                                                 <table summary="fields to print">
74                                                     <!-- TMPL_LOOP NAME="field_table" -->
75                                                     <tr>
76                                                         <!-- TMPL_LOOP NAME="text_fields" -->
77                                                         <!-- TMPL_IF NAME="field_empty" -->
78                                                         <td>
79                                                             &nbsp;
80                                                         </td>
81                                                         <!-- TMPL_ELSE -->
82                                                         <td>
83                                                             <select name="<!-- TMPL_VAR NAME="field_name" -->" id="<!-- TMPL_VAR NAME="field_name" -->">
84                                                                 <!-- TMPL_LOOP NAME="order" -->
85                                                                 <!-- TMPL_IF Name="selected" -->
86                                                                 <option value="<!-- TMPL_VAR Name="num" -->" selected="selected"><!-- TMPL_VAR Name="num" --></option>
87                                                                 <!-- TMPL_ELSE -->
88                                                                 <option value="<!-- TMPL_VAR Name="num" -->"><!-- TMPL_VAR Name="num" --></option>
89                                                                 <!-- /TMPL_IF -->
90                                                                 <!-- /TMPL_LOOP -->
91                                                             </select>
92                                                             <label for="<!-- TMPL_VAR NAME="field_name" -->"><!-- TMPL_VAR NAME="field_label" --></label>
93                                                         </td>
94                                                         <!-- /TMPL_IF -->
95                                                         <!-- /TMPL_LOOP -->
96                                                     </tr>
97                                                     <!-- /TMPL_LOOP -->
98                                                 </table>
99                                                 <br />
100                                             </fieldset>
101                                             <br />
102                                             <input type="radio" name="layout_choice" value="layout_string" <!-- TMPL_IF NAME="layout_string" -->checked="checked"<!-- /TMPL_IF -->"> List Fields </input>
103                                             <fieldset id="layout_string" class="brief">
104                                                 <label for="format_string">Data Fields</label>
105                                                 <input type="text" name="format_string" id="format_string" size="80" value="<!-- TMPL_VAR ESCAPE='HTML' NAME="format_string" -->" />
106                                                 <div class="help">
107                                                     <p>Enter a comma separated list of fields to print.  You may include any <em>Koha field</em> or MARC subfield.</p>
108                                                     <p>See online help for advanced options</p>
109                                                     <p>ex: barcode, itemcallnumber, title, "050a 050b", 300a </p>
110                                                 </div>
111                                             </fieldset>
112                                     </fieldset>   
113                                 </li>
114                                 <li>
115                                     <label for="guidebox">Draw Guide Boxes</label>
116                                     <!-- TMPL_IF NAME="guidebox"-->
117                                     <input type="checkbox" name="guidebox" id="guidebox" value="1"  checked="checked" />
118                                     <!-- TMPL_ELSE -->
119                                     <input type="checkbox" name="guidebox" id="guidebox" value="1" />
120                                     <!-- /TMPL_IF -->
121                                 </li>
122                                 <li>
123                                     <label for="callnum_split">Split Call Numbers</label>
124                                     <!-- TMPL_IF NAME="callnum_split"-->
125                                     <input type="checkbox" name="callnum_split" id="callnum_split" value="1"  checked="checked" />
126                                     <!-- TMPL_ELSE -->
127                                     <input type="checkbox" name="callnum_split" id="callnum_split" value="1" />
128                                     <!-- /TMPL_IF -->
129                                 </li>
130                                 <li>
131                                     <label for="text_justify">Text Justification</label>
132                                     <select name="text_justify" id="text_justify">
133                                         <!-- TMPL_LOOP Name="text_justification_types" -->
134                                         <!-- TMPL_IF Name="selected" -->
135                                         <option value="<!-- TMPL_VAR Name="type" -->" selected="selected"><!-- TMPL_VAR Name="name" --></option>
136                                         <!-- TMPL_ELSE -->
137                                         <option value="<!-- TMPL_VAR Name="type" -->"><!-- TMPL_VAR Name="name" --></option>
138                                         <!-- /TMPL_IF -->
139                                         <!-- /TMPL_LOOP -->
140                                     </select>
141                                 </li>
142                                 <li>
143                                     <label for="font">Font</label>
144                                     <select name="font" id="font">
145                                         <!-- TMPL_LOOP Name="font_types" -->
146                                         <!-- TMPL_IF Name="selected" -->
147                                         <option value="<!-- TMPL_VAR Name="type" -->" selected="selected"><!-- TMPL_VAR Name="name" --></option>
148                                         <!-- TMPL_ELSE -->
149                                         <option value="<!-- TMPL_VAR Name="type" -->"><!-- TMPL_VAR Name="name" --></option>
150                                         <!-- /TMPL_IF -->
151                                         <!-- /TMPL_LOOP -->
152                                     </select>
153                                 </li>
154                                 <li>
155                                     <label for="font_size">Font Size</label>
156                                     <input type="text" name="font_size" id="font_size" size="2" value="<!-- TMPL_VAR ESCAPE='HTML' NAME="font_size" -->" />
157                                 </li>
158                             </ol>
159                         </fieldset>
160                         <fieldset class="action">
161                             <input type="submit" value="Submit" /><a class="cancel" href="/cgi-bin/koha/labels/label-layout.pl">Cancel</a>
162                             <input type="hidden" name="op" value="save" />
163                             <input type="hidden" name="layout_id" value="<!-- TMPL_VAR NAME="layout_id" -->" />
164                         </fieldset>
165                     </form>
166                 </div>
167             </div>
168             <div class="yui-b">
169                 <!-- TMPL_INCLUDE NAME="labels-menu.inc" -->
170             </div>
171         </div>
172         <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->