113 lines
6.3 KiB
Plaintext
113 lines
6.3 KiB
Plaintext
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
|
|
<%@ page session="true" %>
|
|
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
|
|
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="ISO-8859-1" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<link href="<c:url value='/css/bootstrap-5.3.8.min.css' />" rel="stylesheet" />
|
|
<link href="<c:url value='/css/matrix-v2.css' />" rel="stylesheet" />
|
|
<link href="<c:url value='/css/matrix-shell-v2.css' />" rel="stylesheet" />
|
|
<script src="<c:url value='/js/bootstrap-5.3.8.bundle.min.js' />" defer></script>
|
|
<script src="<c:url value='/js/matrix-shell-v2.js' />" defer></script>
|
|
<script src="<c:url value='/js/matrix-modal-v2.js' />" defer></script>
|
|
<script src="<c:url value='/js/manage-users-v2.js' />" defer></script>
|
|
<title>Cygnus 1.0 | Manage Users</title>
|
|
<link href="/matrix/css/matrix-frame-dialog.css?v=6" rel="stylesheet" type="text/css" />
|
|
<script src="/matrix/js/matrix-frame-dialog.js?v=2" defer></script>
|
|
<script src="/matrix/js/matrix-accessibility-v1.js?v=1" defer></script>
|
|
<link href="/matrix/css/matrix-theme-v2.css?v=4" rel="stylesheet" type="text/css" />
|
|
<link href="<c:url value='/css/manage-users-v2.css?v=3' />" rel="stylesheet" />
|
|
</head>
|
|
<body class="matrix-v2 matrix-shell matrix-users"
|
|
data-user-detail-url="<c:url value='/ver/userdetail' />"
|
|
data-user-status-url="<c:url value='/ver/changeuserstatus' />">
|
|
<input type="hidden" value="${Sessvals.getUserGroupID()}" id="usgid" />
|
|
<input type="hidden" value="${Sessvals.getUserID()}" id="usid" />
|
|
|
|
<%@ include file="/WEB-INF/app/fragments/app-shell-header.jspf" %>
|
|
<%-- Shared shell owns ${Sessvals.menuHtml}. --%>
|
|
|
|
<main class="container-fluid matrix-users__content" id="mainContent">
|
|
<section class="card matrix-users__panel">
|
|
<div class="card-header matrix-users__header">
|
|
<div class="matrix-users__heading">
|
|
<img src="<c:url value='/images/optmale.png' />" alt="" />
|
|
<h1>Manage Users</h1>
|
|
</div>
|
|
<button type="button" class="matrix-users__refresh" id="refreshUsers" title="Refresh users" aria-label="Refresh users"><img src="<c:url value='/images/reload.png' />" alt="" /></button>
|
|
</div>
|
|
<div class="card-body">
|
|
<div id="userMessage" class="alert d-none py-2 px-3 mb-2" role="status"></div>
|
|
|
|
<form method="post" id="filterform" action="<c:url value='/ver/inituser' />"
|
|
class="matrix-users__toolbar">
|
|
<input type="hidden" id="suuid" name="suuid" value="${sessionScope.UUID}" />
|
|
<div class="matrix-users__search-label">
|
|
<label for="userSearch">Search users</label>
|
|
</div>
|
|
<div class="matrix-users__search-control">
|
|
<input type="search" class="form-control form-control-sm" id="userSearch"
|
|
placeholder="Login ID, name, group or status" autocomplete="off" />
|
|
</div>
|
|
<div class="matrix-users__new-action">
|
|
<button type="button" id="addUser" class="btn btn-primary btn-sm"><span aria-hidden="true">+</span> New User</button>
|
|
</div>
|
|
</form>
|
|
|
|
<div class="table-responsive matrix-users__table-wrap">
|
|
<table class="table table-sm table-hover align-middle mb-0" id="userlist">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col" class="matrix-users__serial">S.No</th>
|
|
<th scope="col">Login ID</th>
|
|
<th scope="col">Name</th>
|
|
<th scope="col">Group</th>
|
|
<th scope="col" class="text-center matrix-users__status">Status</th>
|
|
<th scope="col" class="text-center matrix-users__action">Action</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="userlistbody">
|
|
<c:forEach items="${userlist}" var="user" varStatus="status">
|
|
<tr data-user-id="${user[0]}">
|
|
<td>${status.count}</td>
|
|
<td><c:out value="${user[1]}" /></td>
|
|
<td><c:out value="${user[2]}" /></td>
|
|
<td><c:out value="${user[3]}" /></td>
|
|
<td class="text-center">
|
|
<button type="button"
|
|
class="btn btn-sm user-status ${user[4] eq 'Active' ? 'btn-success' : 'btn-outline-secondary'}"
|
|
data-active="${user[4] eq 'Active'}">
|
|
<c:out value="${user[4]}" />
|
|
</button>
|
|
</td>
|
|
<td class="text-center">
|
|
<button type="button" class="btn btn-outline-primary btn-sm edit-user"
|
|
${user[4] eq 'Active' ? '' : 'disabled'}>Edit</button>
|
|
</td>
|
|
</tr>
|
|
</c:forEach>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</main>
|
|
|
|
<div class="modal fade" id="matrixFrameModal" tabindex="-1" aria-hidden="true">
|
|
<div class="modal-dialog modal-dialog-centered matrix-frame-modal">
|
|
<div class="modal-content">
|
|
<div class="modal-header py-2">
|
|
<h2 class="modal-title fs-6">User Detail</h2>
|
|
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
|
</div>
|
|
<div class="modal-body p-0">
|
|
<iframe class="matrix-frame-modal__frame" title="User Detail"></iframe>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|