summaryrefslogtreecommitdiffstats
path: root/templates/user/reset_passwd.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/user/reset_passwd.tmpl')
-rw-r--r--templates/user/reset_passwd.tmpl39
1 files changed, 19 insertions, 20 deletions
diff --git a/templates/user/reset_passwd.tmpl b/templates/user/reset_passwd.tmpl
index a2a5ca9ece..d17abde2ba 100644
--- a/templates/user/reset_passwd.tmpl
+++ b/templates/user/reset_passwd.tmpl
@@ -1,26 +1,25 @@
-{{template "base/head" .}}
-{{template "base/navbar" .}}
-<div id="body" class="container">
- <form action="/user/reset_password?code={{.Code}}" method="post" class="form-horizontal card" id="login-card">
+{{template "ng/base/head" .}}
+{{template "ng/base/header" .}}
+<div id="sign-wrapper">
+ <form class="form-align form panel sign-panel sign-form container panel-radius" id="sign-up-form" action="/user/reset_password?code={{.Code}}" method="post">
{{.CsrfTokenHtml}}
- <h3>Reset Your Pasword</h3>
- {{template "base/alert" .}}
- {{if .IsResetForm}}
- <div class="form-group">
- <label class="col-md-4 control-label">Password: </label>
- <div class="col-md-6">
- <input name="passwd" type="password" class="form-control" placeholder="Type your password" required="required">
- </div>
+ <div class="panel-header">
+ <h2>{{.i18n.Tr "auth.reset_password"}}</h2>
</div>
- <hr/>
- <div class="form-group">
- <div class="col-md-offset-4 col-md-6">
- <button type="submit" class="btn btn-lg btn-primary">Click here to reset your password</button>
+ <div class="panel-content">
+ {{template "ng/base/alert" .}}
+ {{if .IsResetForm}}
+ <div class="field">
+ <label class="req" for="password">{{.i18n.Tr "password"}}</label>
+ <input class="ipt ipt-large ipt-radius {{if .Err_Password}}ipt-error{{end}}" id="password" name="password" type="password" value="{{.password}}" required/>
</div>
+ <hr/>
+ <label></label>
+ <button class="btn btn-blue btn-large btn-radius">{{.i18n.Tr "auth.reset_password_helper"}}</button>
+ {{else}}
+ <p>{{.i18n.Tr "auth.invalid_code"}}</p>
+ {{end}}
</div>
- {{else}}
- <p>Sorry, your confirmation code has expired or is not valid.</p>
- {{end}}
</form>
</div>
-{{template "base/footer" .}}
+{{template "ng/base/footer" .}}