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.

41 lines
1.4 KiB

  1. {{template "base/head" .}}
  2. <div class="user settings delete">
  3. {{template "user/settings/navbar" .}}
  4. <div class="ui container">
  5. {{template "base/alert" .}}
  6. <h4 class="ui top attached warning header">
  7. {{.i18n.Tr "settings.delete_account"}}
  8. </h4>
  9. <div class="ui attached warning segment">
  10. <div class="ui red message">
  11. <p class="text left"><i class="octicon octicon-alert"></i> {{.i18n.Tr "settings.delete_prompt" | Str2html}}</p>
  12. </div>
  13. <form class="ui form" id="delete-form" action="{{.Link}}" method="post">
  14. {{.CsrfTokenHtml}}
  15. <input class="fake" type="password">
  16. <div class="inline required field {{if .Err_Password}}error{{end}}">
  17. <label for="password">{{.i18n.Tr "password"}}</label>
  18. <input id="password" name="password" type="password" autofocus required>
  19. </div>
  20. <div class="ui red button delete-button" data-type="form" data-form="#delete-form">
  21. {{.i18n.Tr "settings.confirm_delete_account"}}
  22. </div>
  23. <div>
  24. <a href="{{AppSubUrl}}/user/forgot_password?email={{.Email}}">{{.i18n.Tr "auth.forgot_password"}}</a>
  25. </div>
  26. </form>
  27. </div>
  28. </div>
  29. </div>
  30. <div class="ui small basic delete modal">
  31. <div class="ui icon header">
  32. <i class="trash icon"></i>
  33. {{.i18n.Tr "settings.delete_account_title"}}
  34. </div>
  35. <div class="content">
  36. <p>{{.i18n.Tr "settings.delete_account_desc"}}</p>
  37. </div>
  38. {{template "base/delete_modal_actions" .}}
  39. </div>
  40. {{template "base/footer" .}}