fix typo
This commit is contained in:
@@ -8,13 +8,13 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="container mx-auto p-4">
|
<div class="container mx-auto p-4">
|
||||||
<h1 class="text-2xl font-bold mb-4">User Management</h1>
|
<h1 class="mb-4 text-2xl font-bold">User Management</h1>
|
||||||
|
|
||||||
{#if hasPermission($user, 'membership.create')}
|
{#if hasPermission($user, 'membership.create')}
|
||||||
<div class="flex justify-end mb-4">
|
<div class="mb-4 flex justify-end">
|
||||||
<button class="btn btn-primary">Create User</button>
|
<button class="btn btn-primary">Create User</button>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<div class="overflow-x-auto">
|
<div class="overflow-x-auto">
|
||||||
<table class="table w-full">
|
<table class="table w-full">
|
||||||
@@ -23,8 +23,8 @@
|
|||||||
<th>Username</th>
|
<th>Username</th>
|
||||||
<th>Role</th>
|
<th>Role</th>
|
||||||
{#if hasPermission($user, 'membership.edit')}
|
{#if hasPermission($user, 'membership.edit')}
|
||||||
<th>Actions</th>
|
<th>Actions</th>
|
||||||
{/if}
|
{/if}
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@@ -32,12 +32,12 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td>{user.username}</td>
|
<td>{user.username}</td>
|
||||||
<td>{user.role.name}</td>
|
<td>{user.role.name}</td>
|
||||||
{#if hasPermission($user, 'membership.edit')}
|
{#if hasPermission(user, 'membership.edit')}
|
||||||
<td>
|
<td>
|
||||||
<button class="btn btn-sm">Edit</button>
|
<button class="btn btn-sm">Edit</button>
|
||||||
<button class="btn btn-sm btn-error">Delete</button>
|
<button class="btn btn-sm btn-error">Delete</button>
|
||||||
</td>
|
</td>
|
||||||
{/if}
|
{/if}
|
||||||
</tr>
|
</tr>
|
||||||
{/each}
|
{/each}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|||||||
Reference in New Issue
Block a user