46 lines
2.5 KiB
HTML
46 lines
2.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="ru">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>{% block title %}Стройка{% endblock %}</title>
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
|
|
</head>
|
|
<body>
|
|
<aside class="sidebar">
|
|
<div class="sidebar-logo">
|
|
<svg class="logo-icon" viewBox="0 0 40 40" fill="none">
|
|
<rect x="2" y="26" width="36" height="10" rx="2" fill="#A0522D"/>
|
|
<rect x="6" y="16" width="28" height="10" rx="2" fill="#DEB887"/>
|
|
<rect x="10" y="8" width="20" height="8" rx="2" fill="#FAEBD7"/>
|
|
<rect x="17" y="26" width="6" height="10" fill="#7B3F22"/>
|
|
</svg>
|
|
<span class="logo-text">Стройка</span>
|
|
<span class="logo-sub">Учёт материалов · Вариант №6</span>
|
|
</div>
|
|
<nav class="sidebar-nav">
|
|
<div class="nav-section-title">Разделы</div>
|
|
<a href="{{ url_for('index') }}" class="nav-link {% if request.endpoint=='index' or 'material' in request.endpoint %}active{% endif %}"><span class="nav-icon">📦</span> Материалы</a>
|
|
<a href="{{ url_for('counterparties_list') }}" class="nav-link {% if 'counterpart' in request.endpoint %}active{% endif %}"><span class="nav-icon">👥</span> Контрагенты</a>
|
|
<a href="{{ url_for('orders_list') }}" class="nav-link {% if 'order' in request.endpoint %}active{% endif %}"><span class="nav-icon">📋</span> Заказы</a>
|
|
<div class="nav-section-title">Экспорт</div>
|
|
<a href="{{ url_for('export_csv') }}" class="nav-link"><span class="nav-icon">💾</span> Экспорт CSV</a>
|
|
</nav>
|
|
<div class="sidebar-footer">Строительные материалы<br>Вариант №6 · 2026</div>
|
|
</aside>
|
|
<div class="main-wrapper">
|
|
<header class="topbar">
|
|
<div class="topbar-title"><span></span>{% block page_title %}Стройка{% endblock %}</div>
|
|
<div class="topbar-actions">{% block topbar_actions %}{% endblock %}</div>
|
|
</header>
|
|
<main class="page-body">
|
|
{% with messages = get_flashed_messages(with_categories=true) %}
|
|
{% if messages %}<div class="flash-container">{% for cat,msg in messages %}<div class="flash flash-{{ cat }}">{{ msg }}</div>{% endfor %}</div>{% endif %}
|
|
{% endwith %}
|
|
{% block content %}{% endblock %}
|
|
</main>
|
|
</div>
|
|
<script src="{{ url_for('static', filename='js/main.js') }}"></script>
|
|
</body>
|
|
</html>
|