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.

45 lines
1.6 KiB

  1. {{template "base/head" .}}
  2. <div class="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" 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 .EnableCaptcha}}
  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. <div class="inline field">
  34. <label for="openid">OpenID URI</label>
  35. <input id="openid" value="{{ .OpenID }}" readonly>
  36. </div>
  37. <div class="inline field">
  38. <label></label>
  39. <button class="ui green button">{{.i18n.Tr "auth.create_new_account"}}</button>
  40. </div>
  41. </form>
  42. </div>
  43. </div>
  44. </div>
  45. {{template "base/footer" .}}