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.

signup_openid_register.tmpl 2.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. {{template "base/head" .}}
  2. <div class="page-content user signup">
  3. {{template "user/auth/signup_openid_navbar" .}}
  4. <div class="ui container">
  5. {{template "base/alert" .}}
  6. <h4 class="ui top attached header">
  7. {{.i18n.Tr "auth.openid_register_title"}}
  8. </h4>
  9. <div class="ui attached segment">
  10. <p>
  11. {{.i18n.Tr "auth.openid_register_desc"}}
  12. </p>
  13. <form class="ui form" action="{{.Link}}" method="post">
  14. {{.CsrfTokenHtml}}
  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" type="text" 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. {{if and .EnableCaptcha (eq .CaptchaType "image")}}
  24. <div class="inline field">
  25. <label></label>
  26. {{.Captcha.CreateHTML}}
  27. </div>
  28. <div class="required inline field {{if .Err_Captcha}}error{{end}}">
  29. <label for="captcha">{{.i18n.Tr "captcha"}}</label>
  30. <input id="captcha" name="captcha" value="{{.captcha}}" autocomplete="off">
  31. </div>
  32. {{end}}
  33. {{if and .EnableCaptcha (eq .CaptchaType "recaptcha")}}
  34. <div class="inline field required">
  35. <div class="g-recaptcha" data-sitekey="{{ .RecaptchaSitekey }}"></div>
  36. </div>
  37. {{end}}
  38. {{if and .EnableCaptcha (eq .CaptchaType "hcaptcha")}}
  39. <div class="inline field required">
  40. <div class="h-captcha" data-sitekey="{{ .HcaptchaSitekey }}"></div>
  41. </div>
  42. {{end}}
  43. <div class="inline field">
  44. <label for="openid">OpenID URI</label>
  45. <input id="openid" value="{{ .OpenID }}" readonly>
  46. </div>
  47. <div class="inline field">
  48. <label></label>
  49. <button class="ui green button">{{.i18n.Tr "auth.create_new_account"}}</button>
  50. </div>
  51. </form>
  52. </div>
  53. </div>
  54. </div>
  55. {{template "base/footer" .}}