2026-04-29 17:49:07 +03:00
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="{{ lang.code() }}">
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
|
<title>{{ t.nav_title }} — {% block title %}{% endblock %}</title>
|
2026-05-14 16:12:33 +03:00
|
|
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
|
2026-04-29 17:49:07 +03:00
|
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@1/css/bulma.min.css">
|
|
|
|
|
<style>
|
2026-05-11 12:52:41 +01:00
|
|
|
:root { --accent: #6c63ff; color-scheme: light; }
|
|
|
|
|
body { padding-bottom: 4rem; min-height: 100vh; background: #f5f5f5; color: #333; }
|
2026-04-29 17:49:07 +03:00
|
|
|
|
|
|
|
|
/* ── Top bar ── */
|
|
|
|
|
.top-header {
|
|
|
|
|
background: #fff; border-bottom: 1px solid #e8e8e8;
|
|
|
|
|
padding: 0.5rem 1rem; display: flex; align-items: center;
|
|
|
|
|
justify-content: space-between; position: sticky; top: 0; z-index: 30;
|
|
|
|
|
}
|
|
|
|
|
.top-header .brand { font-weight: 700; font-size: 1.1rem; color: #333; text-decoration: none; }
|
|
|
|
|
.top-header-right { display: flex; align-items: center; gap: 0.75rem; font-size: 0.85rem; }
|
|
|
|
|
.top-header-right a { color: #888; text-decoration: none; }
|
|
|
|
|
.top-header-right .admin-name { color: #aaa; }
|
|
|
|
|
|
|
|
|
|
/* ── Bottom tabs (mobile nav) ── */
|
|
|
|
|
.bottom-tabs {
|
|
|
|
|
position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
|
|
|
|
|
background: #fff; border-top: 1px solid #e8e8e8;
|
|
|
|
|
display: flex; height: 3.5rem;
|
2026-05-15 15:55:37 +03:00
|
|
|
overflow-x: auto; -webkit-overflow-scrolling: touch;
|
|
|
|
|
scrollbar-width: none;
|
2026-04-29 17:49:07 +03:00
|
|
|
}
|
2026-05-15 15:55:37 +03:00
|
|
|
.bottom-tabs::-webkit-scrollbar { display: none; }
|
2026-04-29 17:49:07 +03:00
|
|
|
.bottom-tabs a {
|
2026-05-15 15:55:37 +03:00
|
|
|
flex: 0 0 auto; min-width: 3.2rem; padding: 0 0.45rem;
|
|
|
|
|
display: flex; flex-direction: column; align-items: center;
|
2026-04-29 17:49:07 +03:00
|
|
|
justify-content: center; text-decoration: none; color: #999;
|
2026-05-15 15:55:37 +03:00
|
|
|
font-size: 0.6rem; font-weight: 600; gap: 0.1rem;
|
|
|
|
|
transition: color 0.15s; white-space: nowrap;
|
2026-04-29 17:49:07 +03:00
|
|
|
}
|
|
|
|
|
.bottom-tabs a .tab-icon { font-size: 1.25rem; line-height: 1; }
|
2026-05-15 15:55:37 +03:00
|
|
|
.bottom-tabs a .tab-label { display: block; }
|
2026-04-29 17:49:07 +03:00
|
|
|
.bottom-tabs a.is-active { color: var(--accent); }
|
2026-05-15 15:55:37 +03:00
|
|
|
@media (max-width: 400px) {
|
|
|
|
|
.bottom-tabs a .tab-label { display: none; }
|
|
|
|
|
.bottom-tabs a { min-width: 2.8rem; padding: 0 0.3rem; }
|
|
|
|
|
}
|
2026-04-29 17:49:07 +03:00
|
|
|
|
|
|
|
|
/* ── Desktop: hide bottom tabs, show top nav ── */
|
|
|
|
|
.desktop-nav { display: none; }
|
|
|
|
|
@media (min-width: 769px) {
|
|
|
|
|
body { padding-bottom: 0; }
|
|
|
|
|
.bottom-tabs { display: none; }
|
|
|
|
|
.desktop-nav { display: flex; gap: 0.25rem; }
|
|
|
|
|
.desktop-nav a {
|
|
|
|
|
padding: 0.3rem 0.75rem; border-radius: 6px; font-size: 0.9rem;
|
|
|
|
|
color: #555; text-decoration: none; transition: background 0.15s;
|
|
|
|
|
}
|
|
|
|
|
.desktop-nav a:hover { background: #f0f0f0; }
|
|
|
|
|
.desktop-nav a.is-active { background: var(--accent); color: #fff; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ── Content ── */
|
|
|
|
|
.main-content { padding: 1rem; max-width: 900px; margin: 0 auto; }
|
|
|
|
|
|
|
|
|
|
/* ── Status badges ── */
|
|
|
|
|
.badge { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 99px; font-size: 0.75rem; font-weight: 600; }
|
|
|
|
|
.badge-new { background: #dbeafe; color: #1e40af; }
|
|
|
|
|
.badge-in_progress { background: #fef3c7; color: #92400e; }
|
|
|
|
|
.badge-converted { background: #d1fae5; color: #065f46; }
|
|
|
|
|
.badge-rejected { background: #fee2e2; color: #991b1b; }
|
|
|
|
|
.badge-active { background: #d1fae5; color: #065f46; }
|
|
|
|
|
.badge-archived { background: #e5e7eb; color: #374151; }
|
|
|
|
|
.badge-visit-scheduled { background: #dbeafe; color: #1e40af; }
|
|
|
|
|
.badge-visit-completed { background: #d1fae5; color: #065f46; }
|
|
|
|
|
.badge-visit-cancelled { background: #e5e7eb; color: #374151; }
|
|
|
|
|
|
|
|
|
|
/* ── Item cards ── */
|
|
|
|
|
.item-card {
|
|
|
|
|
background: #fff; border-radius: 10px; padding: 0.85rem 1rem;
|
|
|
|
|
margin-bottom: 0.6rem; border: 1px solid #eee;
|
|
|
|
|
}
|
|
|
|
|
.item-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.3rem; }
|
|
|
|
|
.item-card-header .name { font-weight: 700; font-size: 1rem; }
|
|
|
|
|
.item-card-meta { color: #888; font-size: 0.82rem; line-height: 1.5; }
|
|
|
|
|
.item-card-meta span { margin-right: 1rem; }
|
|
|
|
|
.item-card-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.5rem; }
|
|
|
|
|
.item-card-actions form { margin: 0; }
|
|
|
|
|
|
|
|
|
|
/* ── Small buttons ── */
|
|
|
|
|
.btn-sm { font-size: 0.78rem !important; padding: 0.25rem 0.6rem !important; height: auto !important; }
|
|
|
|
|
|
|
|
|
|
/* ── Page header ── */
|
|
|
|
|
.page-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
|
|
|
|
|
.page-head h1 { font-size: 1.3rem; font-weight: 700; margin: 0; }
|
|
|
|
|
|
|
|
|
|
/* ── Forms ── */
|
|
|
|
|
.form-card { background: #fff; border-radius: 10px; padding: 1.25rem; border: 1px solid #eee; }
|
2026-05-11 13:00:22 +01:00
|
|
|
input, textarea, select,
|
|
|
|
|
.input, .textarea, .select select {
|
|
|
|
|
background-color: #fff !important;
|
|
|
|
|
color: #333 !important;
|
|
|
|
|
border-color: #dbdbdb !important;
|
|
|
|
|
}
|
2026-05-11 13:03:51 +01:00
|
|
|
.label, label {
|
|
|
|
|
color: #363636 !important;
|
|
|
|
|
}
|
2026-05-11 13:25:19 +01:00
|
|
|
h1, h2, h3, h4, h5, h6, strong, b, p, span, div, a, td, th, li {
|
|
|
|
|
color: inherit;
|
|
|
|
|
}
|
|
|
|
|
.title, .subtitle, .content, .has-text-dark {
|
|
|
|
|
color: #363636 !important;
|
|
|
|
|
}
|
|
|
|
|
.has-text-grey { color: #7a7a7a !important; }
|
|
|
|
|
.notification { color: #333 !important; }
|
2026-04-29 17:49:07 +03:00
|
|
|
</style>
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
|
|
|
|
|
<!-- Top header -->
|
|
|
|
|
<div class="top-header">
|
2026-05-11 12:52:41 +01:00
|
|
|
<a class="brand" href="/admin/?lang={{ lang.code() }}">🐾 {{ t.nav_title }} <span style="font-size:0.7rem;font-weight:400;color:#aaa;">v{{ t.app_version() }}</span></a>
|
2026-04-29 17:49:07 +03:00
|
|
|
<nav class="desktop-nav">
|
|
|
|
|
<a href="/admin/?lang={{ lang.code() }}" {% if active_page == "dashboard" %}class="is-active"{% endif %}>{{ t.dashboard_title }}</a>
|
|
|
|
|
<a href="/admin/leads?lang={{ lang.code() }}" {% if active_page == "leads" %}class="is-active"{% endif %}>{{ t.nav_leads }}</a>
|
|
|
|
|
<a href="/admin/clients?lang={{ lang.code() }}" {% if active_page == "clients" %}class="is-active"{% endif %}>{{ t.nav_clients }}</a>
|
|
|
|
|
<a href="/admin/schedule?lang={{ lang.code() }}" {% if active_page == "schedule" %}class="is-active"{% endif %}>{{ t.nav_schedule }}</a>
|
|
|
|
|
<a href="/admin/media?lang={{ lang.code() }}" {% if active_page == "media" %}class="is-active"{% endif %}>{{ t.nav_media }}</a>
|
2026-05-11 11:34:11 +01:00
|
|
|
<a href="/admin/testimonials?lang={{ lang.code() }}" {% if active_page == "testimonials" %}class="is-active"{% endif %}>{{ t.nav_testimonials }}</a>
|
2026-04-29 17:49:07 +03:00
|
|
|
<a href="/admin/users?lang={{ lang.code() }}" {% if active_page == "users" %}class="is-active"{% endif %}>{{ t.nav_users }}</a>
|
|
|
|
|
<a href="/admin/settings?lang={{ lang.code() }}" {% if active_page == "settings" %}class="is-active"{% endif %}>{{ t.nav_settings }}</a>
|
|
|
|
|
</nav>
|
|
|
|
|
<div class="top-header-right">
|
|
|
|
|
<span class="admin-name">{{ admin_name }}</span>
|
|
|
|
|
<a href="/admin/logout">{{ t.logout }}</a>
|
|
|
|
|
<a href="?lang={{ lang.other().code() }}">{{ lang.other().label() }}</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- Main -->
|
|
|
|
|
<div class="main-content">
|
|
|
|
|
{% block content %}{% endblock %}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- Bottom tabs (mobile) -->
|
|
|
|
|
<nav class="bottom-tabs">
|
|
|
|
|
<a href="/admin/?lang={{ lang.code() }}" {% if active_page == "dashboard" %}class="is-active"{% endif %}>
|
2026-05-15 15:55:37 +03:00
|
|
|
<span class="tab-icon">🏠</span><span class="tab-label">{{ t.dashboard_title }}</span>
|
2026-04-29 17:49:07 +03:00
|
|
|
</a>
|
|
|
|
|
<a href="/admin/leads?lang={{ lang.code() }}" {% if active_page == "leads" %}class="is-active"{% endif %}>
|
2026-05-15 15:55:37 +03:00
|
|
|
<span class="tab-icon">📋</span><span class="tab-label">{{ t.nav_leads }}</span>
|
2026-04-29 17:49:07 +03:00
|
|
|
</a>
|
|
|
|
|
<a href="/admin/clients?lang={{ lang.code() }}" {% if active_page == "clients" %}class="is-active"{% endif %}>
|
2026-05-15 15:55:37 +03:00
|
|
|
<span class="tab-icon">👥</span><span class="tab-label">{{ t.nav_clients }}</span>
|
2026-04-29 17:49:07 +03:00
|
|
|
</a>
|
|
|
|
|
<a href="/admin/schedule?lang={{ lang.code() }}" {% if active_page == "schedule" %}class="is-active"{% endif %}>
|
2026-05-15 15:55:37 +03:00
|
|
|
<span class="tab-icon">📅</span><span class="tab-label">{{ t.nav_schedule }}</span>
|
2026-04-29 17:49:07 +03:00
|
|
|
</a>
|
|
|
|
|
<a href="/admin/media?lang={{ lang.code() }}" {% if active_page == "media" %}class="is-active"{% endif %}>
|
2026-05-15 15:55:37 +03:00
|
|
|
<span class="tab-icon">📷</span><span class="tab-label">{{ t.nav_media }}</span>
|
2026-04-29 17:49:07 +03:00
|
|
|
</a>
|
2026-05-11 11:34:11 +01:00
|
|
|
<a href="/admin/testimonials?lang={{ lang.code() }}" {% if active_page == "testimonials" %}class="is-active"{% endif %}>
|
2026-05-15 15:55:37 +03:00
|
|
|
<span class="tab-icon">💬</span><span class="tab-label">{{ t.nav_testimonials }}</span>
|
2026-05-11 11:34:11 +01:00
|
|
|
</a>
|
2026-04-29 17:49:07 +03:00
|
|
|
<a href="/admin/users?lang={{ lang.code() }}" {% if active_page == "users" %}class="is-active"{% endif %}>
|
2026-05-15 15:55:37 +03:00
|
|
|
<span class="tab-icon">🔑</span><span class="tab-label">{{ t.nav_users }}</span>
|
2026-04-29 17:49:07 +03:00
|
|
|
</a>
|
|
|
|
|
<a href="/admin/settings?lang={{ lang.code() }}" {% if active_page == "settings" %}class="is-active"{% endif %}>
|
2026-05-15 15:55:37 +03:00
|
|
|
<span class="tab-icon">⚙️</span><span class="tab-label">{{ t.nav_settings }}</span>
|
2026-04-29 17:49:07 +03:00
|
|
|
</a>
|
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
|
|
{% include "partials/lightbox.html" %}
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|