reset_passwd.tmpl 1.1 KB

1234567891011121314151617181920212223242526
  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/reset_password?code={{.Code}}" method="post">
  5. {{.CsrfTokenHtml}}
  6. <div class="panel-header">
  7. <h2>{{.i18n.Tr "auth.reset_password"}}</h2>
  8. </div>
  9. <div class="panel-content">
  10. {{template "ng/base/alert" .}}
  11. {{if .IsResetForm}}
  12. <div class="field">
  13. <label class="req" for="password">{{.i18n.Tr "password"}}</label>
  14. <input class="ipt ipt-large ipt-radius {{if .Err_Password}}ipt-error{{end}}" id="password" name="password" type="password" value="{{.password}}" required/>
  15. </div>
  16. <hr/>
  17. <label></label>
  18. <button class="btn btn-blue btn-large btn-radius">{{.i18n.Tr "auth.reset_password_helper"}}</button>
  19. {{else}}
  20. <p>{{.i18n.Tr "auth.invalid_code"}}</p>
  21. {{end}}
  22. </div>
  23. </form>
  24. </div>
  25. {{template "ng/base/footer" .}}