summaryrefslogtreecommitdiffstats
path: root/authentication/templates/register.html
blob: a1959eb6f0333f9cc3af16d35f03813dc6143d6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{% extends "./base.html" %}
{% import 'macros.html' as ui %}

{% block content %}
    {% if is_first_run %}
        <h1>Set up your ttun server</h1>
        <p class="auth-form__intro">This will be the first account, with full access to manage this server.</p>
    {% else %}
        <h1>Create your account</h1>
        <p class="auth-form__intro">This account will be able to sign in and manage this server.</p>
    {% endif %}
    <form method="post">
        {{ ui.field('email', type='email', label='Email', value=form.email if form else '', error=errors.email if errors else '') }}
        {{ ui.field('password', type='password', label='Password', error=errors.password if errors else '') }}
        {{ ui.field('verify_password', type='password', label='Confirm password', error=errors.verify_password if errors else '') }}
        {{ ui.button('Create account') }}
    </form>
    <p class="auth-switch">Already have an account? <a href="/auth/login/">Sign in</a></p>
{% endblock %}