delete.tmpl 1.4 KB

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