Commit bf1f9016 authored by ale's avatar ale
Browse files

Fix style of password recovery pages

parent 66ca94a6
{{define "title"}}Account Recovery{{end}}
{{define "head"}}
<link rel="stylesheet" href="/static/css/signin.css">
{{end}}
{{define "content"}}
<h1>Password reset</h1>
<form class="form-signin" action="/account/password_reset" method="post">
{{.CSRF}}
{{template "form_error" .FormError}}
<h1 class="form-signin-heading">Password reset</h1>
{{template "form_error" .FormError}}
<form action="/account/password_reset" method="post">
{{.CSRF}}
<p>
<input type="text" name="username"
value="{{.Form.Username}}">
Enter the username you wish to reset the password of:
<input class="form-control" type="text" name="username"
id="inputUsername" value="{{.Form.Username}}">
{{template "field_error" .FormError.FieldError "username"}}
</p>
<p>
<input type="submit" value=" Reset password ">
<button type="submit" class="btn btn-primary">Reset password</button>
</p>
</form>
{{end}}
{{define "title"}}Account Recovery{{end}}
{{define "head"}}
<link rel="stylesheet" href="/static/css/signin.css">
{{end}}
{{define "content"}}
<h1>Password reset</h1>
<p>
An email has been sent to the address associated with this account.
Click on the link inside it to complete the password reset procedure.
</p>
<div class="form-signin">
<h1 class="form-signin-heading">Password reset</h1>
<p>
An email has been sent to the address associated with this account.
Click on the link inside it to complete the password reset procedure.
</p>
</div>
{{end}}
......@@ -17,14 +17,14 @@
{{end}}
<label for="inputUsername" class="sr-only">
Email address
Username
</label>
<input type="text" name="username" id="inputUsername"
class="form-control"
{{if .AuthError}}
value="{{.Username}}"
{{else}}
placeholder="Email"
placeholder="Username"
{{end}} required autofocus>
<label for="inputPassword" class="sr-only">
......
......@@ -25,7 +25,7 @@
</p>
{{end}}
<button type="submit" value=" Login ">
<button type="submit" class="btn btn-primary">Login</button>
</form>
{{end}}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment