Bug 13636: Change wording added vs inserted
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / patroncards / edit-profile.tt
1     [% INCLUDE 'doc-head-open.inc' %]
2     <title>Koha &rsaquo; Tools &rsaquo; Patron card creator</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="pcard_edit-profile" class="tools pcard">
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/patroncards/home.pl">Patron card creator</a> &rsaquo;
46         <a href="/cgi-bin/koha/patroncards/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/patroncards/edit-profile.pl" method="get">
57                                     <fieldset class="rows"><legend>Profile settings</legend>
58                                         <ol>
59                                             <li>
60                                                 [% IF ( profile_id ) %]
61                                                  <span class="label">Printer name:</span>[% printer_name %]
62                                                 <input type="hidden" name="printer_name" value="[% printer_name %]" />
63                                                 [% ELSE %]
64                                                 <label for="printer_name">Printer name:</label><input type="text"  size="20" name="printer_name" id="printer_name" />
65                                                 [% END %]
66                                             </li>
67                                             <li>
68                                                 [% IF ( profile_id ) %]
69                                                 <span class="label">Paper bin:</span> [% paper_bin %]
70                                                 <input type="hidden" name="paper_bin" value="[% paper_bin %]" />
71                                                 [% ELSE %]
72                                                 <label for="paper_bin">Paper bin:</label><input type="text"  size="20" name="paper_bin" id="paper_bin" />
73                                                 [% END %]
74                                             </li>
75                                             <li>
76                                                 [% IF ( label_template ) %]
77                                                  <label for="template_name">Template name:</label> [% label_template %]
78                                                 [% ELSE %]
79                                                  <span class="label">Template name:</span> Profile unassigned
80                                                 [% END %]
81                                             </li>
82                                             <li>
83                                                 <label for="units">Units: </label>
84                                                 <select id="units" name="units">
85                                                     [% FOREACH unit IN units %]
86                                                     [% IF ( unit.selected ) %]
87                                                     <option value="[% unit.type %]" selected="selected">
88                                                     [% ELSE %]
89                                                     <option value="[% unit.type %]">
90                                                     [% END %]
91                                                     [% unit.desc %]
92                                                     </option>
93                                                     [% END %]
94                                                 </select>
95                                             </li>
96                                          </ol>
97                                         </fieldset>
98
99                                         <fieldset class="rows"><legend>Offset:</legend>
100                                         <ol>
101                                             <li>
102                                                 <label for="offset_horz">Horizontal: </label><input type="text"  size="4" name="offset_horz" id="offset_horz" value="[% offset_horz %]" />
103                                             </li>
104                                             <li>
105                                                 <label for="offset_vert">Vertical: </label><input type="text" size="4" name="offset_vert" id="offset_vert" value="[% offset_vert %]" />
106                                             </li>
107                                          </ol>
108                                         </fieldset>
109
110                                         <fieldset class="rows"><legend>Creep:</legend>
111                                         <ol>
112                                             <li>
113                                                 <label for="creep_horz">Horizontal: </label><input type="text"  size="4" name="creep_horz" id="creep_horz" value="[% creep_horz %]" />
114                                             </li>
115                                             <li>
116                                                 <label for="creep_vert">Vertical: </label><input type="text" size="4" name="creep_vert" id="creep_vert" value="[% creep_vert %]" />
117                                             </li>
118                                         </ol>
119                                     </fieldset>
120                                     <fieldset class="action">
121                                         <input type="submit" value="Save" />
122                                         <a href="/cgi-bin/koha/patroncards/manage.pl?card_element=profile" class="cancel">Cancel</a>
123                                         <input type="hidden" name="op" value="save" />
124                                         <input type="hidden" name="profile_id" value="[% profile_id %]" />
125                                     </fieldset>
126                     </form>
127                                 </div>
128                             </div>
129                         </div>
130                 </div>
131                 <div class="yui-b">
132                     [% INCLUDE 'patroncards-menu.inc' %]
133                 </div>
134             </div>
135             [% INCLUDE 'intranet-bottom.inc' %]