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.

50 lines
2.8 KiB

  1. {{template "base/head" .}}
  2. {{template "base/navbar" .}}
  3. <div id="gogs-body" class="container">
  4. <div id="gogs-user-setting-nav" class="col-md-3">
  5. <h4>Account Setting</h4>
  6. <ul class="list-group">
  7. <li class="list-group-item"><a href="/user/setting">Account Profile</a></li>
  8. <li class="list-group-item list-group-item-success"><a href="/user/setting/password">Password</a></li>
  9. <li class="list-group-item"><a href="/user/setting/notification">Notifications</a></li>
  10. <li class="list-group-item"><a href="/user/setting/ssh/">SSH Keys</a></li>
  11. <li class="list-group-item"><a href="/user/setting/security">Security</a></li>
  12. <li class="list-group-item"><a href="/user/delete">Delete Account</a></li>
  13. </ul>
  14. </div>
  15. <div id="gogs-user-setting-container" class="col-md-9">
  16. <div id="gogs-setting-pwd">
  17. <h4>Password</h4>
  18. <form class="form-horizontal" id="gogs-password-form" method="post" action="/user/setting/password">{{if .IsSuccess}}
  19. <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}}
  20. <div class="form-group">
  21. <label class="col-md-2 control-label">Old Password<strong class="text-danger">*</strong></label>
  22. <div class="col-md-8">
  23. <input type="password" name="oldpasswd" class="form-control" placeholder="Type your current password" required="required">
  24. </div>
  25. </div>
  26. <div class="form-group">
  27. <label class="col-md-2 control-label">New Password<strong class="text-danger">*</strong></label>
  28. <div class="col-md-8">
  29. <input type="password" name="newpasswd" class="form-control" placeholder="Type your new password" required="required">
  30. </div>
  31. </div>
  32. <div class="form-group">
  33. <label class="col-md-2 control-label">Re-Type<strong class="text-danger">*</strong></label>
  34. <div class="col-md-8">
  35. <input type="password" name="retypepasswd" class="form-control" placeholder="Re-type your new password" required="required">
  36. </div>
  37. </div>
  38. <div class="form-group">
  39. <div class="col-md-offset-2 col-md-8">
  40. <button type="submit" class="btn btn-primary">Change Password</button>&nbsp;&nbsp;
  41. <a href="/forget-password/">Forgot your password?</a>
  42. </div>
  43. </div>
  44. </form>
  45. </div>
  46. </div>
  47. </div>
  48. {{template "base/footer" .}}