Subversion Repositories general

Rev

Rev 1014 | 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"     %>
1028 dev 8
<%@ taglib uri="/WEB-INF/hostadmiral-list.tld" prefix="list"     %>
9
<backpath:init backPathIgnore="pg" />
920 dev 10
<html>
11
 
12
<head>
13
	<meta http-equiv="expires" content="0">
924 dev 14
	<title><bean:message key="ak.hostadmiral.page.user.list.title" /></title>
958 dev 15
	<link rel="stylesheet" type="text/css" href="<strutsx:root />/style/general.css">
920 dev 16
</head>
17
 
18
<body>
19
 
924 dev 20
<h1><bean:message key="ak.hostadmiral.page.user.list.title" /></h1>
920 dev 21
 
958 dev 22
<strutsx:errorsIterator id="errors" />
23
<strutsx:notEmpty name="errors">
24
	<div class="error"><bean:message key="ak.hostadmiral.page.general.errors" />:
25
		<ul>
26
		<logic:iterate name="errors" id="error">
27
			<li><strutsx:message name="error" property="key" valuesProperty="values" /></li>
28
		</logic:iterate>
29
		</ul>
30
	</div>
31
</strutsx:notEmpty>
920 dev 32
 
33
<table border=1>
34
	<tr>
924 dev 35
		<th><bean:message key="ak.hostadmiral.page.user.list.login" /></th>
36
		<th><bean:message key="ak.hostadmiral.page.user.list.boss" /></th>
37
		<th><bean:message key="ak.hostadmiral.page.user.list.superuser" /></th>
38
		<th><bean:message key="ak.hostadmiral.page.user.list.enabled" /></th>
920 dev 39
		<th>&nbsp;</th>
40
		<th>&nbsp;</th>
41
	</tr>
42
 
43
<logic:iterate name="users" id="u">
44
	<tr>
45
		<td><bean:write name="u" property="login" /></td>
46
		<td>
47
			<logic:present name="u" property="boss">
48
				<bean:write name="u" property="boss.login" />
49
			</logic:present>
50
			<logic:notPresent name="u" property="boss">
51
				&nbsp;
52
			</logic:notPresent>
53
		</td>
54
		<td>
55
			<logic:equal name="u" property="superuser" value="true">x</logic:equal>
56
			<logic:notEqual name="u" property="superuser" value="true">&nbsp;</logic:notEqual>
57
		</td>
58
		<td>
59
			<logic:equal name="u" property="enabled" value="true">x</logic:equal>
60
			<logic:notEqual name="u" property="enabled" value="true">&nbsp;</logic:notEqual>
61
		</td>
62
		<td>
63
			<core:editable name="u">
924 dev 64
				<backpath:link action="/user/edit" paramId="id" paramName="u" paramProperty="id"><bean:message key="ak.hostadmiral.page.user.list.edit" /></backpath:link>
920 dev 65
			</core:editable>
66
			<core:notEditable name="u">
950 dev 67
				<core:rights name="u" method="partEditableBy">
68
					<backpath:link action="/user/partedit" paramId="id" paramName="u" paramProperty="id"><bean:message key="ak.hostadmiral.page.user.list.partedit" /></backpath:link>
69
				</core:rights>
70
				<core:noRights name="u" method="partEditableBy">
71
					<core:viewable name="u">
72
						<backpath:link action="/user/edit" paramId="id" paramName="u" paramProperty="id"><bean:message key="ak.hostadmiral.page.user.list.view" /></backpath:link>
73
					</core:viewable>
74
					<core:notViewable name="u">
75
						&nbsp;
76
					</core:notViewable>
77
				</core:noRights>
920 dev 78
			</core:notEditable>
79
		</td>
80
		<td>
81
			<core:deleteable name="u">
949 dev 82
				<backpath:link action="/user/deleting" paramId="id" paramName="u" paramProperty="id"><bean:message key="ak.hostadmiral.page.user.list.delete" /></backpath:link>
920 dev 83
			</core:deleteable>
84
			<core:notDeleteable name="u">
85
				&nbsp;
86
			</core:notDeleteable>
87
		</td>
88
	</tr>
89
</logic:iterate>
90
</table>
91
 
1028 dev 92
<p>
93
	List size: <bean:write name="listInfo" property="size" />
94
	Page: <list:currentpage infoBean="listInfo" /> of <bean:write name="listInfo" property="totalPages" />
95
</p>
96
<p>
97
	<list:hasfirst infoBean="listInfo"><list:firstpage infoBean="listInfo">&lt;&lt;</list:firstpage></list:hasfirst>
98
	<list:nofirst infoBean="listInfo">&lt;&lt;</list:nofirst>
99
 
100
	<list:hasprev infoBean="listInfo"><list:prevpage infoBean="listInfo">&lt;</list:prevpage></list:hasprev>
101
	<list:noprev infoBean="listInfo">&lt;</list:noprev>
102
 
103
	<list:iterate infoBean="listInfo" max="20">
104
		<list:iscurrent>
105
			<list:displaypage />
106
		</list:iscurrent>
107
		<list:notcurrent>
108
			<list:pagelink><list:displaypage /></list:pagelink>
109
		</list:notcurrent>
110
	</list:iterate>
111
 
112
	<list:hasnext infoBean="listInfo"><list:nextpage infoBean="listInfo">&gt;</list:nextpage></list:hasnext>
113
	<list:nonext infoBean="listInfo">&gt;</list:nonext>
114
 
115
	<list:haslast infoBean="listInfo"><list:lastpage infoBean="listInfo">&gt;&gt;</list:lastpage></list:haslast>
116
	<list:nolast infoBean="listInfo">&gt;&gt;</list:nolast>
117
</p>
118
 
1010 dev 119
<logic:equal name="allowedToCreate" value="true">
120
	<backpath:link action="/user/edit"><bean:message key="ak.hostadmiral.page.user.list.add" /></backpath:link>
121
	<br>
122
</logic:equal>
123
<logic:equal name="mayViewAllLogins" value="true">
124
	<backpath:link action="/user/failedLogins"><bean:message key="ak.hostadmiral.page.user.list.logins.failed" /></backpath:link>
125
	<br>
126
</logic:equal>
924 dev 127
<backpath:backlink><bean:message key="ak.hostadmiral.page.user.list.back" /></backpath:backlink>
920 dev 128
 
1028 dev 129
<p>
1014 dev 130
	<bean:message key="ak.hostadmiral.page.general.version" />:
131
	<bean:write name="projectVersion" />
132
</p>
133
 
920 dev 134
</body>
135
 
136
</html>