forgot_passwd.tmpl 1.5 KB

123456789101112131415161718192021222324252627282930313233
  1. {{template "ng/base/head" .}}
  2. {{template "ng/base/header" .}}
  3. <div id="sign-wrapper">
  4. <form class="form-align form panel sign-panel sign-form container panel-radius" id="sign-up-form" action="{{AppSubUrl}}/user/forget_password" method="post">
  5. {{.CsrfTokenHtml}}
  6. <div class="panel-header">
  7. <h2>{{.i18n.Tr "auth.forgot_password"}}</h2>
  8. </div>
  9. <div class="panel-content">
  10. {{template "ng/base/alert" .}}
  11. {{if .IsResetSent}}
  12. <p>{{.i18n.Tr "auth.confirmation_mail_sent_prompt" .Email .Hours | Str2html}}</p>
  13. <hr/>
  14. <label></label>
  15. <a class="btn btn-green btn-large btn-link btn-radius" href="http://{{Mail2Domain .Email}}">{{.i18n.Tr "auth.sign_in_email"}}</a>
  16. {{else if .IsResetRequest}}
  17. <div class="field">
  18. <label class="req" for="email">{{.i18n.Tr "email"}}</label>
  19. <input class="ipt ipt-large ipt-radius {{if .Err_Email}}ipt-error{{end}}" id="email" name="email" type="email" value="{{.email}}"required/>
  20. </div>
  21. <hr/>
  22. <label></label>
  23. <button class="btn btn-blue btn-large btn-radius">{{.i18n.Tr "auth.send_reset_mail"}}</button>
  24. {{else if .IsResetDisable}}
  25. <p>{{.i18n.Tr "auth.disable_register_mail"}}</p>
  26. {{else if .ResendLimited}}
  27. <p>{{.i18n.Tr "auth.resent_limit_prompt"}}</p>
  28. {{end}}
  29. </div>
  30. </form>
  31. </div>
  32. {{template "ng/base/footer" .}}