parent
06bba15fef
commit
f4cc7db018
|
|
@ -216,7 +216,8 @@ public class UsersController {
|
||||||
user.setBanned(true);
|
user.setBanned(true);
|
||||||
userRepository.save(user);
|
userRepository.save(user);
|
||||||
return String.format(
|
return String.format(
|
||||||
"redirect:%s", mvc.uri("UsersController#getUsers")
|
//"redirect:%s", mvc.uri("UsersController#getUsers")
|
||||||
|
"redirect:users-groups-roles/users"
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
userDetailsModel.addMessage(
|
userDetailsModel.addMessage(
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
<!DOCTYPE html [<!ENTITY times '×'>]>
|
<!DOCTYPE html [<!ENTITY times '×'>]>
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml"
|
<html xmlns="http://www.w3.org/1999/xhtml"
|
||||||
xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
|
xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
|
||||||
xmlns:h="http://xmlns.jcp.org/jsf/html"
|
|
||||||
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
|
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
|
||||||
xmlns:xlink="http://www.w3.org/1999/xlink">
|
xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||||
<ui:composition template="/WEB-INF/views/org/libreccm/ui/admin/users-groups-roles.xhtml">
|
<ui:composition template="/WEB-INF/views/org/libreccm/ui/admin/users-groups-roles.xhtml">
|
||||||
|
|
@ -67,8 +66,9 @@
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<c:forEach items="#{UsersTableModel.users}" var="user">
|
<c:forEach items="#{UsersTableModel.users}"
|
||||||
<tr>
|
var="user">
|
||||||
|
<tr class="#{user.banned ? 'text-muted' : ''}">
|
||||||
<td>#{user.name}</td>
|
<td>#{user.name}</td>
|
||||||
<td>#{user.givenName}</td>
|
<td>#{user.givenName}</td>
|
||||||
<td>#{user.familyName}</td>
|
<td>#{user.familyName}</td>
|
||||||
|
|
@ -93,6 +93,7 @@
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<td class="text-center action-col">
|
<td class="text-center action-col">
|
||||||
|
<c:if test="#{!user.banned}">
|
||||||
<button class="btn btn-danger"
|
<button class="btn btn-danger"
|
||||||
data-toggle="modal"
|
data-toggle="modal"
|
||||||
data-target="#confirm-disable-#{user.name}">
|
data-target="#confirm-disable-#{user.name}">
|
||||||
|
|
@ -134,17 +135,18 @@
|
||||||
<button class="btn btn-secondary"
|
<button class="btn btn-secondary"
|
||||||
data-dismiss="modal"
|
data-dismiss="modal"
|
||||||
type="button">
|
type="button">
|
||||||
#{'usersgroupsroles.users.disable.confirm.cancel'}
|
#{AdminMessages['usersgroupsroles.users.disable.confirm.cancel']}
|
||||||
</button>
|
</button>
|
||||||
<button class="btn btn-danger"
|
<button class="btn btn-danger"
|
||||||
data-dismiss="modal"
|
data-submit-confirm-dialog="#confirm-disable-#{user.name}"
|
||||||
type="submit">
|
type="submit">
|
||||||
#{'usersgroupsroles.users.disable.confirm.yes'}
|
#{AdminMessages['usersgroupsroles.users.disable.confirm.yes']}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</c:if>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,2 @@
|
||||||
import "bootstrap";
|
import "bootstrap";
|
||||||
|
|
||||||
import { initFilterables } from "./filterable-list";
|
|
||||||
|
|
||||||
document.addEventListener("DOMContentReady", event => initFilterables());
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
/**
|
||||||
|
* Not ready yet. Don' use
|
||||||
|
*/
|
||||||
|
|
||||||
export function initFilterables(): void {
|
export function initFilterables(): void {
|
||||||
document
|
document
|
||||||
.querySelectorAll("*[data-filter]")
|
.querySelectorAll("*[data-filter]")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue