2024-09-26 00:47:08 +01:00
|
|
|
<%- 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>
|
2024-09-28 14:31:02 +01:00
|
|
|
<div class="col-auto">
|
|
|
|
<a class="btn btn-primary btn-lg me-2" href="/admin/party">Add Party</a>
|
|
|
|
</div>
|
2024-09-26 00:47:08 +01:00
|
|
|
</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> </th>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<% for (const party of parties) { %>
|
|
|
|
<tr>
|
|
|
|
<td><%= party.Id %></td>
|
2024-09-26 00:47:45 +01:00
|
|
|
<td><%= party.PartyRef %></td>
|
2024-09-26 00:47:08 +01:00
|
|
|
<td><%= party.Name %></td>
|
2024-09-28 01:31:46 +01:00
|
|
|
<td class="text-end text-nowrap align-middle">
|
2024-09-28 14:31:02 +01:00
|
|
|
<a class="btn btn-sm btn-primary" href="/admin/party?id=<%= party.Id %>">Edit</a>
|
|
|
|
<a class="btn btn-sm btn-danger" href="/admin/deleteparty?id=<%= party.Id %>" onclick="return confirm(`Are you sure you want to delete '<%= party.Name %>'?`)">Delete</a>
|
2024-09-26 00:47:08 +01:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<% } %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-10-13 14:13:33 +01:00
|
|
|
<%- include("../base/footer", { apiKey: session.apiKey, username: session.username }) %>
|