forgot_passwd.tmpl 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. {{template "base/head" .}}
  2. <div class="user forgot password">
  3. <div class="ui middle very relaxed page grid">
  4. <div class="column">
  5. <form class="ui form" action="{{.Link}}" method="post">
  6. {{.CsrfTokenHtml}}
  7. <h2 class="ui top attached header">
  8. {{.i18n.Tr "auth.forgot_password"}}
  9. </h2>
  10. <div class="ui attached segment">
  11. {{template "base/alert" .}}
  12. {{if .IsResetSent}}
  13. <p>{{.i18n.Tr "auth.confirmation_mail_sent_prompt" .Email .Hours | Str2html}}</p>
  14. <div class="ui divider"></div>
  15. <div class="text right">
  16. <a class="ui green button" href="http://{{Mail2Domain .Email}}">{{.i18n.Tr "auth.sign_in_to_account"}}</a>
  17. </div>
  18. {{else if .IsResetRequest}}
  19. <div class="required inline field {{if .Err_Email}}error{{end}}">
  20. <label for="email">{{.i18n.Tr "email"}}</label>
  21. <input id="email" name="email" type="email" value="{{.Email}}" autofocus required>
  22. </div>
  23. <div class="ui divider"></div>
  24. <div class="inline field">
  25. <label></label>
  26. <button class="ui blue button">{{.i18n.Tr "auth.send_reset_mail"}}</button>
  27. </div>
  28. {{else if .IsResetDisable}}
  29. <p class="center">{{.i18n.Tr "auth.disable_register_mail"}}</p>
  30. {{else if .ResendLimited}}
  31. <p class="center">{{.i18n.Tr "auth.resent_limit_prompt"}}</p>
  32. {{end}}
  33. </div>
  34. </form>
  35. </div>
  36. </div>
  37. </div>
  38. {{template "base/footer" .}}