d939919c1d94553759d641fcacf0957a0767dfa4
[kivitendo-erp.git] / templates / webpages / am / config.html
1 [%- USE T8 %]
2 [%- USE LxERP %]
3 [%- USE HTML %][%- USE L %]
4 <h1>[% title %]</h1>
5
6  <form method="post" action="am.pl" name="Form" id="form">
7   <div class="tabwidget">
8    <ul>
9     <li><a href="#page_personal_settings">[% 'Personal settings' | $T8 %]</a></li>
10     <li><a href="#page_display_options">[% 'Display options' | $T8 %]</a></li>
11     <li><a href="#page_print_options">[% 'Print options' | $T8 %]</a></li>
12     <li><a href="#page_todo_list_options">[% 'TODO list options' | $T8 %]</a></li>
13    </ul>
14
15    <div id="page_personal_settings">
16
17     <table>
18      <tr>
19       <th align="right">[% 'Name' | $T8 %]</th>
20       <td><input name="name" size="15" value="[% HTML.escape(MYCONFIG.name) %]"></td>
21      </tr>
22
23      <tr>
24       <th align="right">[% 'Password' | $T8 %]</th>
25       <td>
26        [%- IF CAN_CHANGE_PASSWORD %]
27        <input type="password" name="new_password" size="10" value="********">
28        [%- ELSE %]
29        <input type="hidden" name="new_password" value="********">
30        [%- END %]
31       </td>
32      </tr>
33
34      <tr>
35       <th align="right">[% 'E-mail' | $T8 %]</th>
36       <td><input name="email" size="30" value="[% HTML.escape(MYCONFIG.email) %]"></td>
37      </tr>
38
39      <tr valign="top">
40       <th align="right">[% 'Signature' | $T8 %]</th>
41       <td><textarea id="signature" name="signature" class="toggletextarea" rows="5" cols="50">[% HTML.escape(MYCONFIG.signature) %] </textarea>
42          <span id="full_signature" class="toggletextarea"> <textarea readonly name="full_signature" rows="10" cols="50" >[% HTML.escape(full_signature) %]</textarea> </span>
43          <a href="#" class="togglelink">[% 'Check full signature' | $T8 %]</a>
44          <a href="#" id="edit_signature" class="togglelink">[% 'Edit user signature' | $T8 %]</a>
45           </td> </tr>
46      <tr>
47       <th align="right">[% 'Phone' | $T8 %]</th>
48       <td><input name="tel" size="14" value="[% HTML.escape(MYCONFIG.tel) %]"></td>
49      </tr>
50
51      <tr>
52       <th align="right">[% 'Fax' | $T8 %]</th>
53       <td><input name="fax" size="14" value="[% HTML.escape(MYCONFIG.fax) %]"></td>
54      </tr>
55
56       <tr>
57         <th align="right">[% 'taxincluded checked' | $T8 %]</th>
58         <td>
59           [% L.yes_no_tag('taxincluded_checked', MYCONFIG.taxincluded_checked) %]
60         </td>
61       </tr>
62
63       <tr>
64         <th align="right">[% 'Focus position after update' | $T8 %]</th>
65         <td>
66           [% L.select_tag(
67             'focus_position',
68             [
69               ['new_description',  LxERP.t8('New row, description')],
70               ['new_partnumber',   LxERP.t8('New row, partnumber')],
71               ['new_qty',          LxERP.t8('New row, qty')],
72               ['last_description', LxERP.t8('Last row, description')],
73               ['last_partnumber',  LxERP.t8('Last row, partnumber')],
74               ['last_qty',         LxERP.t8('Last row, qty')],
75             ],
76             default => MYCONFIG.focus_position)
77           %]
78         </td>
79       </tr>
80
81       <tr>
82         <th align="right">[% 'Item multi selection with qty' | $T8 %]</th>
83         <td>
84           [% L.yes_no_tag('item_multiselect', MYCONFIG.item_multiselect) %]
85         </td>
86       </tr>
87
88     </table>
89    </div>
90
91    <div id="page_display_options">
92
93     <table>
94      <tr>
95       <th align="right">[% 'Date Format' | $T8 %]</th>
96       <td>
97         [% L.select_tag('dateformat', DATEFORMATS, value_key = 'value', title_key = 'name') %]
98       </td>
99      </tr>
100      <tr>
101        <th align="right">[% 'Time Format' | $T8 %]</th>
102        <td>
103          [% L.select_tag('timeformat', TIMEFORMATS, value_key = 'value', title_key = 'name') %]
104        </td>
105      </tr>
106      <tr>
107       <th align="right">[% 'Output Number Format' | $T8 %]</th>
108       <td>
109         [% L.select_tag('numberformat', NUMBERFORMATS, value_key = 'value', title_key = 'name') %]
110       </td>
111      </tr>
112
113      <tr>
114       <th align="right">[% 'Language' | $T8 %]</th>
115       <td>
116         [% L.select_tag('countrycode', COUNTRYCODES, value_key = 'value', title_key = 'name') %]
117       </td>
118      </tr>
119
120      <tr>
121       <th align="right">[% 'Stylesheet' | $T8 %]</th>
122       <td>
123         [% L.select_tag('usestylesheet', STYLESHEETS, value_key = 'value', title_key = 'name') %]
124       </td>
125      </tr>
126
127      <tr>
128       <th align="right">[% 'Setup Menu' | $T8 %]</th>
129       <td>
130        <select name="menustyle">
131         <option value="old"[% IF MYCONFIG.menustyle == 'old' %] selected[% END %]>[% 'Old (on the side)' | $T8 %]</option>
132         <option value="v3"[% IF MYCONFIG.menustyle == 'v3' %] selected[% END %]>[% 'Top (CSS)' | $T8 %]</option>
133         <option value="neu"[% IF MYCONFIG.menustyle == 'neu' %] selected[% END %]>[% 'Top (Javascript)' | $T8 %]</option>
134        </select>
135       </td>
136      </tr>
137
138      <tr>
139       <th align="right">[% 'Form details (second row)' | $T8 %]</th>
140       <td>
141        <select name="show_form_details">
142         <option value="1"[% IF  MYCONFIG.show_form_details %] selected[% END %]>[% 'Show by default' | $T8 %]</option>
143         <option value="0"[% IF !MYCONFIG.show_form_details %] selected[% END %]>[% 'Hide by default' | $T8 %]</option>
144        </select>
145       </td>
146      </tr>
147
148      <tr>
149       <th align="right">[% 'Show custom variable search inputs' | $T8 %]</th>
150       <td>
151        <select name="hide_cvar_search_options">
152         <option value="0"[% IF !MYCONFIG.hide_cvar_search_options %] selected[% END %]>[% 'Show by default' | $T8 %]</option>
153         <option value="1"[% IF  MYCONFIG.hide_cvar_search_options %] selected[% END %]>[% 'Hide by default' | $T8 %]</option>
154        </select>
155       </td>
156      </tr>
157
158      <tr>
159       <th align="right">[% 'Number of columns of custom variables in form details (second row)' | $T8 %]</th>
160       <td>
161         [% L.input_tag('form_cvars_nr_cols',  MYCONFIG.form_cvars_nr_cols || 3,  size = 5) %]
162       </td>
163      </tr>
164
165     </table>
166    </div>
167
168    <div id="page_print_options">
169
170     <table>
171      <input name="printer" type="hidden" value="[% HTML.escape(MYCONFIG.printer) %]">
172
173      <tr>
174       <th align="right">[% 'Default template format' | $T8 %]</th>
175       <td>
176         [% L.select_tag('template_format', TEMPLATE_FORMATS, value_key = 'value', title_key = 'name') %]
177       </td>
178      </tr>
179
180      <tr>
181       <th align="right">[% 'Default output medium' | $T8 %]</th>
182       <td>
183         [% L.select_tag('default_media', MEDIA, value_key = 'value', title_key = 'name') %]
184       </td>
185      </tr>
186
187      <tr>
188       <th align="right">[% 'Default printer' | $T8 %]</th>
189       <td>
190        [% L.select_tag('default_printer_id', PRINTERS, default = MYCONFIG.default_printer_id, title_key = 'printer_description', with_empty = 1) %]
191       </td>
192      </tr>
193
194      <tr>
195       <th align="right">[% 'Number of copies' | $T8 %]</th>
196       <td><input name="copies" size="10" value="[% HTML.escape(MYCONFIG.copies) %]"></td>
197      </tr>
198     </table>
199    </div>
200
201    <div id="page_todo_list_options">
202
203     <table>
204      <tr>
205       <th align="right">[% 'Show your TODO list after logging in' | $T8 %]</th>
206       <td colspan="2">
207        <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 %]>
208        <label for="todo_cfg_show_after_login_1">[% 'Yes' | $T8 %]</label>
209        <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 %]>
210        <label for="todo_cfg_show_after_login_0">[% 'No' | $T8 %]</label>
211       </td>
212      </tr>
213
214      <tr class="listheading">
215       <th colspan="3">[% 'Configuration of individual TODO items' | $T8 %]</th>
216      </tr>
217
218      <tr>
219       <th align="right">[% 'Show follow ups...' | $T8 %]</th>
220       <td>
221        <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 %]>
222        <label for="todo_cfg_show_follow_ups">[% '...on the TODO list' | $T8 %]</label>
223       </td>
224       <td>
225        <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 %]>
226        <label for="todo_cfg_show_follow_ups_login">[% '...after logging in' | $T8 %]</label>
227       </td>
228      </tr>
229
230      [%- IF AUTH.assert('sales_quotation_edit', 'may_fail') %]
231      <tr>
232       <th align="right">[% 'Show overdue sales quotations and requests for quotations...' | $T8 %]</th>
233       <td>
234        <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 %]>
235        <label for="todo_cfg_show_overdue_sales_quotations">[% '...on the TODO list' | $T8 %]</label>
236       </td>
237       <td>
238        <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 %]>
239        <label for="todo_cfg_show_overdue_sales_quotations_login">[% '...after logging in' | $T8 %]</label>
240       </td>
241      </tr>
242      [%- END %]
243     </table>
244    </div>
245   </div>
246  </form>
247
248  <script type="text/javascript">
249   <!--
250 $(function() {
251   $("#full_signature").toggle();
252   $("#edit_signature").toggle();
253   $('.togglelink').click(function() {
254     $('.toggletextarea').toggle();
255     $('.togglelink').toggle();
256     return false;
257   });
258 });
259     -->
260  </script>