This repository has been archived on 2022-11-26. You can view files and clone it, but cannot push or open issues or pull requests.
IcyNet.eu/views/user/register.pug

51 lines
2.0 KiB
Plaintext

extends ../layout.pug
block title
|Icy Network - Register
block body
.container.mb-4.mt-4
h1 Create a new account
if message.text
if message.error
.alert.alert-danger
span #{message.text}
else
.alert.alert-success
span #{message.text}
form#loginForm(method="POST", action="")
input(type="hidden", name="csrf", value=csrf)
.form-group
label(for="username") Username
input.form-control#username(type="text", name="username", value=formkeep.username, aria-labelledby="usernameText")
small#usernameText English characters, numbers and -_ only.
.form-group
label(for="display_name") Display Name
input.form-control#display_name(type="text", name="display_name", value=formkeep.display_name, aria-labelledby="display_nameText")
small#display_nameText The name displayed on your public profiles.
.form-group
label(for="email") Email Address
input.form-control#email(type="email", name="email", value=formkeep.email, aria-labelledby="display_emailText")
small#display_emailText Used only for important updates regarding your account.
.form-group
label(for="password") Password
input.form-control#password(type="password", name="password", aria-labelledby="passwordText")
small#passwordText 8 characters minimum.
.form-group
label(for="password_repeat") Repeat Password
input.form-control#password_repeat(type="password", name="password_repeat", autocomplete="off")
small#repeatcheck(style="display: none")
if recaptcha
.form-group
label Captcha
script(src='https://www.google.com/recaptcha/api.js')
.g-recaptcha(data-sitekey=recaptcha)
.form-group
small By creating an account on Icy Network, you are indicating that you have read and agree to the
a(href="/docs/terms-of-service", target="_blank") Terms of Service
| and the
a(href="/docs/privacy-policy", target="_blank") Privacy Policy
|.
button.btn.btn-primary(type="submit") Register
| or
a(href="/login") log in with an existing account