Subversion Repositories general

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
920 dev 1
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
2
<%@ taglib uri="/WEB-INF/struts-bean.tld"      prefix="bean"     %>
3
<%@ taglib uri="/WEB-INF/struts-logic.tld"     prefix="logic"    %>
4
<%@ taglib uri="/WEB-INF/struts-html.tld"      prefix="html"     %>
5
<%@ taglib uri="/WEB-INF/ak-backpath.tld"      prefix="backpath" %>
958 dev 6
<%@ taglib uri="/WEB-INF/ak-strutsx.tld"       prefix="strutsx"  %>
924 dev 7
<%@ taglib uri="/WEB-INF/hostadmiral-core.tld" prefix="core"     %>
920 dev 8
<html>
9
 
10
<head>
11
	<meta http-equiv="expires" content="0">
924 dev 12
	<title><bean:message key="ak.hostadmiral.page.user.edit.title" /></title>
958 dev 13
	<link rel="stylesheet" type="text/css" href="<strutsx:root />/style/general.css">
920 dev 14
</head>
15
 
16
<body>
17
 
924 dev 18
<h1><bean:message key="ak.hostadmiral.page.user.edit.title" /></h1>
920 dev 19
 
958 dev 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>
29
</strutsx:notEmpty>
920 dev 30
 
31
<html:form action="/user/submit">
32
<backpath:current />
33
<html:hidden property="id" />
34
 
35
<table border=1>
36
	<tr>
924 dev 37
		<th><bean:message key="ak.hostadmiral.page.user.edit.login" /></th>
920 dev 38
		<td><html:text property="login" /></td>
39
    </tr>
40
	<tr>
924 dev 41
		<th><bean:message key="ak.hostadmiral.page.user.edit.password" /></th>
920 dev 42
		<td><html:password property="password" redisplay="false" /></td>
43
    </tr>
44
	<tr>
924 dev 45
		<th><bean:message key="ak.hostadmiral.page.user.edit.password_again" /></th>
920 dev 46
		<td><html:password property="password2" redisplay="false" /></td>
47
    </tr>
48
	<tr>
924 dev 49
		<th><bean:message key="ak.hostadmiral.page.user.edit.boss" /></th>
920 dev 50
		<td>
915 dev 51
			<html:select property="boss">
924 dev 52
				<html:option value="" key="ak.hostadmiral.page.user.edit.boss.empty"/>
915 dev 53
				<core:options collection="users" property="id" />
920 dev 54
			</html:select>
915 dev 55
		</td>
920 dev 56
    </tr>
57
	<tr>
924 dev 58
		<th><bean:message key="ak.hostadmiral.page.user.edit.superuser" /></th>
920 dev 59
		<td>
60
			<core:rights name="u" method="mayChangeSuperuser">
61
				<html:checkbox property="superuser" />
62
			</core:rights>
63
			<core:noRights name="u" method="mayChangeSuperuser">
64
				<logic:equal name="u" property="superuser" value="true">
924 dev 65
					<bean:message key="ak.hostadmiral.page.user.edit.superuser.true" />
920 dev 66
				</logic:equal>
67
				<logic:notEqual name="u" property="superuser" value="true">
924 dev 68
				  	<bean:message key="ak.hostadmiral.page.user.edit.superuser.false" />
920 dev 69
				</logic:notEqual>
70
			</core:noRights>
918 dev 71
		</td>
920 dev 72
    </tr>
73
	<tr>
950 dev 74
		<th><bean:message key="ak.hostadmiral.page.user.edit.locale" /></th>
75
		<td>
76
			<html:select property="locale">
77
				<core:localeOptions />
78
			</html:select>
79
		</td>
80
    </tr>
81
	<tr>
924 dev 82
		<th><bean:message key="ak.hostadmiral.page.user.edit.enabled" /></th>
920 dev 83
		<td><html:checkbox property="enabled" /></td>
84
    </tr>
85
	<tr>
924 dev 86
		<th><bean:message key="ak.hostadmiral.page.user.edit.comment" /></th>
920 dev 87
		<td><html:textarea property="comment" /></td>
88
    </tr>
89
	<tr>
90
		<td colspan=2>
924 dev 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>
920 dev 93
		</td>
94
    </tr>
95
</table>
96
 
97
</html:form>
98
 
949 dev 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>
101
</p>
102
 
920 dev 103
</body>
104
 
105
</html>