Revert "UI verbessert: Lange Listen werden ausgeblendet"
This reverts commit 4fe0bec4ae
.
This commit is contained in:
parent
bdfa65121d
commit
897f708b1c
@ -5,21 +5,6 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="{language}">
|
<html lang="{language}">
|
||||||
<jsp:include page="template/header.jsp"/>
|
<jsp:include page="template/header.jsp"/>
|
||||||
|
|
||||||
<script type="text/javascript">
|
|
||||||
function showRows(classToHide) {
|
|
||||||
toggleRows("link_" + classToHide, "display:none");
|
|
||||||
toggleRows(classToHide, "");
|
|
||||||
}
|
|
||||||
function toggleRows(classToToggle, style) {
|
|
||||||
var titles = document.querySelectorAll("." + classToToggle);
|
|
||||||
var i = titles.length;
|
|
||||||
while (i--) {
|
|
||||||
titles[i].setAttribute("style", style);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<jsp:include page="template/navbar.jsp"/>
|
<jsp:include page="template/navbar.jsp"/>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
@ -29,45 +14,23 @@
|
|||||||
<a href="${newgroupurl}" class="btn btn-default pull-right additional-space-bottom"><fmt:message key="groups.create"/></a>
|
<a href="${newgroupurl}" class="btn btn-default pull-right additional-space-bottom"><fmt:message key="groups.create"/></a>
|
||||||
</div>
|
</div>
|
||||||
<table class="table table-hover">
|
<table class="table table-hover">
|
||||||
<tr>
|
<tr><th><fmt:message key="groups.column.name"/></th><th><fmt:message key="groups.column.members"/></th><th><fmt:message key="groups.column.operations"/></th></tr>
|
||||||
<th><fmt:message key="groups.column.name"/></th>
|
|
||||||
<th><fmt:message key="groups.column.members"/>
|
|
||||||
<a class="link_hiddenLines" onclick="showRows('hiddenLines')" style="padding: 0px 0px 0px 100px;font-weight:normal;">... show all ...</a>
|
|
||||||
</th>
|
|
||||||
<th><fmt:message key="groups.column.operations"/></th>
|
|
||||||
</tr>
|
|
||||||
<c:forEach items="${groups}" var="groupentry">
|
<c:forEach items="${groups}" var="groupentry">
|
||||||
<tr>
|
<tr>
|
||||||
<c:url var="updgroupurl" value="/group/${groupentry.key}?op=edit" />
|
<c:url var="updgroupurl" value="/group/${groupentry.key}?op=edit" />
|
||||||
<td><a href="${updgroupurl}">${groupentry.value.name}</a></td>
|
<td><a href="${updgroupurl}">${groupentry.value.name}</a></td>
|
||||||
<td>
|
<td>
|
||||||
<table>
|
<table>
|
||||||
<tbody>
|
|
||||||
<c:set var="count" value="0" scope="page" />
|
|
||||||
<c:set var="classHide" value="hiddenLines hiddenLines_${groupentry.value.name}"/>
|
|
||||||
<c:set var="classRow" value=""/>
|
|
||||||
<c:set var="styleRow" value=""/>
|
|
||||||
<c:forEach items="${groupentry.value.members}" var="userdn">
|
<c:forEach items="${groupentry.value.members}" var="userdn">
|
||||||
<c:url var="userurl" value="/user/${userdn}" />
|
<c:url var="userurl" value="/user/${userdn}" />
|
||||||
<c:set var="count" value="${count + 1}" scope="page"/>
|
<tr>
|
||||||
<c:if test="${ count eq 10 }">
|
<td style="padding: 0px 50px 0px 0px">
|
||||||
<c:set var="classRow" value="${classHide}"/>
|
|
||||||
<c:set var="styleRow" value="display:none"/>
|
|
||||||
<tr class="link_hiddenLines link_hiddenLines_${groupentry.value.name}">
|
|
||||||
<td></td>
|
|
||||||
<td colspan="2">... <a onclick="showRows('hiddenLines_${groupentry.value.name}')">show more</a> ...</td>
|
|
||||||
<td></td>
|
|
||||||
</tr>
|
|
||||||
</c:if>
|
|
||||||
<tr class="${classRow}" style="${styleRow}">
|
|
||||||
<td style="padding: 0px 30px 0px 0px">
|
|
||||||
<a href="${userurl}">${users[userdn].login}</a>
|
<a href="${userurl}">${users[userdn].login}</a>
|
||||||
</td>
|
</td>
|
||||||
<td style="padding: 0px 10px 0px 0px">${users[userdn].firstname}</td>
|
<td style="padding: 0px 10px 0px 0px">${users[userdn].firstname}</td>
|
||||||
<td>${users[userdn].lastname}</td>
|
<td>${users[userdn].lastname}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
</tbody>
|
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
<c:url var="delgroupurl" value="/group/${groupentry.key}?op=delete" />
|
<c:url var="delgroupurl" value="/group/${groupentry.key}?op=delete" />
|
||||||
|
Loading…
Reference in New Issue
Block a user