This repository has been archived on 2023-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
dex/web/templates/password.html

32 lines
1.0 KiB
HTML
Raw Normal View History

2016-08-25 20:03:41 +00:00
{{ template "header.html" . }}
<div class="panel">
<h2 class="heading">Log in to Your Account</h2>
2016-08-25 20:03:41 +00:00
<form method="post" action="{{ .PostURL }}">
<div class="form-row">
<div class="input-desc">
2016-08-25 20:03:41 +00:00
<label for="userid">Username</label>
</div>
<input tabindex="1" required id="login" name="login" type="text" class="input-box" placeholder="username" {{ if .Username }}value="{{ .Username }}" {{ else }} autofocus {{ end }}/>
2016-08-25 20:03:41 +00:00
</div>
<div class="form-row">
<div class="input-desc">
2016-08-25 20:03:41 +00:00
<label for="password">Password</label>
</div>
<input tabindex="2" required id="password" name="password" type="password" class="input-box" placeholder="password" {{ if .Invalid }} autofocus {{ end }}/>
2016-08-25 20:03:41 +00:00
</div>
<input type="hidden" name="req" value="{{ .AuthReqID }}"/>
2016-08-25 20:03:41 +00:00
{{ if .Invalid }}
<div class="error-box">
2016-08-25 20:03:41 +00:00
Invalid username and password.
</div>
{{ end }}
<button tabindex="3" type="submit" class="btn btn-primary">Login</button>
2016-08-25 20:03:41 +00:00
</form>
</div>
{{ template "footer.html" . }}