lab4 kiri
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ru">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{% block title %}Бухгалтерия{% endblock %}</title>
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<!-- CSS -->
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='main.css') }}">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<header class="header">
|
||||
<div class="container header-inner">
|
||||
<div class="logo">💼 Бухгалтерия</div>
|
||||
<nav>
|
||||
<a href="/">Главная</a>
|
||||
<a href="/employees">Сотрудники</a>
|
||||
<a href="/create">Добавить</a>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main class="container">
|
||||
{% with messages = get_flashed_messages(with_categories=true) %}
|
||||
{% if messages %}
|
||||
<div class="error-window">
|
||||
<div class="error-header">⚠️ Ошибки валидации</div>
|
||||
<div class="error-list">
|
||||
{% for category, message in messages %}
|
||||
<div class="error-item">• {{ message }}</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
|
||||
{% block body %}{% endblock %}
|
||||
</main>
|
||||
|
||||
<footer class="footer">
|
||||
Flask + SQLite • Лабораторная №4
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user