193 lines
5 KiB
HTML
193 lines
5 KiB
HTML
<!doctype html>
|
|
<html lang="ru">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>Ювелирный Склад</title>
|
|
<style>
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
body {
|
|
font-family: Constantia, Georgia, serif;
|
|
background: #FFFAF0;
|
|
min-height: 100vh;
|
|
}
|
|
nav {
|
|
background: #F5DEB3;
|
|
padding: 1rem 2rem;
|
|
border-bottom: 2px solid #D2691E;
|
|
display: flex;
|
|
gap: 2rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
nav a {
|
|
color: #D2691E;
|
|
text-decoration: none;
|
|
font-weight: bold;
|
|
font-size: 1.1rem;
|
|
padding: 0.5rem 1rem;
|
|
border-radius: 8px;
|
|
transition: background 0.3s;
|
|
}
|
|
nav a:hover {
|
|
background: rgba(210, 105, 30, 0.2);
|
|
}
|
|
.container {
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
padding: 2rem;
|
|
}
|
|
h1 {
|
|
color: #D2691E;
|
|
margin-bottom: 1.5rem;
|
|
font-size: 2rem;
|
|
}
|
|
table {
|
|
width: 100%;
|
|
background: white;
|
|
border-collapse: collapse;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
|
|
}
|
|
th, td {
|
|
padding: 12px;
|
|
text-align: left;
|
|
border-bottom: 1px solid #F5DEB3;
|
|
}
|
|
th {
|
|
background: #F5DEB3;
|
|
color: #D2691E;
|
|
font-weight: bold;
|
|
}
|
|
tr:hover {
|
|
background: #FFF8F0;
|
|
}
|
|
.alert {
|
|
padding: 12px 20px;
|
|
margin-bottom: 20px;
|
|
border-left: 4px solid;
|
|
border-radius: 8px;
|
|
}
|
|
.alert-success {
|
|
background: #e8f5e9;
|
|
border-left-color: #4caf50;
|
|
color: #2e7d32;
|
|
}
|
|
.alert-error {
|
|
background: #ffebee;
|
|
border-left-color: #f44336;
|
|
color: #c62828;
|
|
}
|
|
.stats {
|
|
display: flex;
|
|
gap: 20px;
|
|
margin-bottom: 30px;
|
|
flex-wrap: wrap;
|
|
}
|
|
.stat-card {
|
|
background: white;
|
|
padding: 20px;
|
|
border-radius: 12px;
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
|
|
flex: 1;
|
|
min-width: 150px;
|
|
text-align: center;
|
|
}
|
|
.stat-card h3 {
|
|
color: #D2691E;
|
|
margin-bottom: 10px;
|
|
}
|
|
.stat-card .number {
|
|
font-size: 2rem;
|
|
font-weight: bold;
|
|
color: #8B4513;
|
|
}
|
|
.btn {
|
|
display: inline-block;
|
|
padding: 10px 20px;
|
|
text-decoration: none;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
border: none;
|
|
font-family: inherit;
|
|
}
|
|
.btn-primary {
|
|
background: #D2691E;
|
|
color: white;
|
|
}
|
|
.btn-primary:hover {
|
|
background: #b85c1a;
|
|
}
|
|
.btn-secondary {
|
|
background: #F5DEB3;
|
|
color: #D2691E;
|
|
}
|
|
.btn-small {
|
|
padding: 5px 10px;
|
|
font-size: 0.9rem;
|
|
}
|
|
.form-group {
|
|
margin-bottom: 15px;
|
|
}
|
|
.form-group label {
|
|
display: block;
|
|
margin-bottom: 5px;
|
|
font-weight: bold;
|
|
}
|
|
.form-group input, .form-group select, .form-group textarea {
|
|
width: 100%;
|
|
padding: 8px;
|
|
border: 1px solid #F5DEB3;
|
|
border-radius: 5px;
|
|
font-family: inherit;
|
|
}
|
|
.form-card {
|
|
background: white;
|
|
padding: 20px;
|
|
border-radius: 12px;
|
|
max-width: 600px;
|
|
}
|
|
.item-row {
|
|
display: flex;
|
|
gap: 10px;
|
|
margin-bottom: 10px;
|
|
}
|
|
.item-row select {
|
|
flex: 2;
|
|
}
|
|
.item-row input {
|
|
flex: 1;
|
|
}
|
|
@media (max-width: 768px) {
|
|
.container { padding: 1rem; }
|
|
nav { justify-content: center; }
|
|
table { font-size: 0.9rem; }
|
|
th, td { padding: 8px; }
|
|
.item-row { flex-direction: column; }
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<nav>
|
|
<a href="/">🏠 Заявки</a>
|
|
<a href="/products">💎 Товары</a>
|
|
<a href="/partners">🤝 Партнеры</a>
|
|
<a href="/metal_types">🔩 Металлы</a>
|
|
</nav>
|
|
<div class="container">
|
|
{% with messages = get_flashed_messages(with_categories=true) %}
|
|
{% if messages %}
|
|
{% for category, msg in messages %}
|
|
<div class="alert alert-{{ category if category else 'info' }}">{{ msg }}</div>
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endwith %}
|
|
{% block content %}{% endblock %}
|
|
</div>
|
|
</body>
|
|
</html>
|