Verwaltung von LDAP Accounts und Gruppen
Michael Dollinger
2021-01-22 71275eea565cb5416dcbdbd1e9fb77885a6a0cb8
„src/main/webapp/users.jsp“ ändern

Die Gruppe "login" ist jetzt in einer eigenen Spalte.
Dadurch sind jetzt die meisten Einträge einzeilig:
1 files modified
31 ■■■■ changed files
src/main/webapp/users.jsp 31 ●●●● patch | view | raw | blame | history
src/main/webapp/users.jsp
@@ -14,23 +14,42 @@
            <a href="${newuserurl}" class="btn btn-default pull-right additional-space-bottom"><fmt:message key="users.create"/></a>
        </div>
        <table class="table table-hover">
            <tr><th><fmt:message key="users.column.login"/></th><th><fmt:message key="users.column.firstname"/></th><th><fmt:message key="users.column.lastname"/></th><th><fmt:message key="users.column.groups"/></th><th><fmt:message key="users.column.operations"/></th></tr>
            <tr>
                <th><fmt:message key="users.column.login"/></th>
                <th><fmt:message key="users.column.firstname"/></th>
                <th><fmt:message key="users.column.lastname"/></th>
                <th colspan="2"><fmt:message key="users.column.groups"/></th>
                <th><fmt:message key="users.column.operations"/></th>
            </tr>
            <c:forEach items="${users}" var="userentry">
                <tr>
                    <td>${userentry.value.login}</td>
                    <c:url var="upduserurl" value="/user/${userentry.key}?op=edit"/>
                    <td><a href="${upduserurl}">${userentry.value.login}</a></td>
                    <td>${userentry.value.firstname}</td>
                    <td>${userentry.value.lastname}</td>
                    <td>
                        <ul>
                        <c:forEach items="${userentry.value.groups}" var="groupdn">
                            <c:url var="groupurl" value="/group/${groupdn}"/>
                            <li><a href="${groupurl}">${groups[groupdn].name}</a></li>
                            <c:if test="${ groups[groupdn].name eq 'login' }">
                                <a href="${groupurl}">${groups[groupdn].name}</a>
                            </c:if>
                        </c:forEach>
                        </ul>
                    </td>
                    <c:url var="upduserurl" value="/user/${userentry.key}?op=edit"/>
                    <td>
                        <c:forEach items="${userentry.value.groups}" var="groupdn">
                            <c:url var="groupurl" value="/group/${groupdn}"/>
                            <c:if test="${ groups[groupdn].name ne 'login' }">
                                <a href="${groupurl}">${groups[groupdn].name}</a><br/>
                            </c:if>
                        </c:forEach>
                        </ul>
                    </td>
                    <c:url var="deluserurl" value="/user/${userentry.key}?op=delete"/>
                    <td><a href="${upduserurl}"><fmt:message key="users.operations.edit"/></a> <a href="${deluserurl}"><fmt:message key="users.operations.delete"/></a></td>
                    <td><a href="${deluserurl}"><fmt:message key="users.operations.delete"/></a></td>
                </tr>
            </c:forEach>
        </table>