Verwaltung von LDAP Accounts und Gruppen
Peter Hormanns
2021-12-07 bdfa65121d83fbce1cbc491a5bf0dc53b5808103
Revert "Filter für Person oder Service-Account erstellt, Spalte externe mail eingeblendet"

This reverts commit af8cab1b94d5084740fb9e86c19cfe15bbf1108b.
1 files modified
25 ■■■■■ changed files
src/main/webapp/users.jsp 25 ●●●●● patch | view | raw | blame | history
src/main/webapp/users.jsp
@@ -5,28 +5,11 @@
<!DOCTYPE html>
<html lang="{language}">
<jsp:include page="template/header.jsp"/>
    <script type="text/javascript">
        function toggle(class1, class1display, class2, class2display) {
            toggleRows(class1, class1display);
            toggleRows(class2, class2display);
        }
        function toggleRows(classToToggle, style) {
            var titles = document.querySelectorAll("." + classToToggle);
            var i = titles.length;
            while (i--) {
                titles[i].setAttribute("style", style);
                }
        }
    </script>
<body>
    <jsp:include page="template/navbar.jsp"/>
    <div class="container">
        <h1><fmt:message key="users.title"/></h1>
        <div class="control-group">
            <a class="btn" onclick="toggle('type_person', '', 'type_service', 'display:none')">Only Persons</a>
            <a class="btn" onclick="toggle('type_person', 'display:none', 'type_service', '')">Only Service-Accounts</a>
            <a class="btn" onclick="toggle('type_person', '', 'type_service', '');">Show all</a>
            <c:url var="newuserurl" value="/user/?op=create" />
            <a href="${newuserurl}" class="btn btn-default pull-right additional-space-bottom"><fmt:message key="users.create"/></a>
        </div>
@@ -35,22 +18,16 @@
                <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>External mail</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">
                <c:url var="type_class" value="type_person"/>
                <c:if test="${ !userentry.value.login.contains('.') }">
                    <c:url var="type_class" value="type_service"/>
                </c:if>
                <tr class="${type_class}">
                <tr>
                    <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>${userentry.value.emailExternal}</td>
                    
                    <td>
                        <c:forEach items="${userentry.value.groups}" var="groupdn">