ui from the tenis kurt website

This commit is contained in:
Priec
2026-05-17 15:21:07 +02:00
parent 622afc310d
commit 059fdf1b49
4 changed files with 58 additions and 40 deletions

View File

@@ -3,21 +3,27 @@
{% block title %}Admin login{% endblock title %}
{% block content %}
<h1>Admin login</h1>
{% if error %}
<p>{{ error }}</p>
{% endif %}
<form method="post" action="/admin/login">
<label>
Email
<input type="email" name="email" required>
</label>
<label>
Password
<input type="password" name="password" required>
</label>
<button type="submit">Login</button>
</form>
<div class="mx-auto mt-8 max-w-sm">
<div class="card border border-base-300 bg-base-100 shadow-sm">
<div class="card-body">
<h1 class="card-title">Admin login</h1>
{% if error %}
<div class="alert alert-error">
<span>Invalid email or password.</span>
</div>
{% endif %}
<form method="post" action="/admin/login" class="space-y-2">
<div class="form-control">
<label class="label"><span class="label-text">Email</span></label>
<input type="email" name="email" required class="input input-bordered w-full">
</div>
<div class="form-control">
<label class="label"><span class="label-text">Password</span></label>
<input type="password" name="password" required class="input input-bordered w-full">
</div>
<button class="btn btn-neutral mt-2 w-full">Login</button>
</form>
</div>
</div>
</div>
{% endblock content %}