add confirm dialog before creating a new user

This commit is contained in:
Philipp Hofer 2025-01-09 10:21:44 +01:00
parent 8a9047b3c3
commit af4163a065

View File

@ -5,6 +5,7 @@
<h1 class="h1">Users</h1>
{% if allowed_to_edit %}
<form action="/admin/user/new"
onsubmit="return confirm('Willst du wirklich einen neuen Benutzer anlegen?');"
method="post"
class="mt-4 bg-primary-900 rounded-md text-white px-3 pb-3 pt-2 sm:flex items-end justify-between">
<div class="w-full">