Рефакторинг структуры проекта: шаблоны, статика и модули приложения

This commit is contained in:
2026-04-16 15:55:44 +00:00
parent d3fdc65116
commit 254a52fd47
15 changed files with 1998 additions and 1980 deletions

22
templates/login.html Normal file
View File

@@ -0,0 +1,22 @@
<!doctype html>
<html lang="ru">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Admin Login</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&display=swap" rel="stylesheet">
<link rel="stylesheet" href="{{ url_for('static', filename='css/login.css') }}" />
</head>
<body>
<form method="post">
<h1>Редактор матрицы</h1>
{% if error %}<p class="error">{{ error }}</p>{% endif %}
<input type="hidden" name="action" value="login" />
<input name="username" placeholder="Логин" autocomplete="username" required />
<input type="password" name="password" placeholder="Пароль" autocomplete="current-password" required />
<button type="submit">Войти</button>
</form>
</body>
</html>