From b05bda7c96e385142c20531696b57bac69a87898 Mon Sep 17 00:00:00 2001 From: OpenCode Date: Fri, 13 Nov 2026 01:22:51 +0100 Subject: [PATCH] =?UTF-8?q?Anh=C3=A4nger=20anlegen=20standardm=C3=A4=C3=9F?= =?UTF-8?q?ig=20einklappen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/util.php | 2 +- views/admin_trailers.php | 122 +++++++++++++++++++++------------------ web/assets/app.css | 23 ++++++++ web/sw.js | 2 +- 4 files changed, 90 insertions(+), 59 deletions(-) diff --git a/app/util.php b/app/util.php index b9bf3a1..cc44182 100644 --- a/app/util.php +++ b/app/util.php @@ -89,7 +89,7 @@ function url(string $path = '/'): string } /** Cache-Buster: bei Änderungen an app.css/app.js erhöhen. */ -const DIC_ASSET_VERSION = '4'; +const DIC_ASSET_VERSION = '5'; function asset(string $path): string { diff --git a/views/admin_trailers.php b/views/admin_trailers.php index f187aa4..2b72887 100644 --- a/views/admin_trailers.php +++ b/views/admin_trailers.php @@ -25,69 +25,77 @@ $createError = static fn (string $key): string => (string) ($createErrors[$key] -
-
-

Anhänger anlegen

-

Neue Anhänger stehen sofort im Kalender und in der Buchungsmaske zur Auswahl. Die Sortierung bestimmt die Reihenfolge der Zeilen.

-
+
> + + + + Anhänger anlegen + + Nur bei Bedarf – z. B. für einen zusätzlichen Mietanhänger. + + - -
+ + +
+ Farbe + + + + + + + + + +
+ + + +
+ Status + +
+ +
+ +
+ + +
diff --git a/web/assets/app.css b/web/assets/app.css index c674c46..b592e99 100644 --- a/web/assets/app.css +++ b/web/assets/app.css @@ -688,6 +688,26 @@ a .ico, button .ico { pointer-events: none; } .reminder-note { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--ice-50); border: 1px solid var(--ice-200); color: var(--brand-800); font-size: .82rem; max-width: 900px; } /* --------------------------------------------------------------- Admin */ +.create-trailer { padding: 0; overflow: hidden; } +.create-trailer__summary { + list-style: none; cursor: pointer; + display: flex; align-items: center; gap: 11px; + padding: 17px 22px; + transition: background .15s; +} +.create-trailer__summary::-webkit-details-marker { display: none; } +.create-trailer__summary:hover { background: var(--ice-50); } +.create-trailer__title { + display: inline-flex; align-items: center; gap: 8px; + font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--ink); +} +.create-trailer__title .ico { color: var(--brand); } +.create-trailer__hint { font-size: .8rem; color: var(--muted); } +.create-trailer__chevron { margin-left: auto; color: var(--muted); transform: rotate(90deg); transition: transform .2s; } +.create-trailer[open] .create-trailer__chevron { transform: rotate(-90deg); } +.create-trailer__body { padding: 0 22px 22px; border-top: 1px solid var(--line-soft); } +.create-trailer__body > .muted { padding-top: 14px; margin-bottom: 14px; } + .admin-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); } .admin-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px; font-size: .84rem; font-weight: 600; color: var(--ink-2); } .admin-nav a:hover { background: var(--ice-50); color: var(--brand-700); } @@ -881,6 +901,9 @@ a .ico, button .ico { pointer-events: none; } .trailer-admin__row > .link-button, .trailer-admin__row > .muted { grid-column: 1 / -1; } .trailer-admin__row input[type="number"] { width: 100%; } .admin-nav { overflow-x: auto; flex-wrap: nowrap; } + .create-trailer__summary { padding: 14px 16px; } + .create-trailer__hint { display: none; } + .create-trailer__body { padding: 0 16px 16px; } .admin-nav a { flex: 0 0 auto; } .panel-head { padding: 16px 16px 12px; } .panel-head h2 { font-size: 1.15rem; } diff --git a/web/sw.js b/web/sw.js index ebc2cf0..2d50f02 100644 --- a/web/sw.js +++ b/web/sw.js @@ -6,7 +6,7 @@ * zwischengespeichert, damit niemand veraltete Buchungen sieht. */ -const VERSION = 'dic-v4'; +const VERSION = 'dic-v5'; const CACHE = VERSION; const BASE = new URL(self.registration.scope).pathname.replace(/\/$/, '');