kancelyary_project/templates/base.html

52 lines
2.2 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Канцелярские товары - Управление заказами</title>
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
<link rel="icon" href="{{ url_for('static', filename='img/favicon.ico') }}" type="image/x-icon">
</head>
<body>
<header>
<div class="container">
<div class="logo">
<img src="{{ url_for('static', filename='img/logo.png') }}" alt="Логотип" height="50">
<h1>Канцелярские товары</h1>
</div>
<nav>
<ul>
<li><a href="{{ url_for('index') }}" {% if request.endpoint == 'index' %}class="active"{% endif %}>Заказы</a></li>
<li><a href="{{ url_for('products') }}" {% if request.endpoint == 'products' %}class="active"{% endif %}>Товары</a></li>
<li><a href="{{ url_for('partners') }}" {% if request.endpoint == 'partners' %}class="active"{% endif %}>Партнеры</a></li>
<li><a href="{{ url_for('test_partner') }}" {% if request.endpoint == 'test_partner' %}class="active"{% endif %}>Тест партнера</a></li>
</ul>
</nav>
</div>
</header>
<main>
<div class="container">
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
{% for category, message in messages %}
<div class="alert alert-{{ category }}">{{ message }}</div>
{% endfor %}
{% endif %}
{% endwith %}
{% block content %}{% endblock %}
</div>
</main>
<footer>
<div class="container">
<p>&copy; 2026 Канцелярские товары. Все права защищены.</p>
<p>Курсовой проект по МДК 01.01</p>
</div>
</footer>
<script src="{{ url_for('static', filename='js/script.js') }}"></script>
{% block scripts %}{% endblock %}
</body>
</html>