AICertification/app/flask-postgres/app/templates/base.html
2026-04-03 21:10:30 +02:00

81 lines
2.7 KiB
HTML

<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ page_title }}</title>
<link rel="stylesheet" href="/styles/site.css">
</head>
<body>
<!-- HEADER + MENU -->
<header class="site-header">
<div class="header-inner">
<div class="logo-area">
<a href="/home">
<img src="/images/Logo-Compliance-Verification-bg-1.png" alt="Logo" class="site-logo">
</a>
</div>
<nav class="top-nav">
<a href="/home" class="{% if active_page == 'home' %}active{% endif %}">Home</a>
<a href="/preise" class="{% if active_page == 'preise' %}active{% endif %}">Preise</a>
<a href="/allgemein" class="{% if active_page == 'allgemein' %}active{% endif %}">Allgemein</a>
{% if is_logged_in %}
<a href="/courses" class="{% if active_page == 'courses' %}active{% endif %}">
Kurse
</a>
{% endif %}
{% if is_logged_in %}
<div class="user-menu">
<button class="user-menu-toggle" type="button">{{ user_name }} ▾</button>
<div class="user-menu-dropdown">
<a href="/profil">Profil</a>
{% if is_admin %}
<a href="/admin/mandanten">Mandanten</a>
<a href="/admin/checklist">Checklist</a>
<a href="/admin/courses">Kurse</a>
{% endif %}
{% if is_user_admin %}
<a href="/useradmin/mandant">Useradministration</a>
{% endif %}
{% if is_contentmanager %}
<a href="/dokumente">Dokumente</a>
{% endif %}
<a href="/logout">Logout</a>
</div>
</div>
{% else %}
<a href="/login" class="{% if active_page == 'login' %}active{% endif %}">Login</a>
{% endif %}
<form class="country-switch-form" method="get" action="/set-country">
<label for="country-select" class="country-label">Land</label>
<select id="country-select" name="country" onchange="this.form.submit()">
<option value="DE" {% if country == "DE" %}selected{% endif %}>🇩🇪 DE</option>
<option value="AT" {% if country == "AT" %}selected{% endif %}>🇦🇹 AT</option>
<option value="CH" {% if country == "CH" %}selected{% endif %}>🇨🇭 CH</option>
</select>
<input type="hidden" name="next" value="{{ request.path }}">
</form>
</nav>
</div>
</header>
<!-- CONTENT -->
<main class="content-area">
<section class="content-box">
{% block content %}
{% endblock %}
</section>
</main>
</body>
</html>