26 lines
1.1 KiB
HTML
26 lines
1.1 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}{{ t(key="login-title", lang=lang) }}{% endblock title %}
|
|
|
|
{% block content %}
|
|
<div class="mx-auto mt-8 max-w-sm rounded-lg border bg-white p-6">
|
|
<h1 class="mb-4 text-xl font-bold">{{ t(key="login-title", lang=lang) }}</h1>
|
|
{% if error %}
|
|
<div class="mb-3 rounded bg-red-100 px-3 py-2 text-sm text-red-700">{{ t(key="login-error", lang=lang) }}</div>
|
|
{% endif %}
|
|
<form method="post" action="/admin/login" class="space-y-3">
|
|
<div>
|
|
<label class="block text-sm text-gray-600">{{ t(key="email", lang=lang) }}</label>
|
|
<input type="email" name="email" required class="w-full rounded border-gray-300 text-sm">
|
|
</div>
|
|
<div>
|
|
<label class="block text-sm text-gray-600">{{ t(key="password", lang=lang) }}</label>
|
|
<input type="password" name="password" required class="w-full rounded border-gray-300 text-sm">
|
|
</div>
|
|
<button class="w-full rounded bg-gray-900 py-2 text-sm text-white hover:bg-gray-700">
|
|
{{ t(key="login-button", lang=lang) }}
|
|
</button>
|
|
</form>
|
|
</div>
|
|
{% endblock content %}
|