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