2016-08-26 01:33:41 +05:30
|
|
|
{{ template "header.html" . }}
|
|
|
|
|
2016-12-02 02:48:32 +05:30
|
|
|
<div class="panel">
|
|
|
|
<h2 class="heading">Log in to Your Account</h2>
|
2016-08-26 01:33:41 +05:30
|
|
|
<form method="post" action="{{ .PostURL }}">
|
2016-12-02 02:48:32 +05:30
|
|
|
<div class="form-row">
|
|
|
|
<div class="input-desc">
|
2016-08-26 01:33:41 +05:30
|
|
|
<label for="userid">Username</label>
|
|
|
|
</div>
|
2016-12-02 02:48:32 +05:30
|
|
|
<input tabindex="1" required id="login" name="login" type="text" class="input-box" placeholder="username" {{ if .Username }}value="{{ .Username }}" {{ else }} autofocus {{ end }}/>
|
2016-08-26 01:33:41 +05:30
|
|
|
</div>
|
2016-12-02 02:48:32 +05:30
|
|
|
<div class="form-row">
|
|
|
|
<div class="input-desc">
|
2016-08-26 01:33:41 +05:30
|
|
|
<label for="password">Password</label>
|
|
|
|
</div>
|
2016-12-02 02:48:32 +05:30
|
|
|
<input tabindex="2" required id="password" name="password" type="password" class="input-box" placeholder="password" {{ if .Invalid }} autofocus {{ end }}/>
|
2016-08-26 01:33:41 +05:30
|
|
|
</div>
|
2016-10-27 22:50:30 +05:30
|
|
|
<input type="hidden" name="req" value="{{ .AuthReqID }}"/>
|
2016-08-26 01:33:41 +05:30
|
|
|
|
|
|
|
{{ if .Invalid }}
|
2016-12-02 02:48:32 +05:30
|
|
|
<div class="error-box">
|
2016-08-26 01:33:41 +05:30
|
|
|
Invalid username and password.
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
|
2016-12-02 02:48:32 +05:30
|
|
|
<button tabindex="3" type="submit" class="btn btn-primary">Login</button>
|
2016-08-26 01:33:41 +05:30
|
|
|
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{ template "footer.html" . }}
|