48 lines
1.7 KiB
Plaintext
48 lines
1.7 KiB
Plaintext
extends ../layout.pug
|
|
block title
|
|
|Icy Network - Register
|
|
|
|
block body
|
|
.container.mb-4.mt-4
|
|
h1 Create a new account
|
|
.row
|
|
.col
|
|
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)
|
|
.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)
|
|
button.btn.btn-primary(type="submit") Register
|
|
| or
|
|
a(href="/login") log in with an existing account
|
|
aside.col
|
|
include ../includes/external.pug
|