reset_passwd.tmpl 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. {{template "base/head" .}}
  2. <div class="user reset 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. <input name="code" type="hidden" value="{{.Code}}">
  8. <h2 class="ui top attached header">
  9. {{.i18n.Tr "auth.reset_password"}}
  10. </h2>
  11. <div class="ui attached segment">
  12. {{template "base/alert" .}}
  13. {{if .IsResetForm}}
  14. <div class="required inline field {{if .Err_Password}}error{{end}}">
  15. <label for="password">{{.i18n.Tr "password"}}</label>
  16. <input id="password" name="password" type="password" value="{{.password}}" autofocus required>
  17. </div>
  18. <div class="ui divider"></div>
  19. <div class="inline field">
  20. <label></label>
  21. <button class="ui blue button">{{.i18n.Tr "auth.reset_password_helper"}}</button>
  22. </div>
  23. {{else}}
  24. <p class="center">{{.i18n.Tr "auth.invalid_code"}}</p>
  25. {{end}}
  26. </div>
  27. </form>
  28. </div>
  29. </div>
  30. </div>
  31. {{template "base/footer" .}}