rainbox.email/views/register.njk

34 lines
1.3 KiB
Plaintext
Raw Normal View History

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">
<h1>Register</h1>
2020-04-25 09:41:22 +02:00
<form action="{{ route('register') }}" method="POST">
<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">
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') }}
<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 %}