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