feat(webui): add user account status page
All checks were successful
main / main (push) Successful in 1m53s
main / deploy (push) Has been skipped
main / publish (push) Has been skipped

This commit is contained in:
Julien Dessaux 2025-04-13 09:33:11 +02:00
parent a22b2953e4
commit 2bf1731343
Signed by: adyxax
GPG key ID: F92E51B86E07177E
10 changed files with 230 additions and 12 deletions

View file

@ -2,7 +2,7 @@
<h1>User Accounts</h1>
<div class="flex-row" style="justify-content:space-between;">
<div style="min-width:240px;">
<p>There are <span class=button>{{ len .Accounts }}</span> user accounts.</p>
<p>There are <span class="button">{{ len .Accounts }}</span> user accounts.</p>
<p>Use this page to inspect user accounts or create a new one.</p>
</div>
<form action="/accounts" enctype="multipart/form-data" method="post">
@ -16,6 +16,12 @@
required
type="text"
value="{{ .Username }}">
<label for="is-admin">Is Admin</label>
<input {{ if .IsAdmin }} checked{{ end }}
id="is-admin"
name="is-admin"
type="checkbox"
value="{{ .IsAdmin }}" />
</div>
{{ if .UsernameDuplicate }}
<span class="error">This username already exist.</span>