From b99a3806cfeeac47dd84d94df1d06903dcc27523 Mon Sep 17 00:00:00 2001 From: mivanchenko Date: Sat, 12 Sep 2026 00:24:40 +0200 Subject: [PATCH] Owner agenda: per-Filiale show/hide toggle Checkboxes above the week view, one per active resource -- client-side filtering (no reload needed), remembered across week navigation via localStorage since each week change is a full page load. Lets the owner view one location, the other, or both at once. Co-Authored-By: Claude Sonnet 5 --- backoffice/app/templates/owner/agenda.html | 61 +++++++++++++++++++++- 1 file changed, 60 insertions(+), 1 deletion(-) diff --git a/backoffice/app/templates/owner/agenda.html b/backoffice/app/templates/owner/agenda.html index 01cdbac..b2acb15 100644 --- a/backoffice/app/templates/owner/agenda.html +++ b/backoffice/app/templates/owner/agenda.html @@ -40,11 +40,30 @@ .new-booking { border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-top: 24px; } .new-booking .field { display: inline-block; margin: 0 8px 8px 0; } label { display: block; font-size: .75rem; color: var(--muted); margin-bottom: 3px; } + .filiale-filter { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; + margin: 10px 0 18px; padding: 10px 14px; background: #f6faf9; border: 1px solid var(--line); + border-radius: 9px; } + .filiale-filter .flabel { font-size: .78rem; color: var(--muted); margin: 0; } + .filiale-filter label { display: flex; align-items: center; gap: 6px; margin: 0; + font-size: .85rem; color: var(--ink); cursor: pointer; } + .filiale-filter input[type=checkbox] { width: 15px; height: 15px; accent-color: var(--brand); + cursor: pointer; } + tr.res-hidden { display: none; } + .day-no-match { color: var(--muted); font-size: .85rem; margin: 0; display: none; }

{{ client.business_name if client else 'Kalender' }}

+ {% if resources|length > 1 %} +
+

Filialen:

+ {% for r in resources %} + + {% endfor %} +
+ {% endif %} + {% if error == "missing_fields" %}
Bitte alle Felder ausfüllen.
{% elif error == "not_found" %} @@ -78,7 +97,7 @@ ZeitKundeLeistungRessourceStatus {% for b in bookings %} - + {{ b.start_local.strftime('%H:%M') }} {{ b.customer_name }} {{ b.service }} @@ -103,6 +122,7 @@ {% endfor %} +

Keine Buchungen für die ausgewählten Filialen.

{% endif %} {% endfor %} @@ -146,5 +166,44 @@

Zurück

+ +