Merge branch 'template_locales'
[kivitendo-erp.git] / templates / webpages / am / config.html
1 [%- USE T8 %]
2 [% USE HTML %]<body onLoad="fokus()">
3
4  <p>
5   <div class="listtop">[% title %]</div>
6  </p>
7
8  <form method="post" action="am.pl" name="Form">
9
10   <ul id="maintab" class="shadetabs">
11    <li class="selected"><a href="#" rel="page_personal_settings">[% 'Personal settings' | $T8 %]</a></li>
12    <li><a href="#" rel="page_display_options">[% 'Display options' | $T8 %]</a></li>
13    <li><a href="#" rel="page_print_options">[% 'Print options' | $T8 %]</a></li>
14    <li><a href="#" rel="page_todo_list_options">[% 'TODO list options' | $T8 %]</a></li>
15   </ul>
16
17   <input type="hidden" name="type" value="preferences">
18   <input type="hidden" name="role" value="[% HTML.escape(myconfig_role) %]">
19
20   <div class="tabcontentstyle">
21
22    <div id="page_personal_settings" class="tabcontent">
23
24     <table>
25      <tr>
26       <th align="right">[% 'Name' | $T8 %]</th>
27       <td><input name="name" size="15" value="[% HTML.escape(myconfig_name) %]"></td>
28      </tr>
29
30      <tr>
31       <th align="right">[% 'Password' | $T8 %]</th>
32       <td>
33        [%- IF CAN_CHANGE_PASSWORD %]
34        <input type="password" name="new_password" size="10" value="********">
35        [%- ELSE %]
36        <input type="hidden" name="new_password" value="********">
37        [%- END %]
38       </td>
39      </tr>
40
41      <tr>
42       <th align="right">[% 'E-mail' | $T8 %]</th>
43       <td><input name="email" size="30" value="[% HTML.escape(myconfig_email) %]"></td>
44      </tr>
45
46      <tr valign="top">
47       <th align="right">[% 'Signature' | $T8 %]</th>
48       <td><textarea name="signature" rows="3" cols="50">[% HTML.escape(myconfig_signature) %]</textarea></td>
49      </tr>
50
51      <tr>
52       <th align="right">[% 'Phone' | $T8 %]</th>
53       <td><input name="tel" size="14" value="[% HTML.escape(myconfig_tel) %]"></td>
54      </tr>
55
56      <tr>
57       <th align="right">[% 'Fax' | $T8 %]</th>
58       <td><input name="fax" size="14" value="[% HTML.escape(myconfig_fax) %]"></td>
59      </tr>
60      <tr>
61       <th align="right">[% 'Company' | $T8 %]</th>
62       <td><input name="company" size="30" value="[% HTML.escape(myconfig_company) %]"></td>
63      </tr>
64      <tr valign="top">
65       <th align="right">[% 'Address' | $T8 %]</th>
66       <td><textarea name="address" rows="4" cols="50">[% HTML.escape(myconfig_address) %]</textarea></td>
67      </tr>
68     </table>
69
70     <br style="clear: left" />
71    </div>
72
73    <div id="page_display_options" class="tabcontent">
74
75     <table>
76      <tr>
77       <th align="right">[% 'Date Format' | $T8 %]</th>
78       <td>
79        <select name="dateformat">
80         [%- FOREACH row = DATEFORMATS %]
81         <option value="[% HTML.escape(row.value) %]"[% IF row.selected %] selected[% END %]>[% HTML.escape(row.name) %]</option>
82         [%- END %]
83        </select>
84       </td>
85      </tr>
86      <tr>
87       <th align="right">[% 'Output Number Format' | $T8 %]</th>
88       <td>
89        <select name="numberformat">
90         [%- FOREACH row = NUMBERFORMATS %]
91         <option value="[% HTML.escape(row.value) %]"[% IF row.selected %] selected[% END %]>[% HTML.escape(row.name) %]</option>
92         [%- END %]
93        </select>
94       </td>
95      </tr>
96
97      <tr>
98       <th align="right">[% 'Dropdown Limit' | $T8 %]</th>
99       <td><input name="vclimit" size="10" value="[% HTML.escape(myconfig_vclimit) %]"></td>
100      </tr>
101
102      <tr>
103       <th align="right">[% 'Language' | $T8 %]</th>
104       <td>
105        <select name="countrycode">
106         [%- FOREACH row = COUNTRYCODES %]
107         <option value="[% HTML.escape(row.value) %]"[% IF row.selected %] selected[% END %]>[% HTML.escape(row.name) %]</option>
108         [%- END %]
109        </select>
110       </td>
111      </tr>
112
113      <tr>
114       <th align="right">[% 'Stylesheet' | $T8 %]</th>
115       <td>
116        <select name="usestylesheet">
117         [%- FOREACH row = STYLESHEETS %]
118         <option value="[% HTML.escape(row.value) %]"[% IF row.selected %] selected[% END %]>[% HTML.escape(row.name) %]</option>
119         [%- END %]
120        </select>
121       </td>
122      </tr>
123
124      <tr>
125       <th align="right">[% 'Setup Menu' | $T8 %]</th>
126       <td>
127        <select name="menustyle">
128         <option value="v3"[% IF myconfig_menustyle == 'v3' %] selected[% END %]>[% 'Top (CSS)' | $T8 %]</option>
129         <option value="v4"[% IF myconfig_menustyle == 'v4' %] selected[% END %]>[% 'Top (CSS) new' | $T8 %]</option>
130         <option value="neu"[% IF myconfig_menustyle == 'neu' %] selected[% END %]>[% 'Top (Javascript)' | $T8 %]</option>
131         <option value="xml"[% IF myconfig_menustyle == 'xml' %] selected[% END %]>[% 'Top (XUL; only for Mozilla Firefox)' | $T8 %]</option>
132         <option value="old"[% IF myconfig_menustyle == 'old' %] selected[% END %]>[% 'Old (on the side)' | $T8 %]</option>
133        </select>
134       </td>
135      </tr>
136
137      <tr valign="top">
138       <th align="right">[% 'Favorites' | $T8 %]</th>
139       <td><textarea name="favorites" rows="4" cols="50">[% HTML.escape(myconfig_favorites) %]</textarea></td>
140      </tr>
141
142      <tr>
143       <th align="right">[% 'Form details (second row)' | $T8 %]</th>
144       <td>
145        <select name="show_form_details">
146         <option value="1"[% IF  myconfig_show_form_details %] selected[% END %]>[% 'Show by default' | $T8 %]</option>
147         <option value="0"[% IF !myconfig_show_form_details %] selected[% END %]>[% 'Hide by default' | $T8 %]</option>
148        </select>
149       </td>
150      </tr>
151
152      <tr>
153       <th align="right">[% 'Show custom variable search inputs' | $T8 %]</th>
154       <td>
155        <select name="hide_cvar_search_options">
156         <option value="0"[% IF !myconfig_hide_cvar_search_options %] selected[% END %]>[% 'Show by default' | $T8 %]</option>
157         <option value="1"[% IF  myconfig_hide_cvar_search_options %] selected[% END %]>[% 'Hide by default' | $T8 %]</option>
158        </select>
159       </td>
160      </tr>
161     </table>
162
163     <br style="clear: left" />
164    </div>
165
166    <div id="page_print_options" class="tabcontent">
167
168     <table>
169      <input name="printer" type="hidden" value="[% HTML.escape(myconfig_printer) %]">
170
171      <tr>
172       <th align="right">[% 'Default template format' | $T8 %]</th>
173       <td>
174        <select name="template_format">
175         [%- FOREACH row = TEMPLATE_FORMATS %]
176         <option value="[% HTML.escape(row.value) %]"[% IF row.selected %] selected[% END %]>[% HTML.escape(row.name) %]</option>
177         [%- END %]
178        </select>
179       </td>
180      </tr>
181
182      <tr>
183       <th align="right">[% 'Default output medium' | $T8 %]</th>
184       <td>
185        <select name="default_media">
186         [%- FOREACH row = MEDIA %]
187         <option value="[% HTML.escape(row.value) %]"[% IF row.selected %] selected[% END %]>[% HTML.escape(row.name) %]</option>
188         [%- END %]
189        </select>
190       </td>
191      </tr>
192
193      <tr>
194       <th align="right">[% 'Default printer' | $T8 %]</th>
195       <td>
196        <select name="default_printer_id">
197         [%- FOREACH row = PRINTERS %]
198         <option value="[% HTML.escape(row.value) %]"[% IF row.selected %] selected[% END %]>[% HTML.escape(row.name) %]</option>
199         [%- END %]
200        </select>
201       </td>
202      </tr>
203
204      <tr>
205       <th align="right">[% 'Number of copies' | $T8 %]</th>
206       <td><input name="copies" size="10" value="[% HTML.escape(myconfig_copies) %]"></td>
207      </tr>
208     </table>
209
210     <br style="clear: left" />
211    </div>
212
213    <div id="page_todo_list_options" class="tabcontent">
214
215     <table>
216      <tr>
217       <th align="right">[% 'Show your TODO list after loggin in' | $T8 %]</th>
218       <td colspan="2">
219        <input type="radio" name="todo_cfg.show_after_login" id="todo_cfg_show_after_login_1" value="1"[% IF todo_cfg.show_after_login %] checked[% END %]>
220        <label for="todo_cfg_show_after_login_1">[% 'Yes' | $T8 %]</label>
221        <input type="radio" name="todo_cfg.show_after_login" id="todo_cfg_show_after_login_0" value="0"[% IF !todo_cfg.show_after_login %] checked[% END %]>
222        <label for="todo_cfg_show_after_login_0">[% 'No' | $T8 %]</label>
223       </td>
224      </tr>
225
226      <tr class="listheading">
227       <th colspan="3">[% 'Configuration of individual TODO items' | $T8 %]</th>
228      </tr>
229
230      <tr>
231       <th align="right">[% 'Show follow ups...' | $T8 %]</th>
232       <td>
233        <input type="checkbox" name="todo_cfg.show_follow_ups" id="todo_cfg_show_follow_ups" value="1"[% IF todo_cfg.show_follow_ups %] checked[% END %]>
234        <label for="todo_cfg_show_follow_ups">[% '...on the TODO list' | $T8 %]</label>
235       </td>
236       <td>
237        <input type="checkbox" name="todo_cfg.show_follow_ups_login" id="todo_cfg_show_follow_ups_login" value="1"[% IF todo_cfg.show_follow_ups_login %] checked[% END %]>
238        <label for="todo_cfg_show_follow_ups_login">[% '...after loggin in' | $T8 %]</label>
239       </td>
240      </tr>
241
242      [%- IF AUTH_RIGHTS_SALES_QUOTATION_EDIT %]
243      <tr>
244       <th align="right">[% 'Show overdue sales quotations and requests for quotations...' | $T8 %]</th>
245       <td>
246        <input type="checkbox" name="todo_cfg.show_overdue_sales_quotations" id="todo_cfg_show_overdue_sales_quotations" value="1"[% IF todo_cfg.show_overdue_sales_quotations %] checked[% END %]>
247        <label for="todo_cfg_show_overdue_sales_quotations">[% '...on the TODO list' | $T8 %]</label>
248       </td>
249       <td>
250        <input type="checkbox" name="todo_cfg.show_overdue_sales_quotations_login" id="todo_cfg_show_overdue_sales_quotations_login" value="1"[% IF todo_cfg.show_overdue_sales_quotations_login %] checked[% END %]>
251        <label for="todo_cfg_show_overdue_sales_quotations_login">[% '...after loggin in' | $T8 %]</label>
252       </td>
253      </tr>
254      [%- END %]
255     </table>
256
257     <br style="clear: left" />
258    </div>
259   </div>
260
261   <p><input type="submit" class="submit" name="action" value="[% 'Save' | $T8 %]"></p>
262  </form>
263
264  <script type="text/javascript">
265   <!--
266       var maintab = new ddtabcontent("maintab");
267       maintab.setpersist(true);
268       maintab.setselectedClassTarget("link"); //"link" or "linkparent"
269       maintab.init();
270     -->
271  </script>
272
273 </body>
274 </html>