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