3 [%- USE HTML %][%- USE L %]
6 <form method="post" action="am.pl" name="Form">
7 <input type="hidden" name="type" value="preferences">
9 <div class="tabwidget">
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>
17 <div id="page_personal_settings">
21 <th align="right">[% 'Name' | $T8 %]</th>
22 <td><input name="name" size="15" value="[% HTML.escape(MYCONFIG.name) %]"></td>
26 <th align="right">[% 'Password' | $T8 %]</th>
28 [%- IF CAN_CHANGE_PASSWORD %]
29 <input type="password" name="new_password" size="10" value="********">
31 <input type="hidden" name="new_password" value="********">
37 <th align="right">[% 'E-mail' | $T8 %]</th>
38 <td><input name="email" size="30" value="[% HTML.escape(MYCONFIG.email) %]"></td>
42 <th align="right">[% 'Signature' | $T8 %]</th>
43 <td><textarea id="signature" name="signature" class="toggletextarea" rows="5" cols="50">[% HTML.escape(MYCONFIG.signature) %] </textarea>
44 <span id="full_signature" class="toggletextarea"> <textarea readonly name="full_signature" rows="10" cols="50" >[% HTML.escape(full_signature) %]</textarea> </span>
45 <a href="#" class="togglelink">[% 'Check full signature' | $T8 %]</a>
46 <a href="#" id="edit_signature" class="togglelink">[% 'Edit user signature' | $T8 %]</a>
49 <th align="right">[% 'Phone' | $T8 %]</th>
50 <td><input name="tel" size="14" value="[% HTML.escape(MYCONFIG.tel) %]"></td>
54 <th align="right">[% 'Fax' | $T8 %]</th>
55 <td><input name="fax" size="14" value="[% HTML.escape(MYCONFIG.fax) %]"></td>
59 <th align="right">[% 'taxincluded checked' | $T8 %]</th>
61 [% L.yes_no_tag('taxincluded_checked', MYCONFIG.taxincluded_checked) %]
66 <th align="right">[% 'Focus position after update' | $T8 %]</th>
71 ['new_description', LxERP.t8('New row, description')],
72 ['new_partnumber', LxERP.t8('New row, partnumber')],
73 ['new_qty', LxERP.t8('New row, qty')],
74 ['last_description', LxERP.t8('Last row, description')],
75 ['last_partnumber', LxERP.t8('Last row, partnumber')],
76 ['last_qty', LxERP.t8('Last row, qty')],
78 default => MYCONFIG.focus_position)
84 <th align="right">[% 'Item multi selection with qty' | $T8 %]</th>
86 [% L.yes_no_tag('item_multiselect', MYCONFIG.item_multiselect) %]
93 <div id="page_display_options">
97 <th align="right">[% 'Date Format' | $T8 %]</th>
99 [% L.select_tag('dateformat', DATEFORMATS, value_key = 'value', title_key = 'name') %]
103 <th align="right">[% 'Time Format' | $T8 %]</th>
105 [% L.select_tag('timeformat', TIMEFORMATS, value_key = 'value', title_key = 'name') %]
109 <th align="right">[% 'Output Number Format' | $T8 %]</th>
111 [% L.select_tag('numberformat', NUMBERFORMATS, value_key = 'value', title_key = 'name') %]
116 <th align="right">[% 'Language' | $T8 %]</th>
118 [% L.select_tag('countrycode', COUNTRYCODES, value_key = 'value', title_key = 'name') %]
123 <th align="right">[% 'Stylesheet' | $T8 %]</th>
125 [% L.select_tag('usestylesheet', STYLESHEETS, value_key = 'value', title_key = 'name') %]
130 <th align="right">[% 'Setup Menu' | $T8 %]</th>
132 <select name="menustyle">
133 <option value="old"[% IF MYCONFIG.menustyle == 'old' %] selected[% END %]>[% 'Old (on the side)' | $T8 %]</option>
134 <option value="v3"[% IF MYCONFIG.menustyle == 'v3' %] selected[% END %]>[% 'Top (CSS)' | $T8 %]</option>
135 <option value="neu"[% IF MYCONFIG.menustyle == 'neu' %] selected[% END %]>[% 'Top (Javascript)' | $T8 %]</option>
141 <th align="right">[% 'Form details (second row)' | $T8 %]</th>
143 <select name="show_form_details">
144 <option value="1"[% IF MYCONFIG.show_form_details %] selected[% END %]>[% 'Show by default' | $T8 %]</option>
145 <option value="0"[% IF !MYCONFIG.show_form_details %] selected[% END %]>[% 'Hide by default' | $T8 %]</option>
151 <th align="right">[% 'Show custom variable search inputs' | $T8 %]</th>
153 <select name="hide_cvar_search_options">
154 <option value="0"[% IF !MYCONFIG.hide_cvar_search_options %] selected[% END %]>[% 'Show by default' | $T8 %]</option>
155 <option value="1"[% IF MYCONFIG.hide_cvar_search_options %] selected[% END %]>[% 'Hide by default' | $T8 %]</option>
161 <th align="right">[% 'Number of columns of custom variables in form details (second row)' | $T8 %]</th>
163 [% L.input_tag('form_cvars_nr_cols', MYCONFIG.form_cvars_nr_cols || 3, size = 5) %]
170 <div id="page_print_options">
173 <input name="printer" type="hidden" value="[% HTML.escape(MYCONFIG.printer) %]">
176 <th align="right">[% 'Default template format' | $T8 %]</th>
178 [% L.select_tag('template_format', TEMPLATE_FORMATS, value_key = 'value', title_key = 'name') %]
183 <th align="right">[% 'Default output medium' | $T8 %]</th>
185 [% L.select_tag('default_media', MEDIA, value_key = 'value', title_key = 'name') %]
190 <th align="right">[% 'Default printer' | $T8 %]</th>
192 [% L.select_tag('default_printer_id', PRINTERS, default = MYCONFIG.default_printer_id, title_key = 'printer_description', with_empty = 1) %]
197 <th align="right">[% 'Number of copies' | $T8 %]</th>
198 <td><input name="copies" size="10" value="[% HTML.escape(MYCONFIG.copies) %]"></td>
203 <div id="page_todo_list_options">
207 <th align="right">[% 'Show your TODO list after logging in' | $T8 %]</th>
209 <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 %]>
210 <label for="todo_cfg_show_after_login_1">[% 'Yes' | $T8 %]</label>
211 <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 %]>
212 <label for="todo_cfg_show_after_login_0">[% 'No' | $T8 %]</label>
216 <tr class="listheading">
217 <th colspan="3">[% 'Configuration of individual TODO items' | $T8 %]</th>
221 <th align="right">[% 'Show follow ups...' | $T8 %]</th>
223 <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 %]>
224 <label for="todo_cfg_show_follow_ups">[% '...on the TODO list' | $T8 %]</label>
227 <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 %]>
228 <label for="todo_cfg_show_follow_ups_login">[% '...after logging in' | $T8 %]</label>
232 [%- IF AUTH.assert('sales_quotation_edit', 'may_fail') %]
234 <th align="right">[% 'Show overdue sales quotations and requests for quotations...' | $T8 %]</th>
236 <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 %]>
237 <label for="todo_cfg_show_overdue_sales_quotations">[% '...on the TODO list' | $T8 %]</label>
240 <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 %]>
241 <label for="todo_cfg_show_overdue_sales_quotations_login">[% '...after logging in' | $T8 %]</label>
249 <p><input type="submit" class="submit" name="action" value="[% 'Save' | $T8 %]"></p>
252 <script type="text/javascript">
255 $("#full_signature").toggle();
256 $("#edit_signature").toggle();
257 $('.togglelink').click(function() {
258 $('.toggletextarea').toggle();
259 $('.togglelink').toggle();