Subversion Repositories general

Rev

Rev 1010 | Rev 1028 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1014 dev 1
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
920 dev 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.list.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.list.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
<table border=1>
32
	<tr>
924 dev 33
		<th><bean:message key="ak.hostadmiral.page.user.list.login" /></th>
34
		<th><bean:message key="ak.hostadmiral.page.user.list.boss" /></th>
35
		<th><bean:message key="ak.hostadmiral.page.user.list.superuser" /></th>
36
		<th><bean:message key="ak.hostadmiral.page.user.list.enabled" /></th>
920 dev 37
		<th>&nbsp;</th>
38
		<th>&nbsp;</th>
39
	</tr>
40
 
41
<logic:iterate name="users" id="u">
42
	<tr>
43
		<td><bean:write name="u" property="login" /></td>
44
		<td>
45
			<logic:present name="u" property="boss">
46
				<bean:write name="u" property="boss.login" />
47
			</logic:present>
48
			<logic:notPresent name="u" property="boss">
49
				&nbsp;
50
			</logic:notPresent>
51
		</td>
52
		<td>
53
			<logic:equal name="u" property="superuser" value="true">x</logic:equal>
54
			<logic:notEqual name="u" property="superuser" value="true">&nbsp;</logic:notEqual>
55
		</td>
56
		<td>
57
			<logic:equal name="u" property="enabled" value="true">x</logic:equal>
58
			<logic:notEqual name="u" property="enabled" value="true">&nbsp;</logic:notEqual>
59
		</td>
60
		<td>
61
			<core:editable name="u">
924 dev 62
				<backpath:link action="/user/edit" paramId="id" paramName="u" paramProperty="id"><bean:message key="ak.hostadmiral.page.user.list.edit" /></backpath:link>
920 dev 63
			</core:editable>
64
			<core:notEditable name="u">
950 dev 65
				<core:rights name="u" method="partEditableBy">
66
					<backpath:link action="/user/partedit" paramId="id" paramName="u" paramProperty="id"><bean:message key="ak.hostadmiral.page.user.list.partedit" /></backpath:link>
67
				</core:rights>
68
				<core:noRights name="u" method="partEditableBy">
69
					<core:viewable name="u">
70
						<backpath:link action="/user/edit" paramId="id" paramName="u" paramProperty="id"><bean:message key="ak.hostadmiral.page.user.list.view" /></backpath:link>
71
					</core:viewable>
72
					<core:notViewable name="u">
73
						&nbsp;
74
					</core:notViewable>
75
				</core:noRights>
920 dev 76
			</core:notEditable>
77
		</td>
78
		<td>
79
			<core:deleteable name="u">
949 dev 80
				<backpath:link action="/user/deleting" paramId="id" paramName="u" paramProperty="id"><bean:message key="ak.hostadmiral.page.user.list.delete" /></backpath:link>
920 dev 81
			</core:deleteable>
82
			<core:notDeleteable name="u">
83
				&nbsp;
84
			</core:notDeleteable>
85
		</td>
86
	</tr>
87
</logic:iterate>
88
</table>
89
 
1010 dev 90
<logic:equal name="allowedToCreate" value="true">
91
	<backpath:link action="/user/edit"><bean:message key="ak.hostadmiral.page.user.list.add" /></backpath:link>
92
	<br>
93
</logic:equal>
94
<logic:equal name="mayViewAllLogins" value="true">
95
	<backpath:link action="/user/failedLogins"><bean:message key="ak.hostadmiral.page.user.list.logins.failed" /></backpath:link>
96
	<br>
97
</logic:equal>
924 dev 98
<backpath:backlink><bean:message key="ak.hostadmiral.page.user.list.back" /></backpath:backlink>
920 dev 99
 
1014 dev 100
<p>	
101
	<bean:message key="ak.hostadmiral.page.general.version" />:
102
	<bean:write name="projectVersion" />
103
</p>
104
 
920 dev 105
</body>
106
 
107
</html>