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.

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