Files
signage/templates/_header.html
2026-06-19 12:09:50 +02:00

52 lines
2.6 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!-- ═══════════════════════════════════════════════════
HEADER Wird von admin.html, priority.html und customer.html eingebunden.
Zeigt CANCOM-Logo, Standort-Dropdown, Theme-Toggle und Logout.
Erwartet im Kontext: site_list, current_site, brand_subtitle, site_dropdown_url_prefix
═══════════════════════════════════════════════════ -->
<header class="navbar navbar-expand-md d-print-none brand-surface">
<div class="container-xl">
<!-- Logo + Titel -->
<div class="navbar-brand navbar-brand-autodark pe-0 pe-md-3">
<img class="navbar-brand-logo me-3" src="{{ url_for('static', filename='cancom.svg') }}" alt="CANCOM Logo">
<span class="navbar-brand-wordmark">
<strong>Simple Signage</strong>
<span>{{ brand_subtitle }}</span>
</span>
</div>
<!-- Aktionen: Standort-Dropdown, +Button, Theme, Logout -->
<div class="navbar-nav flex-row order-md-last top-actions">
<!-- Standort-Auswahl -->
<div class="dropdown me-2">
<a class="btn btn-outline-secondary" href="#" data-bs-toggle="dropdown">
<i class="ti ti-building me-1"></i>{{ current_site | capitalize }} <i class="ti ti-chevron-down"></i>
</a>
<div class="dropdown-menu">
{% for s in site_list %}
<a class="dropdown-item{% if s == current_site %} active{% endif %}"
href="{{ site_dropdown_url_prefix }}{{ s }}"><i class="ti ti-building me-1"></i>{{ s | capitalize }}</a>
{% endfor %}
</div>
</div>
<!-- Neuen Standort anlegen (+ Button) -->
<a class="btn btn-outline-secondary me-2" href="javascript:void(0)"
onclick="var n=prompt('Name des neuen Standorts:'); if(n&&n.trim()) location.href='/add-site?name='+encodeURIComponent(n.trim().toLowerCase());"
title="Neuen Standort anlegen"
style="display:inline-flex;align-items:center;justify-content:center;min-width:2.5rem;min-height:2.5rem;"><i class="ti ti-plus"></i></a>
<!-- Dark-Mode-Toggle (persistiert in localStorage("signage-theme")) -->
<div>
<button class="btn btn-outline-secondary theme-toggle" id="theme-toggle" title="Dark Mode umschalten">
<i class="ti ti-moon"></i>
</button>
</div>
<!-- Logout -->
<div class="ms-2">
<a href="/logout" class="btn btn-outline-secondary"><i class="ti ti-logout me-1"></i>Abmelden</a>
</div>
</div>
</div>
</header>