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">
|
2022-06-27 16:58:46 -04:00
|
|
|
{{.locale.Tr "auth.openid_register_title"}}
|
2017-03-17 10:16:08 -04:00
|
|
|
</h4>
|
|
|
|
<div class="ui attached segment">
|
|
|
|
<p>
|
2022-06-27 16:58:46 -04:00
|
|
|
{{.locale.Tr "auth.openid_register_desc"}}
|
2017-03-17 10:16:08 -04:00
|
|
|
</p>
|
|
|
|
<form class="ui form" action="{{.Link}}" method="post">
|
|
|
|
{{.CsrfTokenHtml}}
|
|
|
|
<div class="required inline field {{if .Err_UserName}}error{{end}}">
|
2022-06-27 16:58:46 -04:00
|
|
|
<label for="user_name">{{.locale.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}}">
|
2022-06-27 16:58:46 -04:00
|
|
|
<label for="email">{{.locale.Tr "email"}}</label>
|
2017-03-17 10:16:08 -04:00
|
|
|
<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}}">
|
2022-06-27 16:58:46 -04:00
|
|
|
<label for="captcha">{{.locale.Tr "captcha"}}</label>
|
2017-03-17 12:40:39 -04:00
|
|
|
<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>
|
2022-06-27 16:58:46 -04:00
|
|
|
<button class="ui green button">{{.locale.Tr "auth.create_new_account"}}</button>
|
2017-03-17 10:16:08 -04:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{template "base/footer" .}}
|