signup.tmpl 2.7 KB

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