t00-multiuser/server/templates/admin/parties.ejs
2024-09-26 00:47:08 +01:00

45 lines
No EOL
1.1 KiB
Text

<%- include("../base/header", { title: "Party 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>Party Management</a></li>
</ol>
</nav>
</div>
</div>
<div class="row">
<div class="col">
<h1>Party Management</h1>
</div>
</div>
<div class="row my-5">
<div class="col">
<table class="table table-striped">
<thead>
<th>#</th>
<th>Party Ref</th>
<th>Name</th>
<th>&nbsp;</th>
</thead>
<tbody>
<% for (const party of parties) { %>
<tr>
<td><%= party.Id %></td>
<td><%= "redacted" %></td>
<td><%= party.Name %></td>
<td class="text-end">
<a class="btn btn-sm btn-primary" href="/admin/user?id=<%= party.Id %>">Edit</a>
<a class="btn btn-sm btn-danger" href="/admin/userdelete?id=<%= party.Id %>">Delete</a>
</td>
</tr>
<% } %>
</tbody>
</table>
</div>
</div>
<%- include("../base/footer") %>