diff options
Diffstat (limited to 'templates/user')
-rw-r--r-- | templates/user/delete.tmpl | 13 | ||||
-rw-r--r-- | templates/user/password.tmpl | 7 |
2 files changed, 4 insertions, 16 deletions
diff --git a/templates/user/delete.tmpl b/templates/user/delete.tmpl index 39949ee2b6..6493bef38e 100644 --- a/templates/user/delete.tmpl +++ b/templates/user/delete.tmpl @@ -1,18 +1,7 @@ {{template "base/head" .}} {{template "base/navbar" .}} <div id="body" class="container" data-page="user"> - <div id="user-setting-nav" class="col-md-3"> - <h4>Account Setting</h4> - <ul class="list-group"> - <li class="list-group-item"><a href="/user/setting">Account Profile</a></li> - <li class="list-group-item"><a href="/user/setting/password">Password</a></li> - <!-- <li class="list-group-item"><a href="/user/setting/notification">Notifications</a></li> --> - <li class="list-group-item"><a href="/user/setting/ssh/">SSH Keys</a></li> - <!-- <li class="list-group-item"><a href="/user/setting/security">Security</a></li> --> - <li class="list-group-item list-group-item-success"><a href="/user/delete">Delete Account</a></li> - </ul> - </div> - + {{template "user/setting_nav" .}} <div id="user-setting-container" class="col-md-9"> <h4>Delete Account</h4> {{template "base/alert" .}} diff --git a/templates/user/password.tmpl b/templates/user/password.tmpl index b2cdc72d9e..cba9cce0c5 100644 --- a/templates/user/password.tmpl +++ b/templates/user/password.tmpl @@ -6,9 +6,8 @@ <div id="setting-pwd"> <h4>Password</h4> <form class="form-horizontal" id="password-form" method="post" action="/user/setting/password"> - {{.CsrfTokenHtml}} - {{if .IsSuccess}} - <p class="alert alert-success">Password is changed successfully. You can now sign in via new password.</p>{{else if .HasError}}<p class="alert alert-danger form-error">{{.ErrorMsg}}</p>{{end}} + {{.CsrfTokenHtml}} + {{template "base/alert" .}} <div class="form-group"> <label class="col-md-3 control-label">Old Password<strong class="text-danger">*</strong></label> <div class="col-md-7"> @@ -33,7 +32,7 @@ <div class="form-group"> <div class="col-md-offset-3 col-md-7"> <button type="submit" class="btn btn-primary">Change Password</button> - <a href="/forget-password/">Forgot your password?</a> + <a href="/user/forget_password/">Forgot your password?</a> </div> </div> </form> |