From 2d22158dd95f76399f5716d556be60c77da04a46 Mon Sep 17 00:00:00 2001 From: Tom van der Lee Date: Thu, 30 Jul 2026 16:03:32 +0200 Subject: Admin ui --- authentication/templates/register.html | 33 ++++++++++++++------------------- 1 file changed, 14 insertions(+), 19 deletions(-) (limited to 'authentication/templates/register.html') 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 @@ {% extends "./base.html" %} +{% import 'macros.html' as ui %} {% block content %} + {% if is_first_run %} +

Set up your ttun server

+

This will be the first account, with full access to manage this server.

+ {% else %} +

Create your account

+

This account will be able to sign in and manage this server.

+ {% endif %}
- - - {% if errors and errors.email%} - {{ errors.email }} - {% endif %} - - - - {% if errors and errors.password%} - {{ errors.password }} - {% endif %} - - - {% if errors and errors.password%} - {{ errors.verify_password }} - {% endif %} - - + {{ 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') }}
-{% endblock %} +

Already have an account? Sign in

+{% endblock %} -- cgit v1.2.3