59 lines
950 B
HTML
59 lines
950 B
HTML
{include "admin/layout.html"}
|
|
|
|
{block "content"}
|
|
<h1>User Management</h1>
|
|
|
|
<p>
|
|
Total users: {#users} | Page {currentPage} of {totalPages}
|
|
</p>
|
|
|
|
{if #users > 0}
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>ID</th>
|
|
<th>Username</th>
|
|
<th>Email</th>
|
|
<th>Level</th>
|
|
<th>Class</th>
|
|
<th>Auth</th>
|
|
<th>HP</th>
|
|
<th>Actions</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{for user in users}
|
|
<tr>
|
|
<td>{user.ID}</td>
|
|
<td>{user.Username}</td>
|
|
<td>{user.Email}</td>
|
|
<td>{user.Level}</td>
|
|
<td>{user.ClassName}</td>
|
|
<td>{user.Auth}</td>
|
|
<td>{user.HP}/{user.MaxHP}</td>
|
|
<td>
|
|
<a href="/admin/users/{user.ID}">Edit</a>
|
|
</td>
|
|
</tr>
|
|
{/for}
|
|
</tbody>
|
|
</table>
|
|
|
|
{if totalPages > 1}
|
|
<div class="pagination">
|
|
{if hasPrev}
|
|
<a href="/admin/users?page={currentPage - 1}">← Previous</a>
|
|
{/if}
|
|
{if hasNext}
|
|
<a href="/admin/users?page={currentPage + 1}">Next →</a>
|
|
{/if}
|
|
</div>
|
|
{/if}
|
|
|
|
{else}
|
|
<div>
|
|
No users found.
|
|
</div>
|
|
{/if}
|
|
{/block}
|