2020-04-25 09:41:22 +02:00
|
|
|
{% extends 'layouts/base.njk' %}
|
|
|
|
|
|
|
|
{% set title = 'Example App - Hello world!' %}
|
|
|
|
|
|
|
|
{% block scripts %}
|
|
|
|
<script src="/js/register.js"></script>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block body %}
|
|
|
|
<div class="container">
|
|
|
|
<div class="panel center">
|
2020-04-25 16:13:07 +02:00
|
|
|
<h1>Register</h1>
|
|
|
|
|
2020-04-25 09:41:22 +02:00
|
|
|
<form action="{{ route('register') }}" method="POST">
|
2020-04-25 16:13:07 +02:00
|
|
|
<section class="sub-panel">
|
|
|
|
<h2>Username</h2>
|
|
|
|
{{ macros.field(_locals, 'text', 'username', null, 'Choose your username', 'This cannot be changed later.', 'pattern="[0-9a-z_-]+" required') }}
|
|
|
|
</section>
|
|
|
|
|
2020-04-25 09:41:22 +02:00
|
|
|
<section class="sub-panel">
|
|
|
|
<h2>Email</h2>
|
|
|
|
{{ macros.field(_locals, 'checkbox', 'create_email', null, 'Create an email address') }}
|
|
|
|
|
2020-04-25 10:11:14 +02:00
|
|
|
<div class="inline-fields">
|
2020-04-25 16:13:07 +02:00
|
|
|
<span id="email_username">@</span>
|
2020-04-25 09:41:22 +02:00
|
|
|
{{ macros.field(_locals, 'select', 'domain', null, 'Choose your domain', null, 'disabled', ['toot.party']) }}
|
|
|
|
</div>
|
2020-04-25 11:27:44 +02:00
|
|
|
{{ macros.fieldError(_locals, 'email') }}
|
2020-07-20 16:34:35 +02:00
|
|
|
<div class="hint"><i data-feather="info"></i> You won't be able to change this again.</div>
|
2020-04-25 09:41:22 +02:00
|
|
|
</section>
|
|
|
|
|
|
|
|
<section class="sub-panel">
|
2020-04-25 10:11:14 +02:00
|
|
|
<h2>Recovery email</h2>
|
|
|
|
{{ macros.field(_locals, 'email', 'recovery_email', null, 'Your email address', 'Optional') }}
|
2020-04-25 09:41:22 +02:00
|
|
|
</section>
|
|
|
|
|
|
|
|
<section class="sub-panel">
|
2020-04-25 10:11:14 +02:00
|
|
|
<h2>Password</h2>
|
|
|
|
{{ macros.field(_locals, 'password', 'password', null, 'Choose a password', null, 'required') }}
|
|
|
|
{{ macros.field(_locals, 'password', 'password_confirmation', null, 'Confirm your password', null, 'required') }}
|
2020-04-25 09:41:22 +02:00
|
|
|
</section>
|
|
|
|
|
|
|
|
{{ macros.field(_locals, 'checkbox', 'terms', null, 'I accept the terms of services', null, 'required') }}
|
|
|
|
|
2020-07-20 16:34:35 +02:00
|
|
|
<button type="submit"><i data-feather="user-plus"></i>Register</button>
|
2020-04-25 09:41:22 +02:00
|
|
|
|
|
|
|
{{ macros.csrf(getCSRFToken) }}
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|