feat(webui): add user account status page
This commit is contained in:
parent
a22b2953e4
commit
2bf1731343
10 changed files with 230 additions and 12 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue