]> wagnertech.de Git - mfinanz.git/blob - templates/design40_webpages/am/config.html
date error in mapping
[mfinanz.git] / templates / design40_webpages / am / config.html
1 [% USE T8 %]
2 [% USE LxERP %]
3 [% USE HTML %]
4 [% USE L %]
5 [% USE P %]
6
7 <h1>[% title %]</h1>
8
9 <form method="post" action="am.pl" name="Form" id="form">
10 <div class="tabwidget">
11 <ul>
12   <li><a href="#page_personal_settings">[% 'Personal settings' | $T8 %]</a></li>
13   <li><a href="#page_display_options">[% 'Display options' | $T8 %]</a></li>
14   <li><a href="#page_print_options">[% 'Print options' | $T8 %]</a></li>
15   <li><a href="#page_todo_list_options">[% 'TODO list options' | $T8 %]</a></li>
16   <li><a href="#page_follow_up_options">[% 'Follow-up options' | $T8 %]</a></li>
17 </ul>
18
19
20 <div id="page_personal_settings">
21   <div class="wrapper">
22     <table class="tbl-horizontal">
23       <colgroup> <col class="wi-mediumsmall"><col class="wi-lightwide"> </colgroup>
24       <caption> [% 'Personal settings' | $T8 %] </caption>
25       <colgroup> <col class="wi-small"><col class="wi-lightwide"> </colgroup>
26       <tbody>
27       <tr>
28         <th>[% 'Name' | $T8 %]</th>
29         <td><input type="text" name="name" class="wi-wide" value="[% HTML.escape(MYCONFIG.name) %]"></td>
30       </tr>
31       <tr>
32         <th>[% 'Password' | $T8 %]</th>
33         <td>
34           [% IF CAN_CHANGE_PASSWORD %]
35             <input type="password" name="new_password" class="wi-wide" value="********">
36           [% ELSE %]
37             <input type="hidden" name="new_password" value="********" class="wi-wide">
38           [% END %]
39         </td>
40       </tr>
41       <tr>
42         <th>[% 'Email address' | $T8 %]</th>
43         <td><input type="text" name="email" class="wi-wide" value="[% HTML.escape(MYCONFIG.email) %]"></td>
44       </tr>
45       <tr>
46         <th>[% 'Email signature' | $T8 %]</th>
47         <td>
48           [% P.textarea_tag("signature", MYCONFIG.signature, class="texteditor", rows="5", cols="50") %]
49         </td>
50       </tr>
51       <tr>
52         <th class="vmiddle">[% "Company's email signature" | $T8 %]</th>
53         <td>[% P.restricted_html(company_signature) %]</td>
54       </tr>
55       <tr>
56         <th>[% 'Phone' | $T8 %]</th>
57         <td><input type="text" name="tel" class="wi-wide" value="[% HTML.escape(MYCONFIG.tel) %]"></td>
58       </tr>
59       <tr>
60         <th>[% 'Fax' | $T8 %]</th>
61         <td><input type="text" name="fax" class="wi-wide" value="[% HTML.escape(MYCONFIG.fax) %]"></td>
62       </tr>
63       <tr>
64         <th>[% 'taxincluded checked' | $T8 %]</th>
65         <td> [% L.yes_no_tag('taxincluded_checked', MYCONFIG.taxincluded_checked, class='wi-small') %]</td>
66       </tr>
67       <tr>
68         <th>[% 'Focus position after update' | $T8 %]</th>
69         <td> [% L.select_tag( 'focus_position', [ ['new_description', LxERP.t8('New row, description')], ['new_partnumber', LxERP.t8('New row, partnumber')], ['new_qty', LxERP.t8('New row, qty')], ['last_description', LxERP.t8('Last row, description')], ['last_partnumber', LxERP.t8('Last row, partnumber')], ['last_qty', LxERP.t8('Last row, qty')], ], default => MYCONFIG.focus_position, class='wi-wide') %]
70         </td>
71       </tr>
72       <tr>
73         <th>[% 'Item multi selection with qty' | $T8 %]</th>
74         <td> [% L.yes_no_tag('item_multiselect', MYCONFIG.item_multiselect, class='wi-small') %]
75         </td>
76       </tr>
77       <tr>
78         <th>[% 'Use date and duration for time recordings' | $T8 %]</th>
79         <td> [% L.yes_no_tag('time_recording_use_duration', time_recording_use_duration, class='wi-small') %]
80         </td>
81       </tr>
82     </tbody>
83     </table>
84   </div><!-- /.wrapper -->
85 </div><!-- /#page_personal_settings -->
86
87 <div id="page_display_options">
88   <div class="wrapper">
89     <table class="tbl-horizontal">
90     <colgroup> <col class="wi-lightwide"><col class="wi-lightwide"> </colgroup>
91     <caption>[% 'Display options' | $T8 %]</caption>
92     <tbody>
93     <tr>
94       <th>[% 'Date Format' | $T8 %]</th>
95       <td>[% L.select_tag('dateformat', DATEFORMATS, value_key='value', title_key='name', class="wi-small") %]</td>
96     </tr>
97     <tr>
98       <th>[% 'Time Format' | $T8 %]</th>
99       <td>[% L.select_tag('timeformat', TIMEFORMATS, value_key='value', title_key='name', class="wi-small") %]</td>
100     </tr>
101     <tr>
102       <th>[% 'Output Number Format' | $T8 %]</th>
103       <td>[% L.select_tag('numberformat', NUMBERFORMATS, value_key='value', title_key='name', class="wi-small") %]</td>
104     </tr>
105     <tr>
106       <th>[% 'Language' | $T8 %]</th>
107       <td>[% L.select_tag('countrycode', COUNTRYCODES, value_key = 'value', title_key = 'name', class='wi-lightwide') %]</td>
108     </tr>
109     <tr>
110       <th>[% 'Forced Layout Style' | $T8 %]</th>
111       <td>
112         [% L.select_tag('layout_style', [['', LxERP.t8('Use settings from client configuration')], ['auto', LxERP.t8('Automatic')], ['desktop', LxERP.t8('desktop version')]], default=layout_style, with_empty=0, class='wi-lightwide') %]
113       </td>
114     </tr>
115     <tr>
116       <th>[% 'Stylesheet' | $T8 %]</th>
117       <td>[% L.select_tag('usestylesheet', STYLESHEETS, value_key = 'value', title_key = 'name', class='wi-lightwide') %]</td>
118     </tr>
119     <tr>
120       <th>[% 'Setup Menu' | $T8 %]</th>
121       <td>
122         <select name="menustyle" class="wi-lightwide">
123           <option value="old"[% IF MYCONFIG.menustyle == 'old' %] selected[% END %]>[% 'Old (on the side)' | $T8 %]</option>
124           <option value="v3"[% IF MYCONFIG.menustyle == 'v3' %] selected[% END %]>[% 'Top (CSS)' | $T8 %]</option>
125           <option value="neu"[% IF MYCONFIG.menustyle == 'neu' %] selected[% END %]>[% 'Top (Javascript)' | $T8 %]</option>
126         </select>
127       </td>
128     </tr>
129     <tr>
130       <th>[% 'Form details (second row)' | $T8 %]</th>
131       <td>
132         <select name="show_form_details" class="wi-lightwide">
133           <option value="1"[% IF  MYCONFIG.show_form_details %] selected[% END %]>[% 'Show by default' | $T8 %]</option>
134           <option value="0"[% IF !MYCONFIG.show_form_details %] selected[% END %]>[% 'Hide by default' | $T8 %]</option>
135         </select>
136       </td>
137     </tr>
138     <tr>
139       <th>[% 'Longdescription dialog size percentage from main window' | $T8 %]</th>
140       <td>
141         [% L.input_tag('longdescription_dialog_size_percentage', longdescription_dialog_size_percentage, size = 5) %]
142         <span class="description">
143           [%- '(0 means fix values)' | $T8 %]
144         </span>
145       </td>
146     </tr>
147     <tr>
148       <th>[% 'Scrollbar height percentage for form postion area' | $T8 %]</th>
149       <td>
150         [% L.input_tag('positions_scrollbar_height',  positions_scrollbar_height, size = 5) %]
151         <span class="description">
152           [%- '(0 means no scrollbar)' | $T8 %]
153         </span>
154       </td>
155     </tr>
156     <tr>
157       <th>[% 'Search parts by vendor partnumber (model) in purchase order forms' | $T8 %]</th>
158       <td>
159         [% L.yes_no_tag('purchase_search_makemodel', purchase_search_makemodel) %]
160         <div class="description">
161           [%- 'This also enables displaying a column with the vendor partnumber (model) (new order controller).' | $T8 %]
162         </div>
163       </td>
164     </tr>
165     <tr>
166       <th>[% 'Search parts by customer partnumber in sales order forms' | $T8 %]</th>
167       <td>
168         [% L.yes_no_tag('sales_search_customer_partnumber', sales_search_customer_partnumber) %]
169         <div class="description">
170           [%- 'This also enables displaying a column with the customer partnumber (new order controller).' | $T8 %]
171         </div>
172       </td>
173     </tr>
174     <tr>
175       <th>[% 'Show update button for positions in order forms' | $T8 %]</th>
176       <td>
177         [% L.yes_no_tag('positions_show_update_button', positions_show_update_button) %]
178       </td>
179     </tr>
180     <tr>
181       <th>[% 'Show custom variable search inputs' | $T8 %]</th>
182       <td>
183         <select name="hide_cvar_search_options" class="wi-lightwide">
184           <option value="0"[% IF !MYCONFIG.hide_cvar_search_options %] selected[% END %]>[% 'Show by default' | $T8 %]</option>
185           <option value="1"[% IF  MYCONFIG.hide_cvar_search_options %] selected[% END %]>[% 'Hide by default' | $T8 %]</option>
186         </select>
187       </td>
188     </tr>
189     <tr>
190       <th>[% 'Number of columns of custom variables in form details (second row)' | $T8 %]</th>
191       <td>[% L.input_tag('form_cvars_nr_cols', MYCONFIG.form_cvars_nr_cols || 3, class='wi-verysmall') %]</td>
192     </tr>
193     <tr>
194       <th>[% 'Quick Searches that will be shown in the header for this user' | $T8 %]</th>
195       <td>
196         <div>
197           [% L.select_tag("quick_search_modules[]",
198             enabled_quick_searchmodules,
199             value_key  = "name",
200             title_key  = "description_config",
201             id         = "quick_searches",
202             multiple   = 1,
203             with_empty = 1,
204             size       = enabled_quick_searchmodules.size,
205             default    = default_quick_searchmodules) %]
206         </div>
207       </td>
208     </tr>
209     <tr>
210       <th>[% 'Displayable Name Preferences' | $T8 %]</th>
211       <td>
212         <table>
213           [% FOREACH module=displayable_name_specs_by_module.keys.sort %]
214           [%- SET spec=displayable_name_specs_by_module.$module -%]
215           <tr>
216             <th class="left">[% spec.specs.title %]</th>
217             <td>
218               <table>
219                 <tr>
220                   <th class="left">[% 'Option' | $T8 %]</th>
221                   <th class="left">[% 'Name'   | $T8 %]</th>
222                 </tr>
223                 [% FOREACH option=spec.specs.options %]
224                 <tr>
225                   <td>[% option.title %]</td>
226                   <td>[% option.name  %]</td>
227                 </tr>
228                 [% END %]
229                 <tr>
230                   <th class="left">[% 'Display' | $T8 %]:</th>
231                   <td>
232                     [% L.hidden_tag("displayable_name_specs[+].module", module) %]
233                     [% L.input_tag("displayable_name_specs[].value", spec.prefs.get, size=50) %]
234                   </td>
235                 </tr>
236               </table>
237             </td>
238           </tr>
239           [% END %]
240         </table>
241       </td>
242     </tr>
243     <tr>
244       <th>[% 'Part picker search dialog (magnifying glass): "all as list" defaults to on' | $T8 %]</th>
245       <td>
246         [% L.yes_no_tag('part_picker_search_all_as_list_default', part_picker_search_all_as_list_default) %]
247       </td>
248     </tr>
249      <tr>
250        <th>[% 'Item input position for quotations and orders' | $T8 %]</th>
251        <td>
252         [% L.select_tag('order_item_input_position', [ [ 'default', LxERP.t8('Use settings from client configuration') ], [ 0, LxERP.t8('above the positions') ], [ 1, LxERP.t8('below the positions') ] ], default=order_item_input_position) %]
253       </td>
254     </tr>
255     </tbody>
256     </table>
257   </div><!-- /.wrapper -->
258 </div><!-- /#page_display_options -->
259
260
261 <div id="page_print_options">
262   <div class="wrapper">
263     <input name="printer" type="hidden" value="[% HTML.escape(MYCONFIG.printer) %]">
264     <table class="tbl-horizontal">
265       <caption>[% 'Print options' | $T8 %]</caption>
266       <tbody>
267         <tr>
268           <th>[% 'Default template format' | $T8 %]</th>
269           <td> [% L.select_tag('template_format', TEMPLATE_FORMATS, value_key = 'value', title_key = 'name', class='wi-normal') %]
270           </td>
271         </tr>
272         <tr>
273           <th>[% 'Default output medium' | $T8 %]</th>
274           <td> [% L.select_tag('default_media', MEDIA, value_key = 'value', title_key = 'name', class='wi-normal') %]
275           </td>
276         </tr>
277         <tr>
278           <th>[% 'Default printer' | $T8 %]</th>
279           <td> [% L.select_tag('default_printer_id', PRINTERS, default = MYCONFIG.default_printer_id, title_key = 'printer_description', with_empty = 1, class='wi-normal') %]
280           </td>
281         </tr>
282         <tr>
283           <th>[% 'Number of copies' | $T8 %]</th>
284           <td>
285           <input type="text" name="copies" size="10" value="[% HTML.escape(MYCONFIG.copies) %]" class="wi-normal">
286           </td>
287         </tr>
288       </tbody>
289     </table>
290   </div><!-- /.wrapper -->
291 </div><!-- /#page_print_options -->
292
293
294 <div id="page_todo_list_options">
295   <div class="wrapper">
296     <table class="tbl-horizontal">
297     <caption>[% 'TODO list options' | $T8 %]</caption>
298       <colgroup> <col class="wi-normal"><col class="wi-normal"> </colgroup>
299     <tbody>
300       <tr>
301         <th>[% 'Show your TODO list after logging in' | $T8 %]</th>
302         <td>
303         <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 %]>
304         <label for="todo_cfg_show_after_login_1">[% 'Yes' | $T8 %]</label>
305         <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 %]>
306         <label for="todo_cfg_show_after_login_0">[% 'No' | $T8 %]</label>
307         </td>
308       </tr>
309       <tr>
310         <th colspan="2" class="caption">[% 'Configuration of individual TODO items' | $T8 %]</th>
311       </tr>
312       <tr>
313         <th>[% 'Show follow ups...' | $T8 %]</th>
314         <td>
315           <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 %]>
316           <label for="todo_cfg_show_follow_ups">[% '...on the TODO list' | $T8 %]</label> <br>
317           <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 %]>
318           <label for="todo_cfg_show_follow_ups_login">[% '...after logging in' | $T8 %]</label>
319         </td>
320       </tr>
321       [% IF AUTH.assert('sales_quotation_edit', 'may_fail') %]
322       <tr>
323         <th>[% 'Show overdue sales quotations and requests for quotations...' | $T8 %]</th>
324         <td>
325           <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 %]>
326           <label for="todo_cfg_show_overdue_sales_quotations">[% '...on the TODO list' | $T8 %]</label> <br>
327           <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 %]>
328           <label for="todo_cfg_show_overdue_sales_quotations_login">[% '...after logging in' | $T8 %]</label>
329         </td>
330       </tr>
331       [% END %]
332     </tbody>
333     </table>
334   </div><!-- /.wrapper -->
335 </div><!-- /#page_todo_list_options -->
336
337
338 <div id="page_follow_up_options">
339   <div class="wrapper">
340     <table class="tbl-horizontal">
341     <caption>[% 'Follow-up options' | $T8 %]</caption>
342       <colgroup> <col class="wi-normal"><col class="wi-normal"> </colgroup>
343     <tbody>
344       <tr>
345         <th>[% 'Notify me by email for follow-ups' | $T8 %]</th>
346         <td>
347           <input type="radio" name="follow_up_notify_by_email" id="follow_up_notify_by_email_1" value="1"[% IF follow_up_notify_by_email %] checked[% END %]>
348           <label for="follow_up_notify_by_email_1">[% 'Yes' | $T8 %]</label>
349           <input type="radio" name="follow_up_notify_by_email" id="follow_up_notify_by_email_0" value="0"[% IF !follow_up_notify_by_email %] checked[% END %]>
350           <label for="follow_up_notify_by_email_0">[% 'No' | $T8 %]</label>
351         </td>
352       </tr>
353     </table>
354   </div><!-- /.wrapper -->
355 </div><!-- /#page_follow_up_options -->
356
357 </div>
358 </form>
359
360  <script type="text/javascript">
361   <!--
362 $(function() {
363   $("#full_signature").toggle();
364   $("#edit_signature").toggle();
365   $('.togglelink').click(function() {
366     $('.toggletextarea').toggle();
367     $('.togglelink').toggle();
368     return false;
369   });
370 });
371     -->
372  </script>