Rev 950 | Rev 961 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 950 | Rev 958 | ||
---|---|---|---|
1 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> |
1 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> |
2 | <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> |
2 | <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> |
3 | <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> |
3 | <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> |
4 | <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> |
4 | <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> |
5 | <%@ taglib uri="/WEB-INF/ak-backpath.tld" prefix="backpath" %> |
5 | <%@ taglib uri="/WEB-INF/ak-backpath.tld" prefix="backpath" %> |
- | 6 | <%@ taglib uri="/WEB-INF/ak-strutsx.tld" prefix="strutsx" %> |
|
6 | <%@ taglib uri="/WEB-INF/hostadmiral-core.tld" prefix="core" %> |
7 | <%@ taglib uri="/WEB-INF/hostadmiral-core.tld" prefix="core" %> |
7 | <html> |
8 | <html> |
8 | 9 | ||
9 | <head> |
10 | <head> |
10 | <meta http-equiv="expires" content="0"> |
11 | <meta http-equiv="expires" content="0"> |
11 | <title><bean:message key="ak.hostadmiral.page.user.edit.title" /></title> |
12 | <title><bean:message key="ak.hostadmiral.page.user.edit.title" /></title> |
- | 13 | <link rel="stylesheet" type="text/css" href="<strutsx:root />/style/general.css"> |
|
12 | </head> |
14 | </head> |
13 | 15 | ||
14 | <body> |
16 | <body> |
15 | 17 | ||
16 | <h1><bean:message key="ak.hostadmiral.page.user.edit.title" /></h1> |
18 | <h1><bean:message key="ak.hostadmiral.page.user.edit.title" /></h1> |
17 | 19 | ||
- | 20 | <strutsx:errorsIterator id="errors" /> |
|
- | 21 | <strutsx:notEmpty name="errors"> |
|
- | 22 | <div class="error"><bean:message key="ak.hostadmiral.page.general.errors" />: |
|
- | 23 | <ul> |
|
- | 24 | <logic:iterate name="errors" id="error"> |
|
- | 25 | <li><strutsx:message name="error" property="key" valuesProperty="values" /></li> |
|
- | 26 | </logic:iterate> |
|
- | 27 | </ul> |
|
- | 28 | </div> |
|
18 | <html:errors/> |
29 | </strutsx:notEmpty> |
19 | 30 | ||
20 | <html:form action="/user/submit"> |
31 | <html:form action="/user/submit"> |
21 | <backpath:current /> |
32 | <backpath:current /> |
22 | <html:hidden property="id" /> |
33 | <html:hidden property="id" /> |
23 | 34 | ||
24 | <table border=1> |
35 | <table border=1> |
25 | <tr> |
36 | <tr> |
26 | <th><bean:message key="ak.hostadmiral.page.user.edit.login" /></th> |
37 | <th><bean:message key="ak.hostadmiral.page.user.edit.login" /></th> |
27 | <td><html:text property="login" /></td> |
38 | <td><html:text property="login" /></td> |
28 | </tr> |
39 | </tr> |
29 | <tr> |
40 | <tr> |
30 | <th><bean:message key="ak.hostadmiral.page.user.edit.password" /></th> |
41 | <th><bean:message key="ak.hostadmiral.page.user.edit.password" /></th> |
31 | <td><html:password property="password" redisplay="false" /></td> |
42 | <td><html:password property="password" redisplay="false" /></td> |
32 | </tr> |
43 | </tr> |
33 | <tr> |
44 | <tr> |
34 | <th><bean:message key="ak.hostadmiral.page.user.edit.password_again" /></th> |
45 | <th><bean:message key="ak.hostadmiral.page.user.edit.password_again" /></th> |
35 | <td><html:password property="password2" redisplay="false" /></td> |
46 | <td><html:password property="password2" redisplay="false" /></td> |
36 | </tr> |
47 | </tr> |
37 | <tr> |
48 | <tr> |
38 | <th><bean:message key="ak.hostadmiral.page.user.edit.boss" /></th> |
49 | <th><bean:message key="ak.hostadmiral.page.user.edit.boss" /></th> |
39 | <td> |
50 | <td> |
40 | <html:select property="boss"> |
51 | <html:select property="boss"> |
41 | <html:option value="" key="ak.hostadmiral.page.user.edit.boss.empty"/> |
52 | <html:option value="" key="ak.hostadmiral.page.user.edit.boss.empty"/> |
42 | <core:options collection="users" property="id" /> |
53 | <core:options collection="users" property="id" /> |
43 | </html:select> |
54 | </html:select> |
44 | </td> |
55 | </td> |
45 | </tr> |
56 | </tr> |
46 | <tr> |
57 | <tr> |
47 | <th><bean:message key="ak.hostadmiral.page.user.edit.superuser" /></th> |
58 | <th><bean:message key="ak.hostadmiral.page.user.edit.superuser" /></th> |
48 | <td> |
59 | <td> |
49 | <core:rights name="u" method="mayChangeSuperuser"> |
60 | <core:rights name="u" method="mayChangeSuperuser"> |
50 | <html:checkbox property="superuser" /> |
61 | <html:checkbox property="superuser" /> |
51 | </core:rights> |
62 | </core:rights> |
52 | <core:noRights name="u" method="mayChangeSuperuser"> |
63 | <core:noRights name="u" method="mayChangeSuperuser"> |
53 | <logic:equal name="u" property="superuser" value="true"> |
64 | <logic:equal name="u" property="superuser" value="true"> |
54 | <bean:message key="ak.hostadmiral.page.user.edit.superuser.true" /> |
65 | <bean:message key="ak.hostadmiral.page.user.edit.superuser.true" /> |
55 | </logic:equal> |
66 | </logic:equal> |
56 | <logic:notEqual name="u" property="superuser" value="true"> |
67 | <logic:notEqual name="u" property="superuser" value="true"> |
57 | <bean:message key="ak.hostadmiral.page.user.edit.superuser.false" /> |
68 | <bean:message key="ak.hostadmiral.page.user.edit.superuser.false" /> |
58 | </logic:notEqual> |
69 | </logic:notEqual> |
59 | </core:noRights> |
70 | </core:noRights> |
60 | </td> |
71 | </td> |
61 | </tr> |
72 | </tr> |
62 | <tr> |
73 | <tr> |
63 | <th><bean:message key="ak.hostadmiral.page.user.edit.locale" /></th> |
74 | <th><bean:message key="ak.hostadmiral.page.user.edit.locale" /></th> |
64 | <td> |
75 | <td> |
65 | <html:select property="locale"> |
76 | <html:select property="locale"> |
66 | <core:localeOptions /> |
77 | <core:localeOptions /> |
67 | </html:select> |
78 | </html:select> |
68 | </td> |
79 | </td> |
69 | </tr> |
80 | </tr> |
70 | <tr> |
81 | <tr> |
71 | <th><bean:message key="ak.hostadmiral.page.user.edit.enabled" /></th> |
82 | <th><bean:message key="ak.hostadmiral.page.user.edit.enabled" /></th> |
72 | <td><html:checkbox property="enabled" /></td> |
83 | <td><html:checkbox property="enabled" /></td> |
73 | </tr> |
84 | </tr> |
74 | <tr> |
85 | <tr> |
75 | <th><bean:message key="ak.hostadmiral.page.user.edit.comment" /></th> |
86 | <th><bean:message key="ak.hostadmiral.page.user.edit.comment" /></th> |
76 | <td><html:textarea property="comment" /></td> |
87 | <td><html:textarea property="comment" /></td> |
77 | </tr> |
88 | </tr> |
78 | <tr> |
89 | <tr> |
79 | <td colspan=2> |
90 | <td colspan=2> |
80 | <html:submit><bean:message key="ak.hostadmiral.page.user.edit.submit" /></html:submit> |
91 | <html:submit><bean:message key="ak.hostadmiral.page.user.edit.submit" /></html:submit> |
81 | <backpath:backlink><bean:message key="ak.hostadmiral.page.user.edit.back" /></backpath:backlink> |
92 | <backpath:backlink><bean:message key="ak.hostadmiral.page.user.edit.back" /></backpath:backlink> |
82 | </td> |
93 | </td> |
83 | </tr> |
94 | </tr> |
84 | </table> |
95 | </table> |
85 | 96 | ||
86 | </html:form> |
97 | </html:form> |
87 | 98 | ||
88 | <p> |
99 | <p> |
89 | <backpath:link action="/user/logins" paramId="id" paramName="u" paramProperty="id"><bean:message key="ak.hostadmiral.page.user.edit.logins" /></backpath:link> |
100 | <backpath:link action="/user/logins" paramId="id" paramName="u" paramProperty="id"><bean:message key="ak.hostadmiral.page.user.edit.logins" /></backpath:link> |
90 | </p> |
101 | </p> |
91 | 102 | ||
92 | </body> |
103 | </body> |
93 | 104 | ||
94 | </html> |
105 | </html> |