b1ee71caa07f0a9cbd17f4d649d6ef650605aee2
[koha_gimpoz] / koha-tmpl / intranet-tmpl / prog / en / modules / labels / label-edit-profile.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">
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>
40     <!-- TMPL_INCLUDE NAME="header.inc" -->
41     <!-- TMPL_INCLUDE NAME="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">Labels</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                             <h3>Edit Printer Profile</h3>
55                                 <div class="yui-g first">
56                     <form name="input" action="/cgi-bin/koha/labels/label-edit-profile.pl" method="get">
57                                     <fieldset class="rows"><legend>Profile settings</legend>
58                                         <ol>
59                                             <li>
60                                                 <!-- TMPL_IF NAME="profile_id" -->
61                                                  <span class="label">Printer name:</span><!-- TMPL_VAR NAME="printer_name" -->
62                                                 <!-- TMPL_ELSE -->
63                                                 <label for="printer_name">Printer name:</label><input type="text"  size="20" name="printer_name" id="printer_name" />
64                                                 <!-- /TMPL_IF -->
65                                             </li>
66                                             <li>
67                                                 <!-- TMPL_IF NAME="profile_id" -->
68                                                                                                 <span class="label">Paper bin:</span> <!-- TMPL_VAR NAME="paper_bin" -->
69                                                 <!-- TMPL_ELSE -->
70                                                 <label for="paper_bin">Paper bin:</label><input type="text"  size="20" name="paper_bin" id="paper_bin" />
71                                                 <!-- /TMPL_IF -->
72                                             </li>
73                                             <li>
74                                                 <!-- TMPL_IF NAME="label_template" -->
75                                                  <label for="template_name">Template name:</label> <!-- TMPL_VAR NAME="label_template" -->
76                                                 <!-- TMPL_ELSE -->
77                                                  <span class="label">Template name:</span> Profile Unassigned
78                                                 <!-- /TMPL_IF -->
79                                             </li>
80                                             <li>
81                                                 <label for="units">Units: </label>
82                                                 <select id="units" name="units">
83                                                     <!-- TMPL_LOOP NAME="units" -->
84                                                     <!-- TMPL_IF NAME="selected" -->
85                                                     <option value="<!-- TMPL_VAR NAME="type" -->" selected="selected">
86                                                     <!-- TMPL_ELSE -->
87                                                     <option value="<!-- TMPL_VAR NAME="type" -->">
88                                                     <!-- /TMPL_IF -->
89                                                     <!-- TMPL_VAR NAME="desc" -->
90                                                     </option>
91                                                     <!-- /TMPL_LOOP -->
92                                                 </select>
93                                             </li>
94                                          </ol>
95                                                                                 </fieldset>
96                                                                                 
97                                                                                 <fieldset class="rows"><legend>Offset:</legend>
98                                                                                 <ol>
99                                             <li>
100                                                 <label for="offset_horz">Horizontal: </label><input type="text"  size="4" name="offset_horz" id="offset_horz" value="<!-- TMPL_VAR NAME="offset_horz" -->" />
101                                             </li>
102                                             <li>
103                                                 <label for="offset_vert">Vertical: </label><input type="text" size="4" name="offset_vert" id="offset_vert" value="<!-- TMPL_VAR NAME="offset_vert" -->" />
104                                             </li>
105                                          </ol>
106                                                                                 </fieldset>
107                                                                                 
108                                                                                 <fieldset class="rows"><legend>Creep:</legend>
109                                                                                 <ol>
110                                             <li>
111                                                 <label for="creep_horz">Horizontal: </label><input type="text"  size="4" name="creep_horz" id="creep_horz" value="<!-- TMPL_VAR NAME="creep_horz" -->" />
112                                             </li>
113                                             <li>
114                                                 <label for="creep_vert">Vertical: </label><input type="text" size="4" name="creep_vert" id="creep_vert" value="<!-- TMPL_VAR NAME="creep_vert" -->" />
115                                             </li>
116                                         </ol>
117                                     </fieldset>
118                                     <fieldset class="action">
119                                         <input type="submit" value="Save" />
120                                         <a href="/cgi-bin/koha/labels/label-manage.pl?label_element=profile" class="cancel">Cancel</a>
121                                         <input type="hidden" name="op" value="save" />
122                                         <input type="hidden" name="profile_id" value="<!-- TMPL_VAR NAME="profile_id" -->" />
123                                     </fieldset>
124                     </form>
125                                 </div>
126                             </div>
127                         </div>
128                 </div>
129                 <div class="yui-b">
130                     <!-- TMPL_INCLUDE NAME="labels-menu.inc" -->
131                 </div>
132             </div>
133             <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->