26 --%> |
26 --%> |
27 <%@page pageEncoding="UTF-8" %> |
27 <%@page pageEncoding="UTF-8" %> |
28 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> |
28 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> |
29 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> |
29 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> |
30 |
30 |
31 <jsp:useBean id="users" type="java.util.List<de.uapcore.lightpit.entities.User>" scope="request"/> |
31 <jsp:useBean id="viewmodel" type="de.uapcore.lightpit.viewmodel.UsersView" scope="request"/> |
32 |
32 |
33 <c:if test="${empty users}"> |
33 <c:if test="${empty viewmodel.users}"> |
34 <div class="info-box"> |
34 <div class="info-box"> |
35 <fmt:message key="no-users"/> |
35 <fmt:message key="no-users"/> |
36 </div> |
36 </div> |
37 </c:if> |
37 </c:if> |
38 |
38 |
39 <div id="tool-area"> |
39 <div id="tool-area"> |
40 <a href="./teams/edit" class="button"><fmt:message key="button.create"/></a> |
40 <a href="./teams/edit" class="button"><fmt:message key="button.create"/></a> |
41 </div> |
41 </div> |
42 |
42 |
43 <c:if test="${not empty users}"> |
43 <c:if test="${not empty viewmodel.users}"> |
44 <table class="datatable medskip"> |
44 <table class="datatable medskip"> |
45 <thead> |
45 <thead> |
46 <tr> |
46 <tr> |
47 <th></th> |
47 <th></th> |
48 <th><fmt:message key="displayname"/></th> |
48 <th><fmt:message key="displayname"/></th> |
49 </tr> |
49 </tr> |
50 </thead> |
50 </thead> |
51 <tbody> |
51 <tbody> |
52 <c:forEach var="user" items="${users}"> |
52 <c:forEach var="user" items="${viewmodel.users}"> |
53 <tr> |
53 <tr> |
54 <td><a href="./teams/edit?id=${user.id}">✎</a></td> |
54 <td><a href="./teams/edit?id=${user.id}">✎</a></td> |
55 <td><c:out value="${user.displayname}"/></td> |
55 <td><c:out value="${user.displayname}"/></td> |
56 </tr> |
56 </tr> |
57 </c:forEach> |
57 </c:forEach> |