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