signup.tmpl 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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="inline field">
  16. <p>Please read and understand our <a href="{{AppSubURL}}/tos">Terms of Service</a> before signing up.</p>
  17. </div>
  18. <div class="required inline field {{if .Err_UserName}}error{{end}}">
  19. <label for="user_name">{{.i18n.Tr "username"}}</label>
  20. <input id="user_name" name="user_name" value="{{.user_name}}" autofocus required>
  21. </div>
  22. <div class="required inline field {{if .Err_Email}}error{{end}}">
  23. <label for="email">{{.i18n.Tr "email"}}</label>
  24. <input id="email" name="email" type="email" value="{{.email}}" required>
  25. </div>
  26. <div class="required inline field {{if .Err_Password}}error{{end}}">
  27. <label for="password">{{.i18n.Tr "password"}}</label>
  28. <input id="password" name="password" type="password" value="{{.password}}" required>
  29. </div>
  30. <div class="required inline field {{if .Err_Password}}error{{end}}">
  31. <label for="retype">{{.i18n.Tr "re_type"}}</label>
  32. <input id="retype" name="retype" type="password" value="{{.retype}}" required>
  33. </div>
  34. {{if .EnableCaptcha}}
  35. <div class="inline field">
  36. <label></label>
  37. {{.Captcha.CreateHtml}}
  38. </div>
  39. <div class="inline field">
  40. <p> Because of a large amount of spam accounts we were sadly forced to add this CAPTCHA here. If you have any problems using this account creation form for whatever reason please don't hesitate to contact <a href="mailto:admin@notabug.org">admin@notabug.org</a> and we will try to help you as soon as we can. </p>
  41. </div>
  42. <div class="required inline field {{if .Err_Captcha}}error{{end}}">
  43. <label for="captcha">{{.i18n.Tr "captcha"}}</label>
  44. <input id="captcha" name="captcha" value="{{.captcha}}" autocomplete="off">
  45. </div>
  46. {{end}}
  47. <div class="inline field">
  48. <label></label>
  49. <button class="ui green button">{{.i18n.Tr "auth.create_new_account"}}</button>
  50. </div>
  51. <div class="inline field">
  52. <label></label>
  53. <a href="{{AppSubURL}}/user/login">{{.i18n.Tr "auth.register_hepler_msg"}}</a>
  54. </div>
  55. {{end}}
  56. </div>
  57. </form>
  58. </div>
  59. </div>
  60. </div>
  61. {{template "base/footer" .}}