48 lines
No EOL
1.2 KiB
Text
48 lines
No EOL
1.2 KiB
Text
<%- include("../base/header", { title: "User Management", userId: session.userId, isAdmin: true }) %>
|
|
|
|
<div class="row">
|
|
<div class="col">
|
|
<nav aria-label="breadcrumb">
|
|
<ol class="breadcrumb">
|
|
<li class="breadcrumb-item"><a href="/admin">Admin</a></li>
|
|
<li class="breadcrumb-item active"><a>User Management</a></li>
|
|
</ol>
|
|
</nav>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col">
|
|
<h1>User Management</h1>
|
|
</div>
|
|
<div class="col-auto">
|
|
<a class="btn btn-primary btn-lg me-2" href="/admin/user">Add User</a>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row my-5">
|
|
<div class="col">
|
|
<table class="table table-striped">
|
|
<thead>
|
|
<th>#</th>
|
|
<th>Username</th>
|
|
<th>Permissions</th>
|
|
<th> </th>
|
|
</thead>
|
|
<tbody>
|
|
<% for (const user of users) { %>
|
|
<tr>
|
|
<td><%= user.Id %></td>
|
|
<td><%= user.Username %></td>
|
|
<td><%= user.UserLevelString %></td>
|
|
<td class="text-end text-nowrap align-middle">
|
|
<a class="btn btn-sm btn-primary" href="/admin/user?id=<%= user.Id %>">Edit</a>
|
|
<a class="btn btn-sm btn-danger" href="/admin/userdelete?id=<%= user.Id %>">Delete</a>
|
|
</td>
|
|
</tr>
|
|
<% } %>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<%- include("../base/footer") %> |