This commit is contained in:
Fran Jurmanović
2025-06-26 00:57:38 +02:00
parent 283de4f27c
commit a154a4953e

View File

@@ -8,13 +8,13 @@
</script>
<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')}
<div class="flex justify-end mb-4">
<div class="mb-4 flex justify-end">
<button class="btn btn-primary">Create User</button>
</div>
{/if}
{/if}
<div class="overflow-x-auto">
<table class="table w-full">
@@ -32,7 +32,7 @@
<tr>
<td>{user.username}</td>
<td>{user.role.name}</td>
{#if hasPermission($user, 'membership.edit')}
{#if hasPermission(user, 'membership.edit')}
<td>
<button class="btn btn-sm">Edit</button>
<button class="btn btn-sm btn-error">Delete</button>