Subversion Repositories general

Rev

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