{% extends "root.html" %}
{% block content %}
<div class="hero min-h-[70vh]">
<div class="hero-content flex-col lg:flex-row-reverse">
<div class="text-center lg:text-left">
<h1 class="text-5xl font-bold">Register</h1>
<p class="py-6">Create your {{ app_name }} account.</p>
{% if invite_token %}
<div class="alert alert-success">
<i class="fas fa-envelope-open-text"></i>
<span>You're using an invite link — the token is filled in below.</span>
</div>
{% endif %}
</div>
<div class="card shrink-0 w-full max-w-sm shadow-2xl bg-base-100">
<form class="card-body" action="/auth/register" method="post" hx-boost="false">
<div class="form-control">
<label class="label"><span class="label-text">Username</span></label>
<input type="text" name="username" placeholder="Choose a username" class="input input-bordered" required autofocus/>
</div>
<div class="form-control">
<label class="label"><span class="label-text">Email</span></label>
<input type="email" name="email" placeholder="you@example.com" class="input input-bordered" required/>
</div>
<div class="form-control">
<label class="label"><span class="label-text">Password</span></label>
<input type="password" name="password" placeholder="Password" class="input input-bordered" required/>
</div>
<div class="form-control">
<label class="label"><span class="label-text">Confirm password</span></label>
<input type="password" name="confirm_password" placeholder="Confirm password" class="input input-bordered" required/>
</div>
<div class="form-control">
<label class="label"><span class="label-text">Invite token</span></label>
<input type="text" name="registration_token" placeholder="Your invite token"
class="input input-bordered{% if invite_token %} input-disabled{% endif %}"
value="{{ invite_token or '' }}"
{% if invite_token %}readonly{% endif %} required/>
</div>
<div class="form-control mt-6">
<button class="btn btn-primary" type="submit"><i class="fas fa-user-plus mr-2"></i> Register</button>
</div>
<div class="text-center mt-4">
<p class="text-sm">Already have an account? <a href="/login" class="link link-primary">Log in</a></p>
</div>
</form>
</div>
</div>
</div>
{% endblock %}
neiam
/fieri-forever
the flavortown lunch engine
public · Issues · Pulls · Labels · Forks · Compare · Actions success · Badges · Packages
⭐
Log in to mark this repository.
2.8 KiB · text
History
25c4237