chore(webui): redesign the login page
This commit is contained in:
parent
f12a54b760
commit
0354ef67be
2 changed files with 40 additions and 24 deletions
|
@ -1,25 +1,31 @@
|
|||
{{ define "main" }}
|
||||
<form action="/login" method="post">
|
||||
<fieldset>
|
||||
<div class="field border label{{ if .Forbidden }} invalid{{ end }}">
|
||||
<input autofocus
|
||||
id="username"
|
||||
name="username"
|
||||
type="text"
|
||||
value="{{ .Username }}"
|
||||
required>
|
||||
<label for="username">Username</label>
|
||||
<div style="display: grid;">
|
||||
<form action="/login" method="post" style="align-self:center; justify-self: center;">
|
||||
<fieldset style="align-items:center; display:flex; flex-direction:column; gap:8px;">
|
||||
<legend>Login</legend>
|
||||
<div style="align-items:center; display:flex; flex-direction:row; gap:8px;">
|
||||
<label for="username">Username</label>
|
||||
<input autofocus
|
||||
{{ if .Forbidden }}class="error"{{ end }}
|
||||
id="username"
|
||||
name="username"
|
||||
type="text"
|
||||
value="{{ .Username }}"
|
||||
required>
|
||||
</div>
|
||||
<div style="align-items:center; display:flex; flex-direction:row; gap:8px;">
|
||||
<label for="password">Password</label>
|
||||
<input {{ if .Forbidden }}class="error"{{ end }}
|
||||
id="password"
|
||||
name="password"
|
||||
type="password"
|
||||
required>
|
||||
</div>
|
||||
{{ if .Forbidden }}<span class="error">Invalid username or password</span>{{ end }}
|
||||
</div>
|
||||
<div class="field border label{{ if .Forbidden }} invalid{{ end}}">
|
||||
<input id="password"
|
||||
name="password"
|
||||
type="password"
|
||||
required>
|
||||
<label for="password">Password</label>
|
||||
{{ if .Forbidden }}<span class="error">Invalid username or password</span>{{ end }}
|
||||
</div>
|
||||
<button class="small-round" type="submit" value="login">Login</button>
|
||||
</fieldset>
|
||||
</form>
|
||||
<div style="align-self:stretch; display:flex; justify-content:flex-end;">
|
||||
<button class="primary" type="submit" value="login">Login</button>
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue