Refactoring: DHTML-Tab-Dialog durch Variante aus jQuery-UI ersetzt
[kivitendo-erp.git] / templates / webpages / am / config.html
1 [%- USE T8 %]
2 [%- USE LxERP %]
3 [%- USE HTML %][%- USE L %]
4  <div class="listtop">[% title %]</div>
5
6  <form method="post" action="am.pl" name="Form">
7   <input type="hidden" name="type" value="preferences">
8
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 name="signature" rows="3" cols="50">[% HTML.escape(myconfig_signature) %]</textarea></td>
44      </tr>
45
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      <tr>
56       <th align="right">[% 'Company' | $T8 %]</th>
57       <td><input name="company" size="30" value="[% HTML.escape(myconfig_company) %]"></td>
58      </tr>
59      <tr valign="top">
60       <th align="right">[% 'Address' | $T8 %]</th>
61       <td><textarea name="address" rows="4" cols="50">[% HTML.escape(myconfig_address) %]</textarea></td>
62      </tr>
63      <tr>
64       <th align="right">[% 'SEPA creditor ID' | $T8 %]</th>
65       <td><input name="sepa_creditor_id" size="30" maxlength="35" value="[% HTML.escape(myconfig_sepa_creditor_id) %]"></td>
66      </tr>
67
68        <tr>
69         <th align="right"q>[% 'taxincluded checked' | $T8 %]</th>
70         <td>
71           [% L.yes_no_tag('taxincluded_checked', myconfig_taxincluded_checked) %]
72         </td>
73       </tr>
74
75     </table>
76    </div>
77
78    <div id="page_display_options">
79
80     <table>
81      <tr>
82       <th align="right">[% 'Date Format' | $T8 %]</th>
83       <td>
84         [% L.select_tag('dateformat', DATEFORMATS, value_key = 'value', title_key = 'name') %]
85       </td>
86      </tr>
87      <tr>
88       <th align="right">[% 'Output Number Format' | $T8 %]</th>
89       <td>
90         [% L.select_tag('numberformat', NUMBERFORMATS, value_key = 'value', title_key = 'name') %]
91       </td>
92      </tr>
93
94      <tr>
95       <th align="right">[% 'Dropdown Limit' | $T8 %]</th>
96       <td><input name="vclimit" size="10" value="[% HTML.escape(myconfig_vclimit) %]"></td>
97      </tr>
98
99      <tr>
100       <th align="right">[% 'Language' | $T8 %]</th>
101       <td>
102         [% L.select_tag('countrycode', COUNTRYCODES, value_key = 'value', title_key = 'name') %]
103       </td>
104      </tr>
105
106      <tr>
107       <th align="right">[% 'Stylesheet' | $T8 %]</th>
108       <td>
109         [% L.select_tag('usestylesheet', STYLESHEETS, value_key = 'value', title_key = 'name') %]
110       </td>
111      </tr>
112
113      <tr>
114       <th align="right">[% 'Setup Menu' | $T8 %]</th>
115       <td>
116        <select name="menustyle">
117         <option value="old"[% IF myconfig_menustyle == 'old' %] selected[% END %]>[% 'Old (on the side)' | $T8 %]</option>
118         <option value="v3"[% IF myconfig_menustyle == 'v3' %] selected[% END %]>[% 'Top (CSS)' | $T8 %]</option>
119         <option value="neu"[% IF myconfig_menustyle == 'neu' %] selected[% END %]>[% 'Top (Javascript)' | $T8 %]</option>
120        </select>
121       </td>
122      </tr>
123
124      <tr>
125       <th align="right">[% 'Form details (second row)' | $T8 %]</th>
126       <td>
127        <select name="show_form_details">
128         <option value="1"[% IF  myconfig_show_form_details %] selected[% END %]>[% 'Show by default' | $T8 %]</option>
129         <option value="0"[% IF !myconfig_show_form_details %] selected[% END %]>[% 'Hide by default' | $T8 %]</option>
130        </select>
131       </td>
132      </tr>
133
134      <tr>
135       <th align="right">[% 'Show custom variable search inputs' | $T8 %]</th>
136       <td>
137        <select name="hide_cvar_search_options">
138         <option value="0"[% IF !myconfig_hide_cvar_search_options %] selected[% END %]>[% 'Show by default' | $T8 %]</option>
139         <option value="1"[% IF  myconfig_hide_cvar_search_options %] selected[% END %]>[% 'Hide by default' | $T8 %]</option>
140        </select>
141       </td>
142      </tr>
143     </table>
144    </div>
145
146    <div id="page_print_options">
147
148     <table>
149      <input name="printer" type="hidden" value="[% HTML.escape(myconfig_printer) %]">
150
151      <tr>
152       <th align="right">[% 'Default template format' | $T8 %]</th>
153       <td>
154         [% L.select_tag('template_format', TEMPLATE_FORMATS, value_key = 'value', title_key = 'name') %]
155       </td>
156      </tr>
157
158      <tr>
159       <th align="right">[% 'Default output medium' | $T8 %]</th>
160       <td>
161         [% L.select_tag('default_media', MEDIA, value_key = 'value', title_key = 'name') %]
162       </td>
163      </tr>
164
165      <tr>
166       <th align="right">[% 'Default printer' | $T8 %]</th>
167       <td>
168        [% L.select_tag('default_printer_id', PRINTERS, default = myconfig_default_printer_id, title_key = 'printer_description', with_empty = 1) %]
169       </td>
170      </tr>
171
172      <tr>
173       <th align="right">[% 'Number of copies' | $T8 %]</th>
174       <td><input name="copies" size="10" value="[% HTML.escape(myconfig_copies) %]"></td>
175      </tr>
176     </table>
177    </div>
178
179    <div id="page_todo_list_options">
180
181     <table>
182      <tr>
183       <th align="right">[% 'Show your TODO list after loggin in' | $T8 %]</th>
184       <td colspan="2">
185        <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 %]>
186        <label for="todo_cfg_show_after_login_1">[% 'Yes' | $T8 %]</label>
187        <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 %]>
188        <label for="todo_cfg_show_after_login_0">[% 'No' | $T8 %]</label>
189       </td>
190      </tr>
191
192      <tr class="listheading">
193       <th colspan="3">[% 'Configuration of individual TODO items' | $T8 %]</th>
194      </tr>
195
196      <tr>
197       <th align="right">[% 'Show follow ups...' | $T8 %]</th>
198       <td>
199        <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 %]>
200        <label for="todo_cfg_show_follow_ups">[% '...on the TODO list' | $T8 %]</label>
201       </td>
202       <td>
203        <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 %]>
204        <label for="todo_cfg_show_follow_ups_login">[% '...after loggin in' | $T8 %]</label>
205       </td>
206      </tr>
207
208      [%- IF AUTH_RIGHTS_SALES_QUOTATION_EDIT %]
209      <tr>
210       <th align="right">[% 'Show overdue sales quotations and requests for quotations...' | $T8 %]</th>
211       <td>
212        <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 %]>
213        <label for="todo_cfg_show_overdue_sales_quotations">[% '...on the TODO list' | $T8 %]</label>
214       </td>
215       <td>
216        <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 %]>
217        <label for="todo_cfg_show_overdue_sales_quotations_login">[% '...after loggin in' | $T8 %]</label>
218       </td>
219      </tr>
220      [%- END %]
221     </table>
222    </div>
223   </div>
224
225   <p><input type="submit" class="submit" name="action" value="[% 'Save' | $T8 %]"></p>
226  </form>