Fix change-password dialog, user-edit for admin
This commit is contained in:
@@ -4,7 +4,33 @@
|
||||
|
||||
<div class="mt-2">
|
||||
<h2>Hallo {current_username}</h2>
|
||||
{#if is_admin}User: {user_count}{/if}
|
||||
{#if is_admin}
|
||||
<table class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Username</th>
|
||||
<th scope="col">Raum</th>
|
||||
<th scope="col"/>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{#for user in users}
|
||||
<tr>
|
||||
<td>
|
||||
{user.username}
|
||||
</td>
|
||||
<td>
|
||||
{user.room.name}
|
||||
</td>
|
||||
<td style="width:1px; white-space:nowrap;">
|
||||
<a class="btn btn-primary btn-sm" data-bs-toggle="modal" data-bs-target="#userModal{count}" role="button">Edit</a>
|
||||
{#include user-modal.html rooms=rooms update=true id=count user=user}{/include}
|
||||
</td>
|
||||
</tr>
|
||||
{/for}
|
||||
</tbody>
|
||||
</table>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<div class="mt-2" >
|
||||
@@ -13,7 +39,7 @@
|
||||
{/if}
|
||||
<a class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#passwordModal" role="button">Passwort ändern</a>
|
||||
{#if is_admin}
|
||||
{#include user-modal.html}{/include}
|
||||
{#include user-modal.html rooms=rooms}{/include}
|
||||
{/if}
|
||||
{#include password-modal.html}{/include}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user