You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
2.2 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. {{template "base/head" .}}
  2. {{template "base/navbar" .}}
  3. <div id="body" class="container" data-page="user">
  4. {{template "user/setting_nav" .}}
  5. <div id="user-setting-container" class="col-md-9">
  6. <div id="setting-pwd">
  7. <h4>Password</h4>
  8. <form class="form-horizontal" id="password-form" method="post" action="/user/setting/password">
  9. {{.CsrfTokenHtml}}
  10. {{if .IsSuccess}}
  11. <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}}
  12. <div class="form-group">
  13. <label class="col-md-3 control-label">Old Password<strong class="text-danger">*</strong></label>
  14. <div class="col-md-7">
  15. <input type="password" name="oldpasswd" class="form-control" placeholder="Type your current password" required="required">
  16. </div>
  17. </div>
  18. <div class="form-group">
  19. <label class="col-md-3 control-label">New Password<strong class="text-danger">*</strong></label>
  20. <div class="col-md-7">
  21. <input type="password" name="newpasswd" class="form-control" placeholder="Type your new password" required="required">
  22. </div>
  23. </div>
  24. <div class="form-group">
  25. <label class="col-md-3 control-label">Re-Type<strong class="text-danger">*</strong></label>
  26. <div class="col-md-7">
  27. <input type="password" name="retypepasswd" class="form-control" placeholder="Re-type your new password" required="required">
  28. </div>
  29. </div>
  30. <div class="form-group">
  31. <div class="col-md-offset-3 col-md-7">
  32. <button type="submit" class="btn btn-primary">Change Password</button>&nbsp;&nbsp;
  33. <a href="/forget-password/">Forgot your password?</a>
  34. </div>
  35. </div>
  36. </form>
  37. </div>
  38. </div>
  39. </div>
  40. {{template "base/footer" .}}