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.

37 lines
1.9 KiB

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