You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

activate.tmpl 2.5 kB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
12 years ago
3 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. {{template "base/head" .}}
  2. <div class="user activate">
  3. <div class="ui middle very relaxed page grid">
  4. <div class="column">
  5. <form class="ui form ignore-dirty" action="{{AppSubUrl}}/user/activate" method="post">
  6. {{.CsrfTokenHtml}}
  7. <h2 class="ui top attached header">
  8. {{.i18n.Tr "auth.active_your_account"}}
  9. </h2>
  10. <div class="ui attached segment">
  11. {{template "base/alert" .}}
  12. {{if .IsActivatePage}}
  13. {{if .ServiceNotEnabled}}
  14. <p class="center">{{.i18n.Tr "auth.disable_register_mail"}}</p>
  15. {{else if .ResendLimited}}
  16. <p class="center">{{.i18n.Tr "auth.resent_limit_prompt"}}</p>
  17. {{else}}
  18. <p>{{.i18n.Tr "auth.confirmation_mail_sent_prompt" .Email .ActiveCodeLives | Str2html}}</p>
  19. {{end}}
  20. {{else}}
  21. {{if .IsSendRegisterMail}}
  22. <p>{{.i18n.Tr "auth.confirmation_mail_sent_prompt" .Email .ActiveCodeLives | Str2html}}</p>
  23. {{else if .IsActivateFailed}}
  24. <p>{{.i18n.Tr "auth.invalid_code"}}</p>
  25. {{else}}
  26. <p>{{.i18n.Tr "auth.has_unconfirmed_mail" .SignedUser.Name .SignedUser.Email | Str2html}}</p>
  27. <div class="ui divider"></div>
  28. <div class="text right">
  29. <button type="button" class="ui blue button change">{{.i18n.Tr "auth.change_email"}}</button>
  30. <button class="ui blue button">{{.i18n.Tr "auth.resend_mail"}}</button>
  31. </div>
  32. {{end}}
  33. {{end}}
  34. </div>
  35. </form>
  36. </div>
  37. </div>
  38. <div>
  39. <div class="ui modal chang-email">
  40. <div class="header" style="padding: 1rem;background-color: rgba(240, 240, 240, 100);">
  41. <h4>{{.i18n.Tr "auth.change_email_address"}}</h4>
  42. </div>
  43. <form id="formId" action="{{AppSubUrl}}/user/update_email" method="POST" class="ui form">
  44. <div class="content content-padding">
  45. <div class="ui error message">
  46. </div>
  47. {{$.CsrfTokenHtml}}
  48. <div class="inline required field">
  49. <label>{{.i18n.Tr "auth.new_email_address"}}</label>
  50. <input style="width: 80%;" id="label" name="NewEmail" maxlength="255" value="{{.SignedUser.Email}}">
  51. </div>
  52. </div>
  53. <div class="center actions">
  54. <button class="ui green button">{{.i18n.Tr "repo.confirm_choice"}}</button>
  55. <div class="ui deny button">{{.i18n.Tr "cancel"}}</div>
  56. </div>
  57. </form>
  58. </div>
  59. </div>
  60. </div>
  61. {{template "base/footer" .}}
  62. <script>
  63. $('.ui.blue.button.change').on('click',function(){
  64. $('.ui.modal').modal('show')
  65. })
  66. </script>