Bug 14915: (QA followup) Switch recent commits from Glyphicons to Font Awesome
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / labels / label-edit-profile.tt
1     [% INCLUDE 'doc-head-open.inc' %]
2     <title>Koha &rsaquo; Tools &rsaquo; Label creator &rsaquo; Printer profiles</title>
3     [% INCLUDE 'doc-head-close.inc' %]
4         <script type="text/javascript">
5         //<![CDATA[
6                 $(document).ready(function(){
7                 var selectedUnit = $("#units option:selected").attr("value");
8                 var unitfields = $("#offset_horz,#offset_vert,#creep_horz,#creep_vert");
9                 $(unitfields).after("<span class=\"unit\">"+getUnit(selectedUnit)+"</span>");
10                 $("#units").change(function(){
11                         $(".unit").html(getUnit($(this).val()));
12                 });
13                 function getUnit(unit){
14                         switch(unit){
15                                 case "POINT":
16                                         var unit = " pt";
17                                         break;
18                                 case "AGATE":
19                                         var unit = " ag";
20                                         break;
21                                 case "INCH":
22                                         var unit = " in";
23                                         break;
24                                 case "MM":
25                                         var unit = " mm";
26                                         break;
27                                 case "CM":
28                                         var unit = " cm";
29                                         break;
30                                 default:
31                                         var unit = "";
32                         }
33                         return unit;
34                 }
35                 });
36         //]]>
37         </script>
38 </head>
39 <body id="labels_label-edit-profile" class="tools labels">
40     [% INCLUDE 'header.inc' %]
41     [% INCLUDE 'cat-search.inc' %]
42     <div id="breadcrumbs">
43         <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
44         <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo;
45         <a href="/cgi-bin/koha/labels/label-home.pl">Label creator</a> &rsaquo;
46         <a href="/cgi-bin/koha/labels/label-manage.pl?label_element=profile">Printer profiles</a> &rsaquo;
47         Edit printer profile
48     </div>
49     <div id="doc3" class="yui-t2">
50         <div id="bd">
51             <div id="yui-main">
52                 <div class="yui-b">
53                     <div class="yui-g">
54                     [% INCLUDE 'labels-toolbar.inc' %]
55                     </div>
56                         <div class="yui-u first">
57                             <h3>Edit printer profile</h3>
58                                 <div class="yui-g first">
59                     <form name="input" action="/cgi-bin/koha/labels/label-edit-profile.pl" method="get">
60                                     <fieldset class="rows"><legend>Profile settings</legend>
61                                         <ol>
62                                             <li>
63                                                 [% IF ( profile_id ) %]
64                                                  <span class="label">Printer name:</span>[% printer_name %]
65                                                 <input type="hidden" name="printer_name" value="[% printer_name %]" />
66                                                 [% ELSE %]
67                                                 <label for="printer_name">Printer name:</label><input type="text"  size="20" name="printer_name" id="printer_name" />
68                                                 [% END %]
69                                             </li>
70                                             <li>
71                                                 [% IF ( profile_id ) %]
72                                                                                                 <span class="label">Paper bin:</span> [% paper_bin %]
73                                                 <input type="hidden" name="paper_bin" value="[% paper_bin %]" />
74                                                 [% ELSE %]
75                                                 <label for="paper_bin">Paper bin:</label><input type="text"  size="20" name="paper_bin" id="paper_bin" />
76                                                 [% END %]
77                                             </li>
78                                             <li>
79                                                 [% IF ( label_template ) %]
80                                                  <label for="template_name">Template name:</label> [% label_template %]
81                                                 [% ELSE %]
82                                                  <span class="label">Template name:</span> Profile unassigned
83                                                 [% END %]
84                                             </li>
85                                             <li>
86                                                 <label for="units">Units: </label>
87                                                 <select id="units" name="units">
88                                                     [% FOREACH unit IN units %]
89                                                     [% IF ( unit.selected ) %]
90                                                     <option value="[% unit.type %]" selected="selected">
91                                                     [% ELSE %]
92                                                     <option value="[% unit.type %]">
93                                                     [% END %]
94                                                     [% SWITCH unit.type %]
95                                                     [%   CASE 'POINT' %]
96                                                     PostScript Points
97                                                     [%   CASE 'AGATE' %]
98                                                     Adobe Agates
99                                                     [%   CASE 'INCH' %]
100                                                     US Inches
101                                                     [%   CASE 'MM' %]
102                                                     SI Millimeters
103                                                     [%   CASE 'CM' %]
104                                                     SI Centimeters
105                                                     [% END %]
106                                                     </option>
107                                                     [% END %]
108                                                 </select>
109                                             </li>
110                                          </ol>
111                                                                                 </fieldset>
112                                                                                 
113                                                                                 <fieldset class="rows"><legend>Offset:</legend>
114                                                                                 <ol>
115                                             <li>
116                                                 <label for="offset_horz">Horizontal: </label><input type="text"  size="4" name="offset_horz" id="offset_horz" value="[% offset_horz %]" />
117                                             </li>
118                                             <li>
119                                                 <label for="offset_vert">Vertical: </label><input type="text" size="4" name="offset_vert" id="offset_vert" value="[% offset_vert %]" />
120                                             </li>
121                                          </ol>
122                                                                                 </fieldset>
123                                                                                 
124                                                                                 <fieldset class="rows"><legend>Creep:</legend>
125                                                                                 <ol>
126                                             <li>
127                                                 <label for="creep_horz">Horizontal: </label><input type="text"  size="4" name="creep_horz" id="creep_horz" value="[% creep_horz %]" />
128                                             </li>
129                                             <li>
130                                                 <label for="creep_vert">Vertical: </label><input type="text" size="4" name="creep_vert" id="creep_vert" value="[% creep_vert %]" />
131                                             </li>
132                                         </ol>
133                                     </fieldset>
134                                     <fieldset class="action">
135                                         <input type="submit" value="Save" />
136                                         <a href="/cgi-bin/koha/labels/label-manage.pl?label_element=profile" class="cancel">Cancel</a>
137                                         <input type="hidden" name="op" value="save" />
138                                         <input type="hidden" name="profile_id" value="[% profile_id %]" />
139                                     </fieldset>
140                     </form>
141                                 </div>
142                             </div>
143                         </div>
144                 </div>
145             </div>
146             [% INCLUDE 'intranet-bottom.inc' %]