summaryrefslogtreecommitdiffstats
path: root/authentication/templates/register.html
diff options
context:
space:
mode:
authorGravatar Tom van der Lee <tom@vanderlee.io>2026-07-30 16:03:32 +0200
committerGravatar Tom van der Lee <tom@vanderlee.io>2026-07-30 16:03:32 +0200
commit2d22158dd95f76399f5716d556be60c77da04a46 (patch)
tree15fca3adae0f44674fe06bc141879804659c3664 /authentication/templates/register.html
parentaa56bc05285981d57c5adb2cee3c4e898fb2a702 (diff)
downloadserver-v3.tar.gz
server-v3.tar.bz2
server-v3.zip
Admin uiv3
Diffstat (limited to 'authentication/templates/register.html')
-rw-r--r--authentication/templates/register.html33
1 files changed, 14 insertions, 19 deletions
diff --git a/authentication/templates/register.html b/authentication/templates/register.html
index 576db78..a1959eb 100644
--- a/authentication/templates/register.html
+++ b/authentication/templates/register.html
@@ -1,24 +1,19 @@
1{% extends "./base.html" %} 1{% extends "./base.html" %}
2{% import 'macros.html' as ui %}
2 3
3{% block content %} 4{% block content %}
5 {% if is_first_run %}
6 <h1>Set up your ttun server</h1>
7 <p class="auth-form__intro">This will be the first account, with full access to manage this server.</p>
8 {% else %}
9 <h1>Create your account</h1>
10 <p class="auth-form__intro">This account will be able to sign in and manage this server.</p>
11 {% endif %}
4 <form method="post"> 12 <form method="post">
5 13 {{ ui.field('email', type='email', label='Email', value=form.email if form else '', error=errors.email if errors else '') }}
6 <input type="email" name="email" {% if form %}value="{{ form.email }}"{% endif %} placeholder="email" /> 14 {{ ui.field('password', type='password', label='Password', error=errors.password if errors else '') }}
7 {% if errors and errors.email%} 15 {{ ui.field('verify_password', type='password', label='Confirm password', error=errors.verify_password if errors else '') }}
8 {{ errors.email }} 16 {{ ui.button('Create account') }}
9 {% endif %}
10
11
12 <input type="password" name="password" />
13 {% if errors and errors.password%}
14 {{ errors.password }}
15 {% endif %}
16
17 <input type="password" name="verify_password" />
18 {% if errors and errors.password%}
19 {{ errors.verify_password }}
20 {% endif %}
21
22 <button type="submit">Register</button>
23 </form> 17 </form>
24{% endblock %} 18 <p class="auth-switch">Already have an account? <a href="/auth/login/">Sign in</a></p>
19{% endblock %}