Bug 5917 / Bug 6085 : Fixing not being able to change language
[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 Home</a> &rsaquo;
29         <a href="/cgi-bin/koha/labels/label-manage.pl?label_element=layout">Mange Label Layouts</a> &rsaquo;
30         <!-- TMPL_IF NAME="layout_id" -->Edit<!-- TMPL_ELSE -->Create<!-- /TMPL_IF --> Label Layout
31     </div>
32     <div id="doc3" class="yui-t2">
33         <div id="bd">
34             <div id="yui-main">
35                 <div class="yui-b">
36                     <form name="input" action="/cgi-bin/koha/labels/label-edit-layout.pl" method="get">
37                         <fieldset class="rows">
38                             <legend><!-- TMPL_IF NAME="layout_id" -->Edit<!-- TMPL_ELSE -->Create<!-- /TMPL_IF --> Label Layout</legend>
39                             <ol>
40                                 <li>
41                                     <label for="layout_name">Layout Name</label>
42                                     <input type="text" name="layout_name" id="layout_name" size="20" value="<!-- TMPL_VAR NAME="layout_name" -->" />
43                                 </li>
44                                 <li>
45                                     <label for="barcode_type">Choose Barcode Type (encoding)</label>
46                                     <select name="barcode_type" id="barcode_type">
47                                     <!-- TMPL_LOOP NAME="barcode_types" -->
48                                     <!-- TMPL_IF NAME="selected" -->
49                                     <option value="<!-- TMPL_VAR NAME="type" -->" selected="selected"><!-- TMPL_VAR NAME="name" --></option>
50                                     <!-- TMPL_ELSE -->
51                                     <option value="<!-- TMPL_VAR NAME="type" -->"><!-- TMPL_VAR NAME="name" --></option>
52                                     <!-- /TMPL_IF -->
53                                     <!-- /TMPL_LOOP -->
54                                     </select>
55                                 </li>
56                                 <li>
57                                     <label for="printing_type">Choose Layout Type</label>
58                                     <select name="printing_type" id="printing_type">
59                                     <!-- TMPL_LOOP NAME="label_types" -->
60                                     <!-- TMPL_IF NAME="selected" -->
61                                     <option value="<!-- TMPL_VAR NAME="type" -->" selected="selected"><!-- TMPL_VAR NAME="name" --></option>
62                                     <!-- TMPL_ELSE -->
63                                     <option value="<!-- TMPL_VAR NAME="type" -->"><!-- TMPL_VAR NAME="name" --></option>
64                                     <!-- /TMPL_IF -->
65                                     <!-- /TMPL_LOOP -->
66                                     </select>
67                                 </li>
68                                 <li>
69                                     <fieldset>
70                                         <legend>Bibliographic Data to Print</legend>
71                                                                                 <ol>
72                                         <li class="radio"><!-- TMPL_IF NAME="layout_string" -->
73                                         <input type="radio" name="layout_choice" id="layout_choice_order" value="layout_table" checked="checked" /><label for="layout_choice_order">Choose Order Of Text Fields to Print</label>
74                                         <!-- TMPL_ELSE -->
75                                         <input type="radio" name="layout_choice" id="layout_choice_order" value="layout_table" /><label for="layout_choice_order">Choose Order Of Text Fields to Print</label>
76                                         <!-- /TMPL_IF -->
77                                                                                                 <div id="layout_table">
78                                                     <!-- TMPL_LOOP NAME="field_table" -->
79                                                     <p>
80                                                         <!-- TMPL_LOOP NAME="text_fields" -->
81                                                         <!-- TMPL_IF NAME="field_empty" -->
82                                                         <!-- TMPL_ELSE -->
83                                                             <select name="<!-- TMPL_VAR NAME="field_name" -->" id="<!-- TMPL_VAR NAME="field_name" escape="url" -->">
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" escape="url" -->"><!-- TMPL_VAR NAME="field_label" --></label>
93                                                         <!-- /TMPL_IF -->
94                                                         <!-- /TMPL_LOOP -->
95                                                     </p>
96                                                     <!-- /TMPL_LOOP -->
97                                                                                         </div>
98                                             </li>
99                                             <!-- TMPL_UNLESS NAME="layout_string" -->
100                                             <li class="radio"><input type="radio" id="layout_choice_list" name="layout_choice" value="layout_string" checked="checked" /> <label for="layout_choice_list">List Fields</label></li>
101                                             <!-- TMPL_ELSE -->
102                                             <li class="radio"><input type="radio" id="layout_choice_list" name="layout_choice" value="layout_string" /> <label for="layout_choice_list">List Fields</label></li>
103                                             <!-- /TMPL_UNLESS -->
104                                            <li> <fieldset id="layout_string" class="brief">
105                                                 <label for="format_string">Data Fields</label>
106                                                 <input type="text" name="format_string" id="format_string" size="80" value="<!-- TMPL_VAR ESCAPE='HTML' NAME="format_string" -->" />
107                                                 <div class="hint">
108                                                     <p>Enter a comma separated list of fields to print.  You may include any <em>Koha field</em> or MARC subfield.</p>
109                                                     <p>See online help for advanced options</p>
110                                                     <p>ex: barcode, itemcallnumber, title, "050a 050b", 300a </p>
111                                                 </div>
112                                             </fieldset></li>
113                                                                                         </ol>
114                                     </fieldset>
115                                 </li>
116                                 <li>
117                                     <label for="guidebox">Draw Guide Boxes</label>
118                                     <!-- TMPL_IF NAME="guidebox"-->
119                                     <input type="checkbox" name="guidebox" id="guidebox" value="1"  checked="checked" />
120                                     <!-- TMPL_ELSE -->
121                                     <input type="checkbox" name="guidebox" id="guidebox" value="1" />
122                                     <!-- /TMPL_IF -->
123                                 </li>
124                                 <li>
125                                     <label for="callnum_split">Split Call Numbers</label>
126                                     <!-- TMPL_IF NAME="callnum_split"-->
127                                     <input type="checkbox" name="callnum_split" id="callnum_split" value="1"  checked="checked" />
128                                     <!-- TMPL_ELSE -->
129                                     <input type="checkbox" name="callnum_split" id="callnum_split" value="1" />
130                                     <!-- /TMPL_IF -->
131                                 </li>
132                                 <li>
133                                     <label for="text_justify">Text Justification</label>
134                                     <select name="text_justify" id="text_justify">
135                                         <!-- TMPL_LOOP Name="text_justification_types" -->
136                                         <!-- TMPL_IF Name="selected" -->
137                                         <option value="<!-- TMPL_VAR Name="type" -->" selected="selected"><!-- TMPL_VAR Name="name" --></option>
138                                         <!-- TMPL_ELSE -->
139                                         <option value="<!-- TMPL_VAR Name="type" -->"><!-- TMPL_VAR Name="name" --></option>
140                                         <!-- /TMPL_IF -->
141                                         <!-- /TMPL_LOOP -->
142                                     </select>
143                                 </li>
144                                 <li>
145                                     <label for="font">Font</label>
146                                     <select name="font" id="font">
147                                         <!-- TMPL_LOOP Name="font_types" -->
148                                         <!-- TMPL_IF Name="selected" -->
149                                         <option value="<!-- TMPL_VAR Name="type" -->" selected="selected"><!-- TMPL_VAR Name="name" --></option>
150                                         <!-- TMPL_ELSE -->
151                                         <option value="<!-- TMPL_VAR Name="type" -->"><!-- TMPL_VAR Name="name" --></option>
152                                         <!-- /TMPL_IF -->
153                                         <!-- /TMPL_LOOP -->
154                                     </select>
155                                 </li>
156                                 <li>
157                                     <label for="font_size">Font Size</label>
158                                     <input type="text" name="font_size" id="font_size" size="2" value="<!-- TMPL_VAR ESCAPE='HTML' NAME="font_size" -->" />
159                                 </li>
160                             </ol>
161                         </fieldset>
162                         <fieldset class="action">
163                             <input type="submit" value="Save" />
164                             <a class="cancel" href="/cgi-bin/koha/labels/label-manage.pl?label_element=layout">Cancel</a>
165                             <input type="hidden" name="op" value="save" />
166                             <input type="hidden" name="layout_id" value="<!-- TMPL_VAR NAME="layout_id" -->" />
167                         </fieldset>
168                     </form>
169                 </div>
170             </div>
171             <div class="yui-b">
172                 <!-- TMPL_INCLUDE NAME="labels-menu.inc" -->
173             </div>
174         </div>
175         <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->