Zeiterfassung: Datum/Dauer statt Start/Ende wählbar (Benutzereinstellung)
[kivitendo-erp.git] / templates / webpages / am / config.html
1 [%- USE T8 %]
2 [%- USE LxERP %]
3 [%- USE HTML %]
4 [%- USE L %]
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">[% 'E-mail' | $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">[% '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>
47           </td> </tr>
48      <tr>
49       <th align="right">[% 'Phone' | $T8 %]</th>
50       <td><input name="tel" size="14" value="[% HTML.escape(MYCONFIG.tel) %]"></td>
51      </tr>
52
53      <tr>
54       <th align="right">[% 'Fax' | $T8 %]</th>
55       <td><input name="fax" size="14" value="[% HTML.escape(MYCONFIG.fax) %]"></td>
56      </tr>
57
58       <tr>
59         <th align="right">[% 'taxincluded checked' | $T8 %]</th>
60         <td>
61           [% L.yes_no_tag('taxincluded_checked', MYCONFIG.taxincluded_checked) %]
62         </td>
63       </tr>
64
65       <tr>
66         <th align="right">[% 'Focus position after update' | $T8 %]</th>
67         <td>
68           [% L.select_tag(
69             'focus_position',
70             [
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')],
77             ],
78             default => MYCONFIG.focus_position)
79           %]
80         </td>
81       </tr>
82
83       <tr>
84         <th align="right">[% 'Item multi selection with qty' | $T8 %]</th>
85         <td>
86           [% L.yes_no_tag('item_multiselect', MYCONFIG.item_multiselect) %]
87         </td>
88       </tr>
89
90      <tr>
91       <th align="right">[% 'Use date and duration for time recordings' | $T8 %]</th>
92       <td>
93         [% L.yes_no_tag('time_recording_use_duration', time_recording_use_duration) %]
94       </td>
95      </tr>
96
97     </table>
98    </div>
99
100    <div id="page_display_options">
101
102     <table>
103      <tr>
104       <th align="right">[% 'Date Format' | $T8 %]</th>
105       <td>
106         [% L.select_tag('dateformat', DATEFORMATS, value_key = 'value', title_key = 'name') %]
107       </td>
108      </tr>
109      <tr>
110        <th align="right">[% 'Time Format' | $T8 %]</th>
111        <td>
112          [% L.select_tag('timeformat', TIMEFORMATS, value_key = 'value', title_key = 'name') %]
113        </td>
114      </tr>
115      <tr>
116       <th align="right">[% 'Output Number Format' | $T8 %]</th>
117       <td>
118         [% L.select_tag('numberformat', NUMBERFORMATS, value_key = 'value', title_key = 'name') %]
119       </td>
120      </tr>
121
122      <tr>
123       <th align="right">[% 'Language' | $T8 %]</th>
124       <td>
125         [% L.select_tag('countrycode', COUNTRYCODES, value_key = 'value', title_key = 'name') %]
126       </td>
127      </tr>
128
129      <tr>
130       <th align="right">[% 'Stylesheet' | $T8 %]</th>
131       <td>
132         [% L.select_tag('usestylesheet', STYLESHEETS, value_key = 'value', title_key = 'name') %]
133       </td>
134      </tr>
135
136      <tr>
137       <th align="right">[% 'Setup Menu' | $T8 %]</th>
138       <td>
139        <select name="menustyle">
140         <option value="old"[% IF MYCONFIG.menustyle == 'old' %] selected[% END %]>[% 'Old (on the side)' | $T8 %]</option>
141         <option value="v3"[% IF MYCONFIG.menustyle == 'v3' %] selected[% END %]>[% 'Top (CSS)' | $T8 %]</option>
142         <option value="neu"[% IF MYCONFIG.menustyle == 'neu' %] selected[% END %]>[% 'Top (Javascript)' | $T8 %]</option>
143        </select>
144       </td>
145      </tr>
146
147      <tr>
148       <th align="right">[% 'Form details (second row)' | $T8 %]</th>
149       <td>
150        <select name="show_form_details">
151         <option value="1"[% IF  MYCONFIG.show_form_details %] selected[% END %]>[% 'Show by default' | $T8 %]</option>
152         <option value="0"[% IF !MYCONFIG.show_form_details %] selected[% END %]>[% 'Hide by default' | $T8 %]</option>
153        </select>
154       </td>
155      </tr>
156
157      [%- IF INSTANCE_CONF.get_feature_experimental_order -%]
158      <tr>
159       <th align="right">[% 'Scrollbar height percentage for form postion area (0 means no scrollbar)' | $T8 %]</th>
160       <td>
161         [% L.input_tag('positions_scrollbar_height',  positions_scrollbar_height, size = 5) %]
162       </td>
163      </tr>
164      <tr>
165       <th align="right">[% 'Search parts by vendor partnumber (model) in purchase order forms' | $T8 %]</th>
166       <td>
167         [% L.yes_no_tag('purchase_search_makemodel', purchase_search_makemodel) %]
168         [%- 'This also enables displaying a column with the vendor partnumber (model) (new order controller).' | $T8 %]
169       </td>
170      </tr>
171      <tr>
172       <th align="right">[% 'Search parts by customer partnumber in sales order forms' | $T8 %]</th>
173       <td>
174         [% L.yes_no_tag('sales_search_customer_partnumber', sales_search_customer_partnumber) %]
175         [%- 'This also enables displaying a column with the customer partnumber (new order controller).' | $T8 %]
176       </td>
177      </tr>
178      <tr>
179       <th align="right">[% 'Show update button for positions in order forms' | $T8 %]</th>
180       <td>
181         [% L.yes_no_tag('positions_show_update_button', positions_show_update_button) %]
182       </td>
183      </tr>
184      [%- END -%]
185
186      <tr>
187       <th align="right">[% 'Show custom variable search inputs' | $T8 %]</th>
188       <td>
189        <select name="hide_cvar_search_options">
190         <option value="0"[% IF !MYCONFIG.hide_cvar_search_options %] selected[% END %]>[% 'Show by default' | $T8 %]</option>
191         <option value="1"[% IF  MYCONFIG.hide_cvar_search_options %] selected[% END %]>[% 'Hide by default' | $T8 %]</option>
192        </select>
193       </td>
194      </tr>
195
196      <tr>
197       <th align="right">[% 'Number of columns of custom variables in form details (second row)' | $T8 %]</th>
198       <td>
199         [% L.input_tag('form_cvars_nr_cols',  MYCONFIG.form_cvars_nr_cols || 3,  size = 5) %]
200       </td>
201      </tr>
202
203      <tr>
204       <th align="right">[% 'Quick Searches that will be shown in the header for this user' | $T8 %]</th>
205       <td colspan=2>
206         <div class="clearfix">
207          [% L.select_tag("quick_search_modules[]",
208            enabled_quick_searchmodules,
209            value_key  = "name",
210            title_key  = "description_config",
211            id         = "quick_searches",
212            multiple   = 1,
213            with_empty = 1
214            size       = enabled_quick_searchmodules.size,
215            default    = default_quick_searchmodules) %]
216         </div>
217       </td>
218     </tr>
219
220      <tr>
221        <th align="right">[% 'Displayable Name Preferences' | $T8 %]</th>
222        <td>
223          <table>
224            [% FOREACH module=displayable_name_specs_by_module.keys.sort %]
225            [%- SET spec=displayable_name_specs_by_module.$module -%]
226            <tr>
227              <td align="right">[% spec.specs.title %]</td>
228              <td>
229                <table>
230                  <tr>
231                    <th align="left" class="listheading">[% 'Option' | $T8 %]</th>
232                    <th align="left" class="listheading">[% 'Name'   | $T8 %]</th>
233                  </tr>
234                  [% FOREACH option=spec.specs.options %]
235                  <tr>
236                    <td>[% option.title %]</td>
237                    <td>[% option.name  %]</td>
238                  </tr>
239                  [% END %]
240                  <tr>
241                    <th align="left">[% 'Display' | $T8 %]:</th>
242                    <td>
243                      [% L.hidden_tag("displayable_name_specs[+].module", module) %]
244                      [% L.input_tag("displayable_name_specs[].value", spec.prefs.get, size=50) %]
245                    </td>
246                  </tr>
247                </table>
248              </td>
249            </tr>
250            [% END %]
251          </table>
252        </td>
253
254     </table>
255    </div>
256
257    <div id="page_print_options">
258
259     <table>
260      <input name="printer" type="hidden" value="[% HTML.escape(MYCONFIG.printer) %]">
261
262      <tr>
263       <th align="right">[% 'Default template format' | $T8 %]</th>
264       <td>
265         [% L.select_tag('template_format', TEMPLATE_FORMATS, value_key = 'value', title_key = 'name') %]
266       </td>
267      </tr>
268
269      <tr>
270       <th align="right">[% 'Default output medium' | $T8 %]</th>
271       <td>
272         [% L.select_tag('default_media', MEDIA, value_key = 'value', title_key = 'name') %]
273       </td>
274      </tr>
275
276      <tr>
277       <th align="right">[% 'Default printer' | $T8 %]</th>
278       <td>
279        [% L.select_tag('default_printer_id', PRINTERS, default = MYCONFIG.default_printer_id, title_key = 'printer_description', with_empty = 1) %]
280       </td>
281      </tr>
282
283      <tr>
284       <th align="right">[% 'Number of copies' | $T8 %]</th>
285       <td><input name="copies" size="10" value="[% HTML.escape(MYCONFIG.copies) %]"></td>
286      </tr>
287     </table>
288    </div>
289
290    <div id="page_todo_list_options">
291
292     <table>
293      <tr>
294       <th align="right">[% 'Show your TODO list after logging in' | $T8 %]</th>
295       <td colspan="2">
296        <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 %]>
297        <label for="todo_cfg_show_after_login_1">[% 'Yes' | $T8 %]</label>
298        <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 %]>
299        <label for="todo_cfg_show_after_login_0">[% 'No' | $T8 %]</label>
300       </td>
301      </tr>
302
303      <tr class="listheading">
304       <th colspan="3">[% 'Configuration of individual TODO items' | $T8 %]</th>
305      </tr>
306
307      <tr>
308       <th align="right">[% 'Show follow ups...' | $T8 %]</th>
309       <td>
310        <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 %]>
311        <label for="todo_cfg_show_follow_ups">[% '...on the TODO list' | $T8 %]</label>
312       </td>
313       <td>
314        <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 %]>
315        <label for="todo_cfg_show_follow_ups_login">[% '...after logging in' | $T8 %]</label>
316       </td>
317      </tr>
318
319      [%- IF AUTH.assert('sales_quotation_edit', 'may_fail') %]
320      <tr>
321       <th align="right">[% 'Show overdue sales quotations and requests for quotations...' | $T8 %]</th>
322       <td>
323        <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 %]>
324        <label for="todo_cfg_show_overdue_sales_quotations">[% '...on the TODO list' | $T8 %]</label>
325       </td>
326       <td>
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     </table>
333    </div>
334   </div>
335  </form>
336
337  <script type="text/javascript">
338   <!--
339 $(function() {
340   $("#full_signature").toggle();
341   $("#edit_signature").toggle();
342   $('.togglelink').click(function() {
343     $('.toggletextarea').toggle();
344     $('.togglelink').toggle();
345     return false;
346   });
347 });
348     -->
349  </script>