Bugfix beim Anlegen der Authentifizierungsdatenbank mit UTF-8. Anzeigen von Fehlermel...
[kivitendo-erp.git] / templates / webpages / admin / edit_user_master.html
1 [% USE HTML %]<body class="admin">
2
3  <script type="text/javascript" src="js/common.js"></script>
4  <script type="text/javascript">
5   <!--
6       function open_connection_test_window() {
7         // host name port user passwd
8         var url = "admin.pl?action=test_db_connection&" +
9           "dbhost="   + encodeURIComponent(get_input_value("dbhost"))   + "&" +
10           "dbport="   + encodeURIComponent(get_input_value("dbport"))   + "&" +
11           "dbname="   + encodeURIComponent(get_input_value("dbname"))   + "&" +
12           "dbuser="   + encodeURIComponent(get_input_value("dbuser"))   + "&" +
13           "dbpasswd=" + encodeURIComponent(get_input_value("dbpasswd")) + "&";
14
15         var parm = centerParms(400,300) + ",width=400,height=300,status=yes,scrollbars=yes";
16
17         window.open(url, "_new_generic", parm);
18       }
19     -->
20  </script>
21
22  <form name="Form" method="post" action="admin.pl">
23
24   <div class="listtop" width="100%">[% title %]</div>
25
26   <table width="100%">
27    <tr valign="top">
28     <td>
29      <table>
30       <tr>
31        <th align="right"><translate>Login</translate></th>
32        <td>[% IF edit %]<input type="hidden" name="login" value="[% HTML.escape(myc_login) %]">[% HTML.escape(myc_login) %][% ELSE %]<input name="login" value="[% HTML.escape(myc_login) %]">[% END %]</td>
33       </tr>
34
35       <tr>
36        <th align="right"><translate>Password</translate></th>
37        <td>[% IF CAN_CHANGE_PASSWORD %]<input type="password" name="new_password" size="8" value="********">[% ELSE %]********[% END %]</td>
38       </tr>
39
40       <tr>
41        <th align="right"><translate>Name</translate></th>
42        <td><input name="name" size="15" value="[% HTML.escape(myc_name) %]"></td>
43       </tr>
44
45       <tr>
46        <th align="right"><translate>E-mail</translate></th>
47        <td><input name="email" size="30" value="[% HTML.escape(myc_email) %]"></td>
48       </tr>
49
50       <tr valign="top">
51        <th align="right"><translate>Signature</translate></th>
52        <td><textarea name="signature" rows="3" cols="35">[% HTML.escape(myc_signature) %]</textarea></td>
53       </tr>
54
55       <tr>
56        <th align="right"><translate>Phone</translate></th>
57        <td><input name="tel" size="14" value="[% HTML.escape(myc_tel) %]"></td>
58       </tr>
59
60       <tr>
61        <th align="right"><translate>Fax</translate></th>
62        <td><input name="fax" size="14" value="[% HTML.escape(myc_fax) %]"></td>
63       </tr>
64
65       <tr>
66        <th align="right"><translate>Company</translate></th>
67        <td><input name="company" size="35" value="[% HTML.escape(myc_company) %]"></td>
68       </tr>
69
70       <tr valign="top">
71        <th align="right"><translate>Address</translate></th>
72        <td><textarea name="address" rows="4" cols="35">[% HTML.escape(myc_address) %]</textarea></td>
73       </tr>
74
75       <tr valign="top">
76        <th align="right"><translate>Tax number</translate></th>
77        <td><input name="taxnumber" size="14" value="[% HTML.escape(myc_taxnumber) %]"></td>
78       </tr>
79
80       <tr valign="top">
81        <th align="right"><translate>Ust-IDNr</translate></th>
82        <td><input name="co_ustid" size="14" value="[% HTML.escape(myc_co_ustid) %]"></td>
83       </tr>
84
85       <tr valign="top">
86        <th align="right"><translate>DUNS-Nr</translate></th>
87        <td><input name="duns" size="14" value="[% HTML.escape(myc_duns) %]"></td>
88       </tr>
89      </table>
90     </td>
91
92     <td>
93      <table>
94       <tr>
95        <th align="right"><translate>Date Format</translate></th>
96        <td>
97         <select name="dateformat">
98          [% FOREACH row = ALL_DATEFORMATS %]<option [% IF row.selected %]selected[% END %]>[% HTML.escape(row.format) %]</option>
99          [% END %]
100         </select>
101        </td>
102       </tr>
103
104       <tr>
105        <th align="right"><translate>Number Format</translate></th>
106        <td>
107         <select name="numberformat">
108          [% FOREACH row = ALL_NUMBERFORMATS %]<option [% IF row.selected %]selected[% END %]>[% HTML.escape(row.format) %]</option>
109          [% END %]
110         </select>
111        </td>
112       </tr>
113
114       <tr>
115        <th align="right"><translate>Dropdown Limit</translate></th>
116        <td><input name="vclimit" value="[% HTML.escape(myc_vclimit) %]"></td>
117       </tr>
118
119       <tr>
120        <th align="right"><translate>Language</translate></th>
121        <td>
122         <select name="countrycode">
123          [% FOREACH row = ALL_COUNTRYCODES %]<option value="[% HTML.escape(row.value) %]" [% IF row.selected %]selected[% END %]>[% HTML.escape(row.name) %]</option>
124          [% END %]
125         </select>
126        </td>
127       </tr>
128
129       <tr>
130        <th align="right"><translate>Stylesheet</translate></th>
131        <td>
132         <select name="userstylesheet">
133          [% FOREACH row = ALL_STYLESHEETS %]<option [% IF row.selected %]selected[% END %]>[% HTML.escape(row.name) %]</option>
134          [% END %]
135         </select>
136        </td>
137       </tr>
138
139       <tr>
140        <th align="right"><translate>Printer</translate></th>
141        <td><input name="printer" size="20" value="[% HTML.escape(myc_printer) %]"></td>
142       </tr>
143       <tr>
144        <th align="right"><translate>Use Templates</translate></th>
145        <td>
146         <select name="usetemplates">
147          [% FOREACH row = ALL_TEMPLATES %]<option [% IF row.selected %]selected[% END %]>[% HTML.escape(row.name) %]</option>
148          [% END %]
149         </select>
150        </td>
151       </tr>
152       <tr>
153        <th align="right"><translate>New Templates</translate></th>
154        <td><input name="newtemplates"></td>
155       </tr>
156       <tr>
157        <th align="right"><translate>Setup Templates</translate></th>
158        <td>
159         <select name="mastertemplates">
160          [% FOREACH row = ALL_MASTER_TEMPLATES %]<option [% IF row.selected %]selected[% END %]>[% HTML.escape(row.name) %]</option>
161          [% END %]
162         </select>
163        </td>
164       </tr>
165       <tr>
166        <th align="right"><translate>Setup Menu</translate></th>
167        <td>
168         <select name="menustyle">
169          <option value="v3"[% IF menustyle_v3 %] selected[% END %]><translate>Top (CSS)</translate></option>
170          <option value="neu"[% IF menustyle_neu %] selected[% END %]><translate>Top (Javascript)</translate></option>
171          <option value="xml"[% IF menustyle_xml %] selected[% END %]><translate>Top (XUL; only for Mozilla Firefox)</translate></option>
172          <option value="old"[% IF menustyle_old %] selected[% END %]><translate>Old (on the side)</translate></option>
173         </select>
174        </td>
175       </tr>
176
177       <input type="hidden" name="templates" value="[% HTML.escape(myc_templates) %]">
178      </table>
179     </td>
180    </tr>
181
182    <tr class="listheading">
183     <th colspan="2"><translate>Database</translate></th>
184    </tr>
185
186    <tr>
187     <td colspan="2">
188      <table>
189       <tr>
190        <th align="right"><translate>Driver</translate></th>
191        <td>PostgreSQL</td>
192        <th align="right"><translate>Host</translate></th>
193        <td><input name="dbhost" size="30" value="[% HTML.escape(myc_dbhost) %]"></td>
194       </tr>
195
196       <tr>
197        <th align="right"><translate>Dataset</translate></th>
198        <td><input name="dbname" size="15" value="[% HTML.escape(myc_dbname) %]"></td>
199        <th align="right"><translate>Port</translate></th>
200        <td><input name="dbport" size="4" value="[% HTML.escape(myc_dbport) %]"></td>
201       </tr>
202
203       <tr>
204        <th align="right"><translate>User</translate></th>
205        <td><input name="dbuser" size="15" value="[% HTML.escape(myc_dbuser) %]"></td>
206        <th align="right"><translate>Password</translate></th>
207        <td><input name="dbpasswd" type="password" size="10" value="[% HTML.escape(myc_dbpasswd) %]"></td>
208       </tr>
209
210       <tr>
211        <td colspan="2"><input type="button" class="submit" onclick="open_connection_test_window();" value="<translate>Test connection</translate>"></td>
212       </tr>
213      </table>
214     </td>
215    </tr>
216
217    <tr><td colspan="2"><hr size="3" noshade></td></tr>
218
219    <tr class="listheading">
220     <th colspan="2"><translate>WEBDAV access</translate></th>
221    </tr>
222
223    <tr>
224     <td colspan="2">
225      <table>
226       <tr>
227        <td>
228         <input name="angebote" id="angebote"class="checkbox" type="checkbox" value="1" [% IF myc_angebote %]checked[% END %]>
229         <label for="angebote">&nbsp;Angebot</label>
230        </td>
231        <td>
232         <input name="bestellungen" id="bestellungen" class="checkbox" type="checkbox" value="1" [% IF myc_bestellungen %]checked[% END %]>
233         <label for="bestellungen">&nbsp;Bestellung</label>
234        </td>
235        <td>
236         <input name="rechnungen" id="rechnungen" class="checkbox" type="checkbox" value="1" [% IF myc_rechnung %]checked[% END %]>
237         <label for="rechnungen">&nbsp;Rechnung</label>
238        </td>
239       </tr>
240
241       <tr>
242        <td>
243         <input name="anfragen" id="anfragen" class="checkbox" type="checkbox" value="1" [% IF myc_anfragen %]checked[% END %]>
244         <label for="anfragen">&nbsp;Anfragen</label>
245        </td>
246        <td>
247         <input name="lieferantenbestellungen" id="lieferantenbestellungen" class="checkbox" type="checkbox" value="1" [% IF myc_lieferantenbestellungen %]checked[% END %]>
248         <label for="lieferantenbestellungen">&nbsp;Lieferantenbestellung</label>
249        </td>
250        <td>
251         <input name="einkaufsrechnungen" id="einkaufsrechnungen" class="checkbox" type="checkbox" value="1" [% IF myc_einkaufsrechnungen %]checked[% END %]>
252         <label for="einkaufsrechnungen">&nbsp;Einkaufsrechnung</label>
253        </td>
254       </tr>
255      </table>
256     </td>
257    </tr>
258
259    [% IF edit %]
260    <tr><td colspan="2"><hr size="3" noshade></td></tr>
261
262    <tr class="listheading">
263     <th colspan="2"><translate>Group membership</translate></th>
264    </tr>
265
266    <tr>
267     <td colspan="2"><translate>The user is a member in the following group(s):</translate></td>
268    </tr>
269
270    <tr>
271     <td colspan="2">[% FOREACH row = GROUPS %]<a href="admin.pl?action=edit_group&group_id=[% HTML.url(row.id) %]">[% HTML.escape(row.name) %]</a>
272      [% UNLESS loop.last %] | [% END %][% END %]</td>
273    </tr>
274    [% END %]
275
276    <tr><td colspan="2"><hr size="3" noshade></td></tr>
277
278   </table>
279
280   <input name="callback" type="hidden" value="admin.pl?action=list_users">
281
282   <input type="submit" class="submit" name="action" value="<translate>Save</translate>">
283
284   [% IF edit %]
285    <input type="submit" class="submit" name="action" value="<translate>Delete</translate>">
286    <input type="hidden" name="edit" value="1">
287   [% END %]
288
289  </form>
290
291 </body>
292 </html>