144 lines
7.2 KiB
HTML
144 lines
7.2 KiB
HTML
<!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>
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@1/css/bulma.min.css">
|
|
<style>
|
|
:root { --accent: #6c63ff; }
|
|
body { padding-bottom: 4rem; min-height: 100vh; background: #f5f5f5; }
|
|
|
|
/* ── 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;
|
|
}
|
|
.bottom-tabs a {
|
|
flex: 1; display: flex; flex-direction: column; align-items: center;
|
|
justify-content: center; text-decoration: none; color: #999;
|
|
font-size: 0.65rem; font-weight: 600; gap: 0.15rem;
|
|
transition: color 0.15s;
|
|
}
|
|
.bottom-tabs a .tab-icon { font-size: 1.25rem; line-height: 1; }
|
|
.bottom-tabs a.is-active { color: var(--accent); }
|
|
|
|
/* ── 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; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<!-- Top header -->
|
|
<div class="top-header">
|
|
<a class="brand" href="/admin/?lang={{ lang.code() }}">🐾 {{ t.nav_title }}</a>
|
|
<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>
|
|
<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 %}>
|
|
<span class="tab-icon">🏠</span>{{ t.dashboard_title }}
|
|
</a>
|
|
<a href="/admin/leads?lang={{ lang.code() }}" {% if active_page == "leads" %}class="is-active"{% endif %}>
|
|
<span class="tab-icon">📋</span>{{ t.nav_leads }}
|
|
</a>
|
|
<a href="/admin/clients?lang={{ lang.code() }}" {% if active_page == "clients" %}class="is-active"{% endif %}>
|
|
<span class="tab-icon">👥</span>{{ t.nav_clients }}
|
|
</a>
|
|
<a href="/admin/schedule?lang={{ lang.code() }}" {% if active_page == "schedule" %}class="is-active"{% endif %}>
|
|
<span class="tab-icon">📅</span>{{ t.nav_schedule }}
|
|
</a>
|
|
<a href="/admin/media?lang={{ lang.code() }}" {% if active_page == "media" %}class="is-active"{% endif %}>
|
|
<span class="tab-icon">📷</span>{{ t.nav_media }}
|
|
</a>
|
|
<a href="/admin/users?lang={{ lang.code() }}" {% if active_page == "users" %}class="is-active"{% endif %}>
|
|
<span class="tab-icon">🔑</span>{{ t.nav_users }}
|
|
</a>
|
|
<a href="/admin/settings?lang={{ lang.code() }}" {% if active_page == "settings" %}class="is-active"{% endif %}>
|
|
<span class="tab-icon">⚙️</span>{{ t.nav_settings }}
|
|
</a>
|
|
</nav>
|
|
|
|
{% include "partials/lightbox.html" %}
|
|
</body>
|
|
</html>
|