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

Closes #19
This commit is contained in:
Julien Dessaux 2025-05-05 00:34:08 +02:00
parent 373f567773
commit 8d75b75af7
Signed by: adyxax
GPG key ID: F92E51B86E07177E
6 changed files with 57 additions and 20 deletions

View file

@ -21,10 +21,12 @@
<strong>{{ .Account.LastLogin }}</strong>.
{{ end }}
</p>
{{ if .Account.IsAdmin }}
{{ if .Account.Deleted }}
<p>This accounts is <strong>marked for deletion</strong>!</p>
{{ else if .Account.IsAdmin }}
<p>This accounts has <strong>admin</strong> privileges on TfStated.</p>
{{ end }}
{{ if .Page.Session.Data.Account.IsAdmin }}
{{ if and (not .Account.Deleted) .Page.Session.Data.Account.IsAdmin }}
<h2>Operations</h2>
<div class="flex-row">
<form action="/accounts/{{ .Account.Id }}" method="post">