Rev 918 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 918 | Rev 920 | ||
---|---|---|---|
Line 1... | Line 1... | ||
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/hostcaptain-core.tld" prefix="core" %> |
6 | <%@ taglib uri="/WEB-INF/hostcaptain-core.tld" prefix="core" %> |
7 | <html> |
7 | <html> |
8 | 8 | ||
9 | <head> |
9 | <head> |
10 | <meta http-equiv="expires" content="0"> |
10 | <meta http-equiv="expires" content="0"> |
11 | <title><bean:message key="ak.hostcaptain.page.user.edit.title" /></title> |
11 | <title><bean:message key="ak.hostcaptain.page.user.edit.title" /></title> |
12 | </head> |
12 | </head> |
13 | 13 | ||
14 | <body> |
14 | <body> |
15 | 15 | ||
16 | <h1><bean:message key="ak.hostcaptain.page.user.edit.title" /></h1> |
16 | <h1><bean:message key="ak.hostcaptain.page.user.edit.title" /></h1> |
17 | 17 | ||
18 | <html:errors/> |
18 | <html:errors/> |
19 | 19 | ||
20 | <html:form action="/user/submit"> |
20 | <html:form action="/user/submit"> |
21 | <backpath:current /> |
21 | <backpath:current /> |
22 | <html:hidden property="id" /> |
22 | <html:hidden property="id" /> |
23 | 23 | ||
24 | <table border=1> |
24 | <table border=1> |
25 | <tr> |
25 | <tr> |
26 | <th><bean:message key="ak.hostcaptain.page.user.edit.login" /></th> |
26 | <th><bean:message key="ak.hostcaptain.page.user.edit.login" /></th> |
27 | <td><html:text property="login" /></td> |
27 | <td><html:text property="login" /></td> |
28 | </tr> |
28 | </tr> |
29 | <tr> |
29 | <tr> |
30 | <th><bean:message key="ak.hostcaptain.page.user.edit.password" /></th> |
30 | <th><bean:message key="ak.hostcaptain.page.user.edit.password" /></th> |
31 | <td><html:password property="password" redisplay="false" /></td> |
31 | <td><html:password property="password" redisplay="false" /></td> |
32 | </tr> |
32 | </tr> |
33 | <tr> |
33 | <tr> |
34 | <th><bean:message key="ak.hostcaptain.page.user.edit.password_again" /></th> |
34 | <th><bean:message key="ak.hostcaptain.page.user.edit.password_again" /></th> |
35 | <td><html:password property="password2" redisplay="false" /></td> |
35 | <td><html:password property="password2" redisplay="false" /></td> |
36 | </tr> |
36 | </tr> |
37 | <tr> |
37 | <tr> |
38 | <th><bean:message key="ak.hostcaptain.page.user.edit.boss" /></th> |
38 | <th><bean:message key="ak.hostcaptain.page.user.edit.boss" /></th> |
39 | <td> |
39 | <td> |
40 | <html:select property="boss"> |
40 | <html:select property="boss"> |
41 | <html:option value="" key="ak.hostcaptain.page.user.edit.boss.empty"/> |
41 | <html:option value="" key="ak.hostcaptain.page.user.edit.boss.empty"/> |
42 | <core:options collection="users" property="id" /> |
42 | <core:options collection="users" property="id" /> |
43 | </html:select> |
43 | </html:select> |
44 | </td> |
44 | </td> |
45 | </tr> |
45 | </tr> |
46 | <tr> |
46 | <tr> |
47 | <th><bean:message key="ak.hostcaptain.page.user.edit.superuser" /></th> |
47 | <th><bean:message key="ak.hostcaptain.page.user.edit.superuser" /></th> |
48 | <td> |
48 | <td> |
49 | <core:rights name="u" method="mayChangeSuperuser"> |
49 | <core:rights name="u" method="mayChangeSuperuser"> |
50 | <html:checkbox property="superuser" /> |
50 | <html:checkbox property="superuser" /> |
51 | </core:rights> |
51 | </core:rights> |
52 | <core:noRights name="u" method="mayChangeSuperuser"> |
52 | <core:noRights name="u" method="mayChangeSuperuser"> |
53 | <logic:equal name="u" property="superuser" value="true"> |
53 | <logic:equal name="u" property="superuser" value="true"> |
54 | <bean:message key="ak.hostcaptain.page.user.edit.superuser.true" /> |
54 | <bean:message key="ak.hostcaptain.page.user.edit.superuser.true" /> |
55 | </logic:equal> |
55 | </logic:equal> |
56 | <logic:notEqual name="u" property="superuser" value="true"> |
56 | <logic:notEqual name="u" property="superuser" value="true"> |
57 | <bean:message key="ak.hostcaptain.page.user.edit.superuser.false" /> |
57 | <bean:message key="ak.hostcaptain.page.user.edit.superuser.false" /> |
58 | </logic:notEqual> |
58 | </logic:notEqual> |
59 | </core:noRights> |
59 | </core:noRights> |
60 | </td> |
60 | </td> |
61 | </tr> |
61 | </tr> |
62 | <tr> |
62 | <tr> |
63 | <th><bean:message key="ak.hostcaptain.page.user.edit.enabled" /></th> |
63 | <th><bean:message key="ak.hostcaptain.page.user.edit.enabled" /></th> |
64 | <td><html:checkbox property="enabled" /></td> |
64 | <td><html:checkbox property="enabled" /></td> |
65 | </tr> |
65 | </tr> |
66 | <tr> |
66 | <tr> |
67 | <th><bean:message key="ak.hostcaptain.page.user.edit.comment" /></th> |
67 | <th><bean:message key="ak.hostcaptain.page.user.edit.comment" /></th> |
68 | <td><html:textarea property="comment" /></td> |
68 | <td><html:textarea property="comment" /></td> |
69 | </tr> |
69 | </tr> |
70 | <tr> |
70 | <tr> |
71 | <td colspan=2> |
71 | <td colspan=2> |
72 | <html:submit><bean:message key="ak.hostcaptain.page.user.edit.submit" /></html:submit> |
72 | <html:submit><bean:message key="ak.hostcaptain.page.user.edit.submit" /></html:submit> |
73 | <backpath:backlink><bean:message key="ak.hostcaptain.page.user.edit.back" /></backpath:backlink> |
73 | <backpath:backlink><bean:message key="ak.hostcaptain.page.user.edit.back" /></backpath:backlink> |
74 | </td> |
74 | </td> |
75 | </tr> |
75 | </tr> |
76 | </table> |
76 | </table> |
77 | 77 | ||
78 | </html:form> |
78 | </html:form> |
79 | 79 | ||
80 | </body> |
80 | </body> |
81 | 81 | ||
82 | </html> |
82 | </html> |