This commit is contained in:
cangui 2025-05-11 09:17:35 +02:00
parent 898c2fff62
commit 8913140b3e

View File

@ -4,7 +4,11 @@
<!-- Sidebar -->
{{ template "sidebar" . }}
<div class="column is-10">
<form hx-post="/api/user/create" hx-on="htmx:afterRequest: window.location.href = '/admin/user'" class="box">
<h1 class="title">Création d'un utilisateur</h1>
<!-- Flash message -->
<div id="userFlash"></div>
<form hx-post="/api/user/create" hx-target="#userList" hx-swap="beforeend" class="box">
<div class="field">
<label class="label">Email</label>
@ -63,6 +67,5 @@
</div>
</form>
</div>
</div>
{{ end }}