src/main/webapp/WEB-INF/jsp/users.jsp

changeset 78
bb4c52bf3439
parent 74
91d1fc2a3a14
child 82
4ec7f2600c83
equal deleted inserted replaced
77:192298f8161f 78:bb4c52bf3439
23 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 23 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 24 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 --%> 26 --%>
27 <%@page pageEncoding="UTF-8" %> 27 <%@page pageEncoding="UTF-8" %>
28 <%@page import="de.uapcore.lightpit.Constants" %>
29 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 28 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
30 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> 29 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
31
32 <c:set scope="page" var="moduleInfo" value="${requestScope[Constants.REQ_ATTR_MODULE_INFO]}"/>
33 30
34 <jsp:useBean id="users" type="java.util.List<de.uapcore.lightpit.entities.User>" scope="request"/> 31 <jsp:useBean id="users" type="java.util.List<de.uapcore.lightpit.entities.User>" scope="request"/>
35 32
36 <c:if test="${empty users}"> 33 <c:if test="${empty users}">
37 <div class="info-box"> 34 <div class="info-box">
38 <fmt:message key="no-users"/> 35 <fmt:message key="no-users"/>
39 </div> 36 </div>
40 </c:if> 37 </c:if>
41 38
42 <div id="tool-area"> 39 <div id="tool-area">
43 <a href="./${moduleInfo.modulePath}/edit" class="button"><fmt:message key="button.create"/></a> 40 <a href="./teams/edit" class="button"><fmt:message key="button.create"/></a>
44 </div> 41 </div>
45 42
46 <c:if test="${not empty users}"> 43 <c:if test="${not empty users}">
47 <table class="datatable medskip"> 44 <table class="datatable medskip">
48 <thead> 45 <thead>
52 </tr> 49 </tr>
53 </thead> 50 </thead>
54 <tbody> 51 <tbody>
55 <c:forEach var="user" items="${users}"> 52 <c:forEach var="user" items="${users}">
56 <tr> 53 <tr>
57 <td><a href="./${moduleInfo.modulePath}/edit?id=${user.id}">&#x270e;</a></td> 54 <td><a href="./teams/edit?id=${user.id}">&#x270e;</a></td>
58 <td><c:out value="${user.displayname}"/></td> 55 <td><c:out value="${user.displayname}"/></td>
59 </tr> 56 </tr>
60 </c:forEach> 57 </c:forEach>
61 </tbody> 58 </tbody>
62 </table> 59 </table>

mercurial