155 lines
6.4 KiB
HTML
Executable File
155 lines
6.4 KiB
HTML
Executable File
<!DOCTYPE html>
|
|
<html lang="de">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>{% block title %}{{ branding.company_name }}{% endblock %}</title>
|
|
{% if branding.favicon_url %}
|
|
<link rel="icon" href="{{ branding.favicon_url }}" type="image/x-icon">
|
|
{% endif %}
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css" rel="stylesheet">
|
|
<link href="{{ url_for('static', filename='css/style.css') }}" rel="stylesheet">
|
|
<style>
|
|
:root {
|
|
--portal-primary: {{ branding.colors.primary }};
|
|
--portal-primary-hover: {{ branding.colors.primary_hover }};
|
|
--portal-bg: {{ branding.colors.background }};
|
|
--portal-header-bg: {{ branding.colors.header_bg }};
|
|
--portal-text: {{ branding.colors.text }};
|
|
--portal-muted: {{ branding.colors.muted }};
|
|
--portal-border: {{ branding.colors.border }};
|
|
}
|
|
|
|
body {
|
|
background: var(--portal-bg) !important;
|
|
color: var(--portal-text) !important;
|
|
}
|
|
|
|
.navbar {
|
|
background: var(--portal-header-bg) !important;
|
|
}
|
|
|
|
.btn-success {
|
|
background-color: var(--portal-primary) !important;
|
|
border-color: var(--portal-primary) !important;
|
|
}
|
|
|
|
.btn-success:hover {
|
|
background-color: var(--portal-primary-hover) !important;
|
|
border-color: var(--portal-primary-hover) !important;
|
|
}
|
|
|
|
.text-success {
|
|
color: var(--portal-primary) !important;
|
|
}
|
|
|
|
a.text-success:hover {
|
|
color: var(--portal-primary-hover) !important;
|
|
}
|
|
|
|
.border-secondary {
|
|
border-color: var(--portal-border) !important;
|
|
}
|
|
|
|
.text-muted {
|
|
color: var(--portal-muted) !important;
|
|
}
|
|
</style>
|
|
{% block extra_css %}{% endblock %}
|
|
</head>
|
|
<body class="bg-dark text-light">
|
|
<nav class="navbar navbar-expand-lg navbar-dark bg-dark border-bottom border-secondary">
|
|
<div class="container">
|
|
<a class="navbar-brand" href="{{ url_for('main.index') }}">
|
|
{% if branding.logo_url %}
|
|
<img src="{{ branding.logo_url }}" alt="{{ branding.company_name }}" style="max-height: 40px;">
|
|
{% else %}
|
|
<i class="bi bi-calendar-event me-2"></i>
|
|
{{ branding.company_name }}
|
|
{% endif %}
|
|
</a>
|
|
{% if g.customer %}
|
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
|
|
<span class="navbar-toggler-icon"></span>
|
|
</button>
|
|
<div class="collapse navbar-collapse" id="navbarNav">
|
|
<ul class="navbar-nav me-auto">
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="{{ url_for('main.dashboard') }}">
|
|
<i class="bi bi-house me-1"></i> Dashboard
|
|
</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="{{ url_for('bookings.list_bookings') }}">
|
|
<i class="bi bi-calendar-check me-1"></i> Buchungen
|
|
</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="{{ url_for('invoices.list_invoices') }}">
|
|
<i class="bi bi-receipt me-1"></i> Rechnungen
|
|
</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="{{ url_for('videos.list_videos') }}">
|
|
<i class="bi bi-play-circle me-1"></i> Videos
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
<ul class="navbar-nav">
|
|
<li class="nav-item dropdown">
|
|
<a class="nav-link dropdown-toggle" href="#" data-bs-toggle="dropdown">
|
|
<i class="bi bi-person-circle me-1"></i>
|
|
{{ g.customer.display_name }}
|
|
</a>
|
|
<ul class="dropdown-menu dropdown-menu-end dropdown-menu-dark">
|
|
<li>
|
|
<a class="dropdown-item" href="{{ url_for('profile.show') }}">
|
|
<i class="bi bi-person me-2"></i>Mein Profil
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a class="dropdown-item" href="{{ url_for('profile.settings') }}">
|
|
<i class="bi bi-gear me-2"></i>Einstellungen
|
|
</a>
|
|
</li>
|
|
<li><hr class="dropdown-divider"></li>
|
|
<li>
|
|
<a class="dropdown-item" href="{{ url_for('auth.logout') }}">
|
|
<i class="bi bi-box-arrow-right me-2"></i>Abmelden
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</nav>
|
|
|
|
<main class="container py-4">
|
|
{% with messages = get_flashed_messages(with_categories=true) %}
|
|
{% if messages %}
|
|
{% for category, message in messages %}
|
|
<div class="alert alert-{{ 'danger' if category == 'error' else category }} alert-dismissible fade show">
|
|
{{ message }}
|
|
<button type="button" class="btn-close" data-bs-dismiss="alert"></button>
|
|
</div>
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endwith %}
|
|
|
|
{% block content %}{% endblock %}
|
|
</main>
|
|
|
|
<footer class="footer mt-auto py-3 bg-dark border-top border-secondary">
|
|
<div class="container text-center text-muted">
|
|
<small>© {{ now().year if now else '2025' }} {{ branding.company_name }}</small>
|
|
</div>
|
|
</footer>
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
|
|
{% block extra_js %}{% endblock %}
|
|
</body>
|
|
</html>
|