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.

49 lines
2.5 KiB

  1. {{template "ng/base/head" .}}
  2. {{template "ng/base/header" .}}
  3. <div id="sign-wrapper">
  4. <form class="form-align form panel panel-radius sign-panel sign-form container" id="sign-up-form" action="/user/sign_up" method="post">
  5. {{.CsrfTokenHtml}}
  6. <div class="panel-header">
  7. <h2>{{.i18n.Tr "sign_up"}}</h2>
  8. </div>
  9. <div class="panel-content">
  10. {{template "base/alert" .}}
  11. {{if .DisableRegistration}}
  12. <p>{{.i18n.Tr "auth.disable_register_prompt"}}</p>
  13. {{else}}
  14. <p class="field">
  15. <label class="req" for="username">{{.i18n.Tr "username"}}</label>
  16. <input class="ipt ipt-large ipt-radius {{if .Err_UserName}}ipt-error{{end}}" id="username" name="uname" type="text" value="{{.uname}}" required/>
  17. </p>
  18. <p class="field">
  19. <label class="req" for="email">{{.i18n.Tr "email"}}</label>
  20. <input class="ipt ipt-large ipt-radius {{if .Err_Email}}ipt-error{{end}}" id="email" name="email" type="email" value="{{.email}}"required/>
  21. </p>
  22. <p class="field">
  23. <label class="req" for="password">{{.i18n.Tr "password"}}</label>
  24. <input class="ipt ipt-large ipt-radius {{if .Err_Password}}ipt-error{{end}}" id="password" name="password" type="password" value="{{.password}}" required/>
  25. </p>
  26. <p class="field">
  27. <label class="req" for="re-type">{{.i18n.Tr "re_type"}}</label>
  28. <input class="ipt ipt-large ipt-radius {{if .Err_Password}}ipt-error{{end}}" id="re-type" name="retype" type="password" required/>
  29. </p>
  30. <p class="field">
  31. <label></label>
  32. {{CreateCaptcha}}
  33. </p>
  34. <p class="field">
  35. <label class="req" for="captcha">{{.i18n.Tr "captcha"}}</label>
  36. <input class="ipt ipt-large ipt-radius {{if .Err_Captcha}}ipt-error{{end}}" id="captcha" name="captcha" type="text" required/>
  37. </p>
  38. <p class="field">
  39. <span class="form-label"></span>
  40. <button class="btn btn-blue btn-large btn-radius">{{.i18n.Tr "auth.create_new_account"}}</button>
  41. </p>
  42. <p class="field">
  43. <span class="form-label"></span>
  44. <a href="/user/login">{{.i18n.Tr "auth.register_hepler_msg"}}</a>
  45. </p>
  46. {{end}}
  47. </div>
  48. </form>
  49. </div>
  50. {{template "ng/base/footer" .}}