diff --git a/src/routes/user/+page.svelte b/src/routes/user/+page.svelte index 5b96efa..eb3dc4d 100644 --- a/src/routes/user/+page.svelte +++ b/src/routes/user/+page.svelte @@ -4,9 +4,9 @@ import { enhance } from "$app/forms" import { page } from "$app/state" - const { data, form }: PageProps = $props() + import Permissions from "$lib/permissions" - $inspect(data) + const { data, form }: PageProps = $props() @@ -48,6 +48,69 @@ + + + + + + + + + + + + + + + + +
Berechtigungen
Benutzerverwaltung +
+ {#each Permissions.iterate(Permissions.USERADMIN) as permission} + + {/each} +
+
+ @@ -97,10 +160,23 @@ td { width: 75%; } .form3 { - width: 37.5% + width: 37.5%; } -input { +.permission-selector { + width: 100%; + justify-items: center; +} +.permission-selector > label { + display: block; + width: 100%; +} + +input[type="checkbox"] { + margin: 0px 10px; +} + +input[type="text"] { width: 100%; border: none; border-bottom: solid 1px black;