„src/main/webapp/user.jsp“ ändern

Die lästige Befüllung von Handy und Passwort habe ich mit autocomplete="new-password" unterbinden können
Die Gruppenliste zeigt jetzt zuerst die zugewiesenen Gruppen (Haken gesetzt) an, und danach alle anderen.
This commit is contained in:
Michael Dollinger 2021-01-22 19:27:42 +01:00
parent ee4b025c6e
commit 27b9d45e88

View File

@ -117,8 +117,8 @@
<label for="password" class="col-sm-3 control-label"><fmt:message key="users.label.password"/></label>
<div class="col-sm-9">
<input
type="password" class="form-control" id="password" name="password"
value="" placeholder="Enter password" autofocus>
type="password" autocomplete="new-password" class="form-control" id="password" name="password"
value="" placeholder="Enter password" >
</div>
</div>
<div class="form-group">
@ -134,13 +134,31 @@
<div class="form-group">
<label for="membership" class="col-sm-3 control-label"><fmt:message key="users.label.memberof"/></label>
<div class="col-sm-9" id ="membership">
<jsp:useBean id="checker" class="de.jalin.ldapadmin.beans.MembershipCheck" />
<c:forEach items="${groups}" var="groupentry" >
<div class="checkbox">
<jsp:useBean id="checker" class="de.jalin.ldapadmin.beans.MembershipCheck" />
<jsp:setProperty property="user" name="checker" value="${user}" />
<jsp:setProperty property="group" name="checker" value="${groupentry.value}" />
<label><input type="checkbox" id="${groupentry.value.name}" name="check_group_${groupentry.value.name}" ${checker.checked}>${groupentry.value.name}</label>
</div>
<jsp:setProperty property="user" name="checker" value="${user}" />
<jsp:setProperty property="group" name="checker" value="${groupentry.value}" />
<c:if test="${ not empty checker.checked }">
<div class="checkbox">
<label>
<input type="checkbox" id="${groupentry.value.name}" name="check_group_${groupentry.value.name}" ${checker.checked}>${groupentry.value.name}
</label>
</div>
</c:if>
</c:forEach>
<div class="checkbox">
------------------------------------------------------------------------------------------------
</div>
<c:forEach items="${groups}" var="groupentry" >
<jsp:setProperty property="user" name="checker" value="${user}" />
<jsp:setProperty property="group" name="checker" value="${groupentry.value}" />
<c:if test="${ empty checker.checked }">
<div class="checkbox">
<label>
<input type="checkbox" id="${groupentry.value.name}" name="check_group_${groupentry.value.name}" ${checker.checked}>${groupentry.value.name}
</label>
</div>
</c:if>
</c:forEach>
</div>
</div>