2017-03-17 10:16:08 -04:00
|
|
|
{{template "base/head" .}}
|
2020-11-30 23:00:14 -05:00
|
|
|
<div class="page-content user signup">
|
2017-03-17 10:16:08 -04:00
|
|
|
{{template "user/auth/signup_openid_navbar" .}}
|
|
|
|
<div class="ui container">
|
|
|
|
{{template "base/alert" .}}
|
|
|
|
<h4 class="ui top attached header">
|
|
|
|
{{.i18n.Tr "auth.openid_register_title"}}
|
|
|
|
</h4>
|
|
|
|
<div class="ui attached segment">
|
|
|
|
<p>
|
|
|
|
{{.i18n.Tr "auth.openid_register_desc"}}
|
|
|
|
</p>
|
|
|
|
<form class="ui form" action="{{.Link}}" method="post">
|
|
|
|
{{.CsrfTokenHtml}}
|
|
|
|
<div class="required inline field {{if .Err_UserName}}error{{end}}">
|
|
|
|
<label for="user_name">{{.i18n.Tr "username"}}</label>
|
2020-07-15 09:48:50 -04:00
|
|
|
<input id="user_name" type="text" name="user_name" value="{{.user_name}}" autofocus required>
|
2017-03-17 10:16:08 -04:00
|
|
|
</div>
|
|
|
|
<div class="required inline field {{if .Err_Email}}error{{end}}">
|
|
|
|
<label for="email">{{.i18n.Tr "email"}}</label>
|
|
|
|
<input id="email" name="email" type="email" value="{{.email}}" required>
|
|
|
|
</div>
|
2018-07-05 00:13:05 -04:00
|
|
|
{{if and .EnableCaptcha (eq .CaptchaType "image")}}
|
2017-03-17 12:40:39 -04:00
|
|
|
<div class="inline field">
|
|
|
|
<label></label>
|
2021-01-27 09:56:54 -05:00
|
|
|
{{.Captcha.CreateHTML}}
|
2017-03-17 12:40:39 -04:00
|
|
|
</div>
|
|
|
|
<div class="required inline field {{if .Err_Captcha}}error{{end}}">
|
|
|
|
<label for="captcha">{{.i18n.Tr "captcha"}}</label>
|
|
|
|
<input id="captcha" name="captcha" value="{{.captcha}}" autocomplete="off">
|
|
|
|
</div>
|
|
|
|
{{end}}
|
2018-07-05 00:13:05 -04:00
|
|
|
{{if and .EnableCaptcha (eq .CaptchaType "recaptcha")}}
|
|
|
|
<div class="inline field required">
|
|
|
|
<div class="g-recaptcha" data-sitekey="{{ .RecaptchaSitekey }}"></div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
2020-10-02 23:37:53 -04:00
|
|
|
{{if and .EnableCaptcha (eq .CaptchaType "hcaptcha")}}
|
|
|
|
<div class="inline field required">
|
|
|
|
<div class="h-captcha" data-sitekey="{{ .HcaptchaSitekey }}"></div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
2017-03-17 10:16:08 -04:00
|
|
|
<div class="inline field">
|
2017-03-19 21:50:24 -04:00
|
|
|
<label for="openid">OpenID URI</label>
|
|
|
|
<input id="openid" value="{{ .OpenID }}" readonly>
|
2017-03-17 10:16:08 -04:00
|
|
|
</div>
|
|
|
|
<div class="inline field">
|
|
|
|
<label></label>
|
|
|
|
<button class="ui green button">{{.i18n.Tr "auth.create_new_account"}}</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{template "base/footer" .}}
|