Add web administration

This commit is contained in:
Alexey Dudin
2026-11-09 15:42:27 +03:00
parent c778db6208
commit ecad6f183c
16 changed files with 1161 additions and 14 deletions
@@ -0,0 +1,17 @@
{% extends 'base.html.j2' %}
{% block title %}Вход — админка{% endblock %}
{% block body %}
<main class='login'>
<h1>Вход в админку</h1>
{% if error %}<p class='error' role='alert'>{{ error }}</p>{% endif %}
<form method='post' action='/admin/login'>
<label>Логин
<input type='text' name='login' value='{{ login }}' autocomplete='username' required autofocus>
</label>
<label>Пароль
<input type='password' name='password' autocomplete='current-password' required>
</label>
<button type='submit'>Войти</button>
</form>
</main>
{% endblock %}