forgot_passwd.tmpl 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. {{template "base/head" .}}
  2. <div class="user forgot password home-main gradient-bg">
  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. <h3 class="ui center">
  8. <img height="50px" src="https://gitote-cdn.netlify.com/logoblack.svg">
  9. </h3>
  10. <h2 class="ui center">
  11. {{.i18n.Tr "auth.forgot_password"}}
  12. </h2>
  13. <div class="ui attached segment prompt box">
  14. {{template "base/alert" .}}
  15. {{if .IsResetSent}}
  16. <p>{{.i18n.Tr "auth.confirmation_mail_sent_prompt" .Email .Hours | Str2HTML}}</p>
  17. {{else if .IsResetRequest}}
  18. <div class="required inline field {{if .Err_Email}}error{{end}}">
  19. <label for="email">{{.i18n.Tr "email"}}</label>
  20. <input id="email" name="email" type="email" value="{{.Email}}" autofocus required>
  21. </div>
  22. <div class="ui divider"></div>
  23. <div class="inline field">
  24. <label></label>
  25. <button class="ui blue button">{{.i18n.Tr "auth.send_reset_mail"}}</button>
  26. </div>
  27. {{else if .IsResetDisable}}
  28. <p class="center">{{.i18n.Tr "auth.disable_register_mail"}}</p>
  29. {{else if .ResendLimited}}
  30. <p class="center">{{.i18n.Tr "auth.resent_limit_prompt"}}</p>
  31. {{end}}
  32. </div>
  33. </form>
  34. </div>
  35. </div>
  36. </div>
  37. {{template "base/footer" .}}