signup.tmpl 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. {{template "base/head" .}}
  2. <div class="user signup">
  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 top attached header">
  8. {{.i18n.Tr "sign_up"}}
  9. </h3>
  10. <div class="ui attached segment">
  11. {{template "base/alert" .}}
  12. {{if .DisableRegistration}}
  13. <p>{{.i18n.Tr "auth.disable_register_prompt"}}</p>
  14. {{else}}
  15. <div class="required inline field {{if .Err_UserName}}error{{end}}">
  16. <label for="user_name">{{.i18n.Tr "username"}}</label>
  17. <input id="user_name" name="user_name" value="{{.user_name}}" autofocus required>
  18. </div>
  19. <div class="required inline field {{if .Err_Email}}error{{end}}">
  20. <label for="email">{{.i18n.Tr "email"}}</label>
  21. <input id="email" name="email" type="email" value="{{.email}}" required>
  22. </div>
  23. <div class="required inline field {{if .Err_Password}}error{{end}}">
  24. <label for="password">{{.i18n.Tr "password"}}</label>
  25. <input id="password" name="password" type="password" value="{{.password}}" required>
  26. </div>
  27. <div class="required inline field {{if .Err_Password}}error{{end}}">
  28. <label for="retype">{{.i18n.Tr "re_type"}}</label>
  29. <input id="retype" name="retype" type="password" value="{{.retype}}" required>
  30. </div>
  31. {{if .EnableCaptcha}}
  32. <div class="inline field">
  33. <label></label>
  34. {{.Captcha.CreateHtml}}
  35. </div>
  36. <div class="required inline field {{if .Err_Captcha}}error{{end}}">
  37. <label for="captcha">{{.i18n.Tr "captcha"}}</label>
  38. <input id="captcha" name="captcha" value="{{.captcha}}" autocomplete="off">
  39. </div>
  40. {{end}}
  41. <div class="inline field">
  42. <label></label>
  43. <button class="ui green button">{{.i18n.Tr "auth.create_new_account"}}</button>
  44. </div>
  45. <div class="inline field">
  46. <label></label>
  47. <a href="{{AppSubURL}}/user/login">{{.i18n.Tr "auth.register_hepler_msg"}}</a>
  48. </div>
  49. {{end}}
  50. </div>
  51. </form>
  52. </div>
  53. </div>
  54. </div>
  55. {{template "base/footer" .}}