9 <form method="post" action="am.pl" name="Form" id="form">
10 <div class="tabwidget">
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>
20 <div id="page_personal_settings">
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>
28 <th>[% 'Name' | $T8 %]</th>
29 <td><input type="text" name="name" class="wi-wide" value="[% HTML.escape(MYCONFIG.name) %]"></td>
32 <th>[% 'Password' | $T8 %]</th>
34 [% IF CAN_CHANGE_PASSWORD %]
35 <input type="password" name="new_password" class="wi-wide" value="********">
37 <input type="hidden" name="new_password" value="********" class="wi-wide">
42 <th>[% 'Email address' | $T8 %]</th>
43 <td><input type="text" name="email" class="wi-wide" value="[% HTML.escape(MYCONFIG.email) %]"></td>
46 <th>[% 'Email signature' | $T8 %]</th>
48 [% P.textarea_tag("signature", MYCONFIG.signature, class="texteditor", rows="5", cols="50") %]
52 <th class="vmiddle">[% "Company's email signature" | $T8 %]</th>
53 <td>[% P.restricted_html(company_signature) %]</td>
56 <th>[% 'Phone' | $T8 %]</th>
57 <td><input type="text" name="tel" class="wi-wide" value="[% HTML.escape(MYCONFIG.tel) %]"></td>
60 <th>[% 'Fax' | $T8 %]</th>
61 <td><input type="text" name="fax" class="wi-wide" value="[% HTML.escape(MYCONFIG.fax) %]"></td>
64 <th>[% 'taxincluded checked' | $T8 %]</th>
65 <td> [% L.yes_no_tag('taxincluded_checked', MYCONFIG.taxincluded_checked, class='wi-small') %]</td>
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') %]
73 <th>[% 'Item multi selection with qty' | $T8 %]</th>
74 <td> [% L.yes_no_tag('item_multiselect', MYCONFIG.item_multiselect, class='wi-small') %]
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') %]
84 </div><!-- /.wrapper -->
85 </div><!-- /#page_personal_settings -->
87 <div id="page_display_options">
89 <table class="tbl-horizontal">
90 <colgroup> <col class="wi-lightwide"><col class="wi-lightwide"> </colgroup>
91 <caption>[% 'Display options' | $T8 %]</caption>
94 <th>[% 'Date Format' | $T8 %]</th>
95 <td>[% L.select_tag('dateformat', DATEFORMATS, value_key='value', title_key='name', class="wi-small") %]</td>
98 <th>[% 'Time Format' | $T8 %]</th>
99 <td>[% L.select_tag('timeformat', TIMEFORMATS, value_key='value', title_key='name', class="wi-small") %]</td>
102 <th>[% 'Output Number Format' | $T8 %]</th>
103 <td>[% L.select_tag('numberformat', NUMBERFORMATS, value_key='value', title_key='name', class="wi-small") %]</td>
106 <th>[% 'Language' | $T8 %]</th>
107 <td>[% L.select_tag('countrycode', COUNTRYCODES, value_key = 'value', title_key = 'name', class='wi-lightwide') %]</td>
110 <th>[% 'Forced Layout Style' | $T8 %]</th>
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') %]
116 <th>[% 'Stylesheet' | $T8 %]</th>
117 <td>[% L.select_tag('usestylesheet', STYLESHEETS, value_key = 'value', title_key = 'name', class='wi-lightwide') %]</td>
120 <th>[% 'Setup Menu' | $T8 %]</th>
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>
130 <th>[% 'Form details (second row)' | $T8 %]</th>
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>
139 <th>[% 'Longdescription dialog size percentage from main window' | $T8 %]</th>
141 [% L.input_tag('longdescription_dialog_size_percentage', longdescription_dialog_size_percentage, size = 5) %]
142 <span class="description">
143 [%- '(0 means fix values)' | $T8 %]
148 <th>[% 'Scrollbar height percentage for form postion area' | $T8 %]</th>
150 [% L.input_tag('positions_scrollbar_height', positions_scrollbar_height, size = 5) %]
151 <span class="description">
152 [%- '(0 means no scrollbar)' | $T8 %]
157 <th>[% 'Search parts by vendor partnumber (model) in purchase order forms' | $T8 %]</th>
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 %]
166 <th>[% 'Search parts by customer partnumber in sales order forms' | $T8 %]</th>
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 %]
175 <th>[% 'Show update button for positions in order forms' | $T8 %]</th>
177 [% L.yes_no_tag('positions_show_update_button', positions_show_update_button) %]
181 <th>[% 'Show custom variable search inputs' | $T8 %]</th>
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>
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>
194 <th>[% 'Quick Searches that will be shown in the header for this user' | $T8 %]</th>
197 [% L.select_tag("quick_search_modules[]",
198 enabled_quick_searchmodules,
200 title_key = "description_config",
201 id = "quick_searches",
204 size = enabled_quick_searchmodules.size,
205 default = default_quick_searchmodules) %]
210 <th>[% 'Displayable Name Preferences' | $T8 %]</th>
213 [% FOREACH module=displayable_name_specs_by_module.keys.sort %]
214 [%- SET spec=displayable_name_specs_by_module.$module -%]
216 <th class="left">[% spec.specs.title %]</th>
220 <th class="left">[% 'Option' | $T8 %]</th>
221 <th class="left">[% 'Name' | $T8 %]</th>
223 [% FOREACH option=spec.specs.options %]
225 <td>[% option.title %]</td>
226 <td>[% option.name %]</td>
230 <th class="left">[% 'Display' | $T8 %]:</th>
232 [% L.hidden_tag("displayable_name_specs[+].module", module) %]
233 [% L.input_tag("displayable_name_specs[].value", spec.prefs.get, size=50) %]
244 <th>[% 'Part picker search dialog (magnifying glass): "all as list" defaults to on' | $T8 %]</th>
246 [% L.yes_no_tag('part_picker_search_all_as_list_default', part_picker_search_all_as_list_default) %]
250 <th>[% 'Item input position for quotations and orders' | $T8 %]</th>
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) %]
257 </div><!-- /.wrapper -->
258 </div><!-- /#page_display_options -->
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>
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') %]
273 <th>[% 'Default output medium' | $T8 %]</th>
274 <td> [% L.select_tag('default_media', MEDIA, value_key = 'value', title_key = 'name', class='wi-normal') %]
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') %]
283 <th>[% 'Number of copies' | $T8 %]</th>
285 <input type="text" name="copies" size="10" value="[% HTML.escape(MYCONFIG.copies) %]" class="wi-normal">
290 </div><!-- /.wrapper -->
291 </div><!-- /#page_print_options -->
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>
301 <th>[% 'Show your TODO list after logging in' | $T8 %]</th>
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>
310 <th colspan="2" class="caption">[% 'Configuration of individual TODO items' | $T8 %]</th>
313 <th>[% 'Show follow ups...' | $T8 %]</th>
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>
321 [% IF AUTH.assert('sales_quotation_edit', 'may_fail') %]
323 <th>[% 'Show overdue sales quotations and requests for quotations...' | $T8 %]</th>
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>
334 </div><!-- /.wrapper -->
335 </div><!-- /#page_todo_list_options -->
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>
345 <th>[% 'Notify me by email for follow-ups' | $T8 %]</th>
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>
354 </div><!-- /.wrapper -->
355 </div><!-- /#page_follow_up_options -->
360 <script type="text/javascript">
363 $("#full_signature").toggle();
364 $("#edit_signature").toggle();
365 $('.togglelink').click(function() {
366 $('.toggletextarea').toggle();
367 $('.togglelink').toggle();