This repository has been archived by the owner on May 12, 2021. It is now read-only.
/
users.jsp
95 lines (84 loc) · 4.14 KB
/
users.jsp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<%--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
--%>
<%@ page language="java" trimDirectiveWhitespaces="true" %>
<%@ include file="/WEB-INF/jsp/includes/taglibs.jsp" %>
<fmt:setBundle basename="messages"/>
<%--@elvariable id="searchResult" type="org.apache.rave.portal.model.util.SearchResult<org.apache.rave.portal.model.JpaUser>"--%>
<fmt:message key="${pageTitleKey}" var="pagetitle"/>
<rave:navbar pageTitle="${pagetitle}"/>
<div class="container-fluid">
<div class="span2">
<rave:admin_tabsheader/>
</div>
<div class="span10">
<article>
<c:if test="${actionresult eq 'delete' or actionresult eq 'update'}">
<div class="alert alert-info">
<fmt:message key="admin.userdetail.action.${actionresult}.success"/>
</div>
</c:if>
<c:if test="${not empty message}">
<div class="alert alert-info">${message}</div>
</c:if>
<rave:admin_listheader/>
<rave:admin_paging/>
<c:if test="${searchResult.totalResults > 0}">
<table class="table table-striped table-bordered table-condensed">
<thead>
<tr>
<th><fmt:message key="admin.userdata.username"/></th>
<th><fmt:message key="admin.userdata.email"/></th>
<th><fmt:message key="admin.userdata.enabled"/></th>
</tr>
</thead>
<tbody>
<c:forEach var="user" items="${searchResult.resultSet}">
<spring:url value="/app/admin/userdetail/${user.id}" var="detaillink"/>
<tr data-detaillink="${detaillink}">
<td><a href="${detaillink}"><c:out value="${user.username}"/></a></td>
<td><c:out value="${user.email}"/></td>
<td>${user.enabled}</td>
</tr>
</c:forEach>
</tbody>
</table>
</c:if>
<rave:admin_paging/>
</article>
<div class="span6">
<a class="btn btn-success" href="<spring:url value="/app/admin/adduser"/>"><fmt:message key="admin.users.add"/></a>
<form id="userSearchForm" class="form-horizontal" action="<spring:url value="/app/admin/users/search"/>" method="get">
<fieldset>
<label for="searchTerm"><fmt:message key="admin.users.search"/></label>
<input class="search-query" type="search" id="searchTerm" name="searchTerm" value="<c:out value="${searchTerm}"/>"/>
<fmt:message key="page.store.search.button" var="searchButtonText"/>
<button class="btn btn-primary" type="submit" value="${searchButtonText}">${searchButtonText}</button>
</fieldset>
</form>
<c:if test="${not empty searchTerm}">
<a class="btn btn-success" href="<spring:url value="/app/admin/users"/>"><fmt:message key="admin.clearsearch"/></a>
</c:if>
</div>
</div>
</div>
<portal:register-init-script location="${'AFTER_RAVE'}">
<script>
$(function() {
rave.admin.initAdminUi();
});
</script>
</portal:register-init-script>