Rev 1010 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1010 | Rev 1014 | ||
---|---|---|---|
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 | <core:rights name="u" method="mayChangeBoss"> |
51 | <core:rights name="u" method="mayChangeBoss"> |
52 | <html:select property="boss"> |
52 | <html:select property="boss"> |
53 | <html:option value="" key="ak.hostadmiral.page.user.edit.boss.empty"/> |
53 | <html:option value="" key="ak.hostadmiral.page.user.edit.boss.empty"/> |
54 | <core:options collection="users" property="id" /> |
54 | <core:options collection="users" property="id" /> |
55 | </html:select> |
55 | </html:select> |
56 | </core:rights> |
56 | </core:rights> |
57 | <core:noRights name="u" method="mayChangeBoss"> |
57 | <core:noRights name="u" method="mayChangeBoss"> |
58 | <bean:write name="u" property="boss.login" /> |
58 | <bean:write name="u" property="boss.login" /> |
59 | </core:noRights> |
59 | </core:noRights> |
60 | </td> |
60 | </td> |
61 | </tr> |
61 | </tr> |
62 | <tr> |
62 | <tr> |
63 | <th><bean:message key="ak.hostadmiral.page.user.edit.superuser" /></th> |
63 | <th><bean:message key="ak.hostadmiral.page.user.edit.superuser" /></th> |
64 | <td> |
64 | <td> |
65 | <core:rights name="u" method="mayChangeSuperuser"> |
65 | <core:rights name="u" method="mayChangeSuperuser"> |
66 | <html:checkbox property="superuser" /> |
66 | <html:checkbox property="superuser" /> |
67 | </core:rights> |
67 | </core:rights> |
68 | <core:noRights name="u" method="mayChangeSuperuser"> |
68 | <core:noRights name="u" method="mayChangeSuperuser"> |
69 | <logic:equal name="u" property="superuser" value="true"> |
69 | <logic:equal name="u" property="superuser" value="true"> |
70 | <bean:message key="ak.hostadmiral.page.user.edit.superuser.true" /> |
70 | <bean:message key="ak.hostadmiral.page.user.edit.superuser.true" /> |
71 | </logic:equal> |
71 | </logic:equal> |
72 | <logic:notEqual name="u" property="superuser" value="true"> |
72 | <logic:notEqual name="u" property="superuser" value="true"> |
73 | <bean:message key="ak.hostadmiral.page.user.edit.superuser.false" /> |
73 | <bean:message key="ak.hostadmiral.page.user.edit.superuser.false" /> |
74 | </logic:notEqual> |
74 | </logic:notEqual> |
75 | </core:noRights> |
75 | </core:noRights> |
76 | </td> |
76 | </td> |
77 | </tr> |
77 | </tr> |
78 | <tr> |
78 | <tr> |
79 | <th><bean:message key="ak.hostadmiral.page.user.edit.locale" /></th> |
79 | <th><bean:message key="ak.hostadmiral.page.user.edit.locale" /></th> |
80 | <td> |
80 | <td> |
81 | <html:select property="locale"> |
81 | <html:select property="locale"> |
82 | <core:localeOptions /> |
82 | <core:localeOptions /> |
83 | </html:select> |
83 | </html:select> |
84 | </td> |
84 | </td> |
85 | </tr> |
85 | </tr> |
86 | <tr> |
86 | <tr> |
87 | <th><bean:message key="ak.hostadmiral.page.user.edit.enabled" /></th> |
87 | <th><bean:message key="ak.hostadmiral.page.user.edit.enabled" /></th> |
88 | <td><html:checkbox property="enabled" /></td> |
88 | <td><html:checkbox property="enabled" /></td> |
89 | </tr> |
89 | </tr> |
90 | <tr> |
90 | <tr> |
91 | <th><bean:message key="ak.hostadmiral.page.user.edit.comment" /></th> |
91 | <th><bean:message key="ak.hostadmiral.page.user.edit.comment" /></th> |
92 | <td><html:textarea property="comment" /></td> |
92 | <td><html:textarea property="comment" /></td> |
93 | </tr> |
93 | </tr> |
94 | <tr> |
94 | <tr> |
95 | <td colspan=2> |
95 | <td colspan=2> |
96 | <html:submit><bean:message key="ak.hostadmiral.page.user.edit.submit" /></html:submit> |
96 | <html:submit><bean:message key="ak.hostadmiral.page.user.edit.submit" /></html:submit> |
97 | <backpath:backlink><bean:message key="ak.hostadmiral.page.user.edit.back" /></backpath:backlink> |
97 | <backpath:backlink><bean:message key="ak.hostadmiral.page.user.edit.back" /></backpath:backlink> |
- | 98 | <logic:notEmpty name="u" property="id"> |
|
- | 99 | <backpath:link action="/user/logins" paramId="id" paramName="u" paramProperty="id"><bean:message key="ak.hostadmiral.page.user.edit.logins" /></backpath:link> |
|
- | 100 | </logic:notEmpty> |
|
98 | </td> |
101 | </td> |
99 | </tr> |
102 | </tr> |
100 | </table> |
103 | </table> |
101 | 104 | ||
102 | </html:form> |
105 | </html:form> |
103 | 106 | ||
104 | <p> |
107 | <p> |
105 | <backpath:link action="/user/logins" paramId="id" paramName="u" paramProperty="id"><bean:message key="ak.hostadmiral.page.user.edit.logins" /></backpath:link> |
108 | <bean:message key="ak.hostadmiral.page.general.version" />: |
- | 109 | <bean:write name="projectVersion" /> |
|
106 | </p> |
110 | </p> |
107 | 111 | ||
108 | </body> |
112 | </body> |
109 | 113 | ||
110 | </html> |
114 | </html> |