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.

34 lines
1.2 KiB

  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. {{else if .IsResetRequest}}
  15. <div class="required inline field {{if .Err_Email}}error{{end}}">
  16. <label for="email">{{.i18n.Tr "email"}}</label>
  17. <input id="email" name="email" type="email" value="{{.Email}}" autofocus required>
  18. </div>
  19. <div class="ui divider"></div>
  20. <div class="inline field">
  21. <label></label>
  22. <button class="ui blue button">{{.i18n.Tr "auth.send_reset_mail"}}</button>
  23. </div>
  24. {{else if .IsResetDisable}}
  25. <p class="center">{{.i18n.Tr "auth.disable_register_mail"}}</p>
  26. {{else if .ResendLimited}}
  27. <p class="center">{{.i18n.Tr "auth.resent_limit_prompt"}}</p>
  28. {{end}}
  29. </div>
  30. </form>
  31. </div>
  32. </div>
  33. </div>
  34. {{template "base/footer" .}}