From 4a4041e817401de8eeef8d30ee720ba09a0e4c44 Mon Sep 17 00:00:00 2001 From: torsten Date: Wed, 18 Nov 2026 21:50:28 +0100 Subject: [PATCH] =?UTF-8?q?Farbnamen=20nicht=20mehr=20an=20die=20Anh=C3=A4?= =?UTF-8?q?nger-Bezeichnung=20h=C3=A4ngen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Anhänger heißen im Interface nur noch "Nr. 5" bzw. "Truhe 2"; die Farbe zeigt der farbige Punkt/Chip. Betroffen: Auswahlliste im Buchungs- formular, Vorschau-Chip im Formular, Buchungsdetail und Buchungs-Panel. Cache-Buster auf Version 15. --- app/util.php | 2 +- views/booking_detail.php | 2 +- views/booking_form.php | 4 ++-- views/booking_panel.php | 4 ++-- web/assets/app.js | 5 ++--- 5 files changed, 8 insertions(+), 9 deletions(-) diff --git a/app/util.php b/app/util.php index 448a811..d26a57f 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 = '14'; +const DIC_ASSET_VERSION = '15'; function asset(string $path): string { diff --git a/views/booking_detail.php b/views/booking_detail.php index b1a8893..203003a 100644 --- a/views/booking_detail.php +++ b/views/booking_detail.php @@ -144,7 +144,7 @@ $returnTo = '/bookings/' . (int) $booking['id'];
- · +
diff --git a/views/booking_form.php b/views/booking_form.php index c9e32b0..c033ef5 100644 --- a/views/booking_form.php +++ b/views/booking_form.php @@ -88,8 +88,8 @@ $backUrl = $isEdit ? '/bookings/' . (int) $booking['id'] : '/calendar';
diff --git a/views/booking_panel.php b/views/booking_panel.php index 8c0aeb7..bf5f271 100644 --- a/views/booking_panel.php +++ b/views/booking_panel.php @@ -21,7 +21,7 @@ foreach ($reminders as $reminder) {
- · +

@@ -56,7 +56,7 @@ foreach ($reminders as $reminder) {

-
Anhänger
+
Anhänger
Mitarbeiter
Art
Rechnung
diff --git a/web/assets/app.js b/web/assets/app.js index d6f5c19..910710d 100644 --- a/web/assets/app.js +++ b/web/assets/app.js @@ -246,8 +246,7 @@ const option = trailerSelect.selectedOptions[0]; if (!option) return; const color = option.dataset.color || '#196abc'; - const name = option.dataset.colorName || ''; - const label = option.textContent.split('·')[0].trim(); + const label = option.textContent.trim(); const preview = bookingForm.querySelector('[data-trailer-preview]'); if (preview) { preview.style.setProperty('--trailer', color); @@ -255,7 +254,7 @@ const dot = preview.querySelector('.trailer-dot'); if (dot) dot.style.setProperty('--trailer', color); const text = preview.querySelector('[data-trailer-preview-label]'); - if (text) text.textContent = `${label} · ${name}`; + if (text) text.textContent = label; } const summary = bookingForm.querySelector('[data-summary-trailer]'); if (summary) summary.textContent = label;