45 lines
1.5 KiB
HTML
45 lines
1.5 KiB
HTML
@(form: Form[_], recaptcha: lila.security.RecaptchaPublicConfig)(implicit ctx: Context)
|
|
|
|
@moreJs = {
|
|
@jsTag("signup.js")
|
|
@if(recaptcha.enabled) {
|
|
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
|
|
}
|
|
@fingerprintTag
|
|
}
|
|
|
|
@tosLink = {
|
|
<a href="@routes.Page.tos">@trans.termsOfService()</a>
|
|
}
|
|
|
|
@auth.layout(
|
|
title = trans.signUp.txt(),
|
|
moreJs = moreJs,
|
|
formCss = true,
|
|
csp = defaultCsp.withRecaptcha.some) {
|
|
<div class="content_box small_box signup">
|
|
<div class="alternative">
|
|
@trans.haveAnAccount()
|
|
<a href="@routes.Auth.login()" class="text button" data-icon="F">@trans.signIn()</a>
|
|
</div>
|
|
<div class="signup_box">
|
|
<h1 class="lichess_title">@trans.signUp()</h1>
|
|
<form id="signup_form" class="form3" action="@routes.Auth.signupPost" method="POST">
|
|
@auth.formFields(form("username"), form("password"), form("email").some, register = true)
|
|
<input id="signup-fp-input" name="fp" type="hidden" />
|
|
<div class="form-group text" data-icon="">
|
|
@trans.computersAreNotAllowedToPlay()<br />
|
|
<small>@trans.byRegisteringYouAgreeToBeBoundByOur(tosLink)</small>
|
|
</div>
|
|
@form3.actionHtml {
|
|
@if(recaptcha.enabled) {
|
|
<button class="g-recaptcha submit button text big" data-icon="F" data-sitekey="@recaptcha.key" data-callback='signupSubmit'>@trans.signUp()</button>
|
|
} else {
|
|
@form3.submit(trans.signUp.frag(), icon = "F".some, klass = "big")
|
|
}
|
|
}
|
|
</form>
|
|
</div>
|
|
</div>
|
|
}
|