initial commit
This commit is contained in:
parent
2cd75e4694
commit
63d4f339e3
32
templates/admin/users.html.php
Normal file
32
templates/admin/users.html.php
Normal file
@ -0,0 +1,32 @@
|
||||
<?php include dirname(path: __DIR__) . '/_header.html.php'; ?>
|
||||
|
||||
<h2>User list</h2>
|
||||
<table>
|
||||
<tr>
|
||||
<th>Nick</th>
|
||||
<th>First</th>
|
||||
<th>Last</th>
|
||||
<th>Is Admin</th>
|
||||
<th> </th>
|
||||
</tr>
|
||||
<?php foreach ($users as $userLine): ?>
|
||||
<tr>
|
||||
<td><?= $userLine->getNick() ?></td>
|
||||
<td><?= $userLine->getFirst() ?></td>
|
||||
<td><?= $userLine->getLast() ?></td>
|
||||
<td style="text-align: center;">
|
||||
<?php if ($userLine->isAdmin()): ?>
|
||||
☑️
|
||||
<?php else: ?>
|
||||
👎
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td>
|
||||
<a href="/admin/users/<?= $userLine->getNick(); ?>">edit</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</table>
|
||||
<a href="/admin/users/add">Add User</a>
|
||||
|
||||
<?php include dirname(path: __DIR__) . '/_footer.html.php' ?>
|
Loading…
Reference in New Issue
Block a user