Bug 13636: Change wording added vs inserted
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / patroncards / edit-template.tt
1     [% INCLUDE 'doc-head-open.inc' %]
2     <title>Koha &rsaquo; Tools &rsaquo; Patron card creator &rsaquo; Templates</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 = $("#page_height,#page_width,#card_width,#card_height,#top_margin,#left_margin,#col_gap,#row_gap");
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-template" 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?card_element=template">Patron card templates</a> &rsaquo;
47         Edit patron card template
48     </div>
49     <div id="doc3" class="yui-t2">
50         <div id="bd">
51             <div id="yui-main">
52                 <div class="yui-b">
53                     <form name="input" action="/cgi-bin/koha/patroncards/edit-template.pl" method="get">
54                     <div class="yui-g">
55                         <h3>Edit patron card template</h3>
56                         <div class="yui-u first">
57                             <fieldset class="rows">
58                                 <ol>
59                                     <li>
60                                         <span class="label">Template ID:</span>[% IF ( template_id ) %][% template_id %][% ELSE %]N/A[% END %]
61                                     </li>
62                                     <li>
63                                         <label for="template_code">Template code:</label>
64                                         <input type="text" size="30" maxlength="43" name="template_code" id="template_code" value="[% template_code %]" />
65                                     </li>
66                                     <li>
67                                         <label for="template_desc">Template description:</label>
68                                         <textarea cols="30" rows="3" id="template_desc" name="template_desc">[% template_desc %]</textarea>
69                                     </li>
70                                      <li>
71                                  <label for="units">Units:</label>
72                                  <select id="units" name="units">
73                                  [% FOREACH unit IN units %]
74
75                                     [% IF ( unit.selected ) %]
76                                     <option value="[% unit.type %]" selected="selected">
77                                     [% ELSE %]
78                                     <option value="[% unit.type %]">
79                                     [% END %]
80
81                                  [% unit.desc %]
82                                  </option>
83                                  [% END %]
84                                  </select>
85                              </li>
86                                     <li>
87                                         <label for="page_height">Page height:</label>
88                                         <input type="text" size="4" name="page_height" id="page_height" value="[% page_height %]" />
89                                     </li>
90                                     <li>
91                                         <label for="page_width">Page width:</label>
92                                         <input type="text" size="4" name="page_width" id="page_width" value="[% page_width %]" />
93                                     </li>
94                                     <li>
95                                         <label for="card_width">Card width:</label>
96                                         <input type="text" size="4" name="card_width" id="card_width" value="[% card_width %]" />
97                                     </li>
98                                     <li>
99                                         <label for="card_height">Card height:</label>
100                                         <input type="text" size="4" name="card_height" id="card_height" value="[% card_height %]" />
101                                     </li>
102
103                                 </ol>
104                             </fieldset>
105                         </div>
106                         <div class="yui-u">
107                             <fieldset class="rows">
108                                 <ol><li>
109                                     <label for="top_margin">Top page margin:</label>
110                                     <input type="text" size="4" name="top_margin" id="top_margin" value="[% top_margin %]" />
111                                 </li>
112                                 <li>
113                                     <label for="left_margin">Left page margin:</label>
114                                     <input type="text" size="4" name="left_margin" id="left_margin" value="[% left_margin %]" />
115                                 </li>
116                                     <li>
117                                         <label for="cols">Number of columns:</label>
118                                         <input type="text" size="4" name="cols" id="cols" value="[% cols %]" />
119                                     </li>
120                                     <li>
121                                         <label for="rows">Number of rows:</label>
122                                         <input type="text" size="4" name="rows" id="rows" value="[% rows %]" />
123                                     </li>
124                                     <li>
125                                         <label for="col_gap">Gap between columns:</label>
126                                         <input type="text" size="4" name="col_gap" id="col_gap" value="[% col_gap %]" />
127                                     </li>
128                                     <li>
129                                         <label for="row_gap">Gap between rows:</label>
130                                         <input type="text" size="4" name="row_gap" id="row_gap" value="[% row_gap %]" />
131                                     </li>
132
133                                     <li>
134                                         <label for="profile_id">Profile:</label>
135                                         [% IF ( profile_list ) %]
136                                         <select id="profile_id" name="profile_id">
137                                         [% FOREACH profile_lis IN profile_list %]
138                                         [% IF ( profile_lis.selected ) %]
139                                         <option value="[% profile_lis.profile_id %]" selected="selected">
140                                         [% ELSE %]
141                                         <option value="[% profile_lis.profile_id %]">
142                                         [% END %]
143                                         [% profile_lis.printer_name %]/[% profile_lis.paper_bin %]
144                                         </option>
145                                         [% END %]
146                                         </select>
147                                         [% ELSE %]
148                                         <a href="/cgi-bin/koha/patroncards/edit-profile.pl?op=new">Click here to define a printer profile.</a>
149                                         [% END %]
150                                     </li>
151                                 </ol>
152                             </fieldset>
153                         </div>
154                     </div>
155                     <div class="yui-g">
156                         <fieldset class="action">
157                             <input type="submit" class="submit" value="Save" />
158                             <a class="cancel" href="/cgi-bin/koha/patroncards/manage.pl?card_element=template">Cancel</a>
159                             <input type="hidden" name="op" value="save" />
160                             [% IF ( template_id ) %]
161                             <input type="hidden" name="template_id" value="[% template_id %]" />
162                             [% END %]
163                         </fieldset>
164                     </div>
165                 </form>
166             </div>
167         </div>
168         <div class="yui-b">
169             [% INCLUDE 'patroncards-menu.inc' %]
170         </div>
171     </div>
172     [% INCLUDE 'intranet-bottom.inc' %]