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.

45 lines
2.6 KiB

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. <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"><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 list-group-item-success"><a href="/user/delete">Delete Account</a></li>
  13. </ul>
  14. </div>
  15. <div id="gogs-user-setting-container" class="col-md-9">
  16. <h4>Delete Account</h4>
  17. <p class="alert alert-danger">{{if not .HasError}}The operation will delete your account permanently. Sorry to see you go, but we know you'll back soon.{{else}}{{.ErrorMsg}}{{end}}</p>
  18. <div class="form-group">
  19. <button type="submit" class="btn btn-danger btn-lg" href="#delete-account-modal" id="gogs-delete-account" data-toggle="modal">Delete Account</button>
  20. </div>
  21. </div>
  22. <div class="modal fade" id="delete-account-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  23. <div class="modal-dialog">
  24. <form action="/user/delete" method="post" class="modal-content" id="gogs-user-delete">
  25. {{.CsrfTokenHtml}}
  26. <div class="modal-header">
  27. <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
  28. <h4 class="modal-title" id="myModalLabel">Delete Account</h4>
  29. </div>
  30. <div class="modal-body">
  31. <div class="form-group">
  32. <label>Make sure your are owner of this account. Please enter your password.<strong class="text-danger">*</strong></label>
  33. <input name="password" class="form-control" type="password" placeholder="Type your account password" required="required">
  34. </div>
  35. </div>
  36. <div class="modal-footer">
  37. <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
  38. <button type="submit" class="btn btn-danger">Delete</button>
  39. </div>
  40. </form>
  41. </div>
  42. </div>
  43. </div>
  44. {{template "base/footer" .}}