„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:
parent
ee4b025c6e
commit
27b9d45e88
@ -117,8 +117,8 @@
|
|||||||
<label for="password" class="col-sm-3 control-label"><fmt:message key="users.label.password"/></label>
|
<label for="password" class="col-sm-3 control-label"><fmt:message key="users.label.password"/></label>
|
||||||
<div class="col-sm-9">
|
<div class="col-sm-9">
|
||||||
<input
|
<input
|
||||||
type="password" class="form-control" id="password" name="password"
|
type="password" autocomplete="new-password" class="form-control" id="password" name="password"
|
||||||
value="" placeholder="Enter password" autofocus>
|
value="" placeholder="Enter password" >
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -134,13 +134,31 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="membership" class="col-sm-3 control-label"><fmt:message key="users.label.memberof"/></label>
|
<label for="membership" class="col-sm-3 control-label"><fmt:message key="users.label.memberof"/></label>
|
||||||
<div class="col-sm-9" id ="membership">
|
<div class="col-sm-9" id ="membership">
|
||||||
|
<jsp:useBean id="checker" class="de.jalin.ldapadmin.beans.MembershipCheck" />
|
||||||
<c:forEach items="${groups}" var="groupentry" >
|
<c:forEach items="${groups}" var="groupentry" >
|
||||||
<div class="checkbox">
|
<jsp:setProperty property="user" name="checker" value="${user}" />
|
||||||
<jsp:useBean id="checker" class="de.jalin.ldapadmin.beans.MembershipCheck" />
|
<jsp:setProperty property="group" name="checker" value="${groupentry.value}" />
|
||||||
<jsp:setProperty property="user" name="checker" value="${user}" />
|
<c:if test="${ not empty checker.checked }">
|
||||||
<jsp:setProperty property="group" name="checker" value="${groupentry.value}" />
|
<div class="checkbox">
|
||||||
<label><input type="checkbox" id="${groupentry.value.name}" name="check_group_${groupentry.value.name}" ${checker.checked}>${groupentry.value.name}</label>
|
<label>
|
||||||
</div>
|
<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>
|
</c:forEach>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user