diff options
Diffstat (limited to 'templates/dashboard/htmx/newuser.htmx.django')
| -rw-r--r-- | templates/dashboard/htmx/newuser.htmx.django | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/templates/dashboard/htmx/newuser.htmx.django b/templates/dashboard/htmx/newuser.htmx.django new file mode 100644 index 0000000..826dc72 --- /dev/null +++ b/templates/dashboard/htmx/newuser.htmx.django @@ -0,0 +1,26 @@ +<h1 id="page-title" class="text-sm font-medium text-zinc-100" hx-swap-oob="true">{{ PageTitle }}</h1> +<div class="slide-up flex items-start justify-center pt-12"> + <div class="glass rounded-xl glow-border w-full max-w-lg"> + <div class="px-5 py-4 border-b border-white/[0.04]"> + <h2 class="text-sm font-medium text-zinc-200">Create User</h2> + </div> + <div class="p-5"> + {% url "dashboard.users.create" as create_path %} + <form method="POST" action="{{ create_path }}" class="space-y-4"> + <div> + <label class="block text-xs font-medium text-zinc-400 mb-1.5 ml-1">Username</label> + <input type="text" name="username" required autocomplete="off" class="input-field"> + </div> + <div> + <label class="block text-xs font-medium text-zinc-400 mb-1.5 ml-1">Display Name</label> + <input type="text" name="display_name" required autocomplete="off" class="input-field"> + </div> + <div class="flex items-center gap-3 pt-2"> + <button type="submit" class="btn-primary">Create User</button> + {% url "dashboard.users" as users_path %} + <a href="{{ users_path }}" hx-get="{{ users_path }}" hx-target="#content" hx-swap="innerHTML" hx-push-url="true" class="text-xs text-zinc-500 hover:text-zinc-300 transition-colors duration-150">Cancel</a> + </div> + </form> + </div> + </div> +</div> |
