From af4163a065fc5a67f392aa6e447e1a7532207afb Mon Sep 17 00:00:00 2001 From: Philipp Hofer <philipp@hofer.link> Date: Thu, 9 Jan 2025 10:21:44 +0100 Subject: [PATCH] add confirm dialog before creating a new user --- templates/admin/user/index.html.tera | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/admin/user/index.html.tera b/templates/admin/user/index.html.tera index da383ec..c50e64f 100644 --- a/templates/admin/user/index.html.tera +++ b/templates/admin/user/index.html.tera @@ -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">