Farbnamen auch im Kalender und auf der Übersicht ausblenden

Unter der Bezeichnung stand klein und grau der Farbname; dort steht jetzt
nur noch "Nr. 6" bzw. "Truhe 2". Der Hinweis "inaktiv" im Kalender bleibt
erhalten.
This commit is contained in:
torsten 2026-11-18 21:52:06 +01:00
parent 4a4041e817
commit b9d45d082b
2 changed files with 1 additions and 2 deletions

View file

@ -106,7 +106,7 @@ $minWidth = match ($view) {
<span class="trailer-dot" style="--trailer: <?= e($trailer['color_hex']) ?>"></span>
<span class="cal-label__text">
<strong><?= e($trailer['label']) ?></strong>
<small><?= e($trailer['color_name']) ?><?= (int) $trailer['active'] === 1 ? '' : ' · inaktiv' ?></small>
<?php if ((int) $trailer['active'] !== 1): ?><small>inaktiv</small><?php endif; ?>
</span>
<a class="cal-label__add" href="<?= e(url('/bookings/new?trailer=' . (int) $trailer['id'] . '&start=' . $date)) ?>" aria-label="Neue Buchung für <?= e($trailer['label']) ?>">+</a>
</div>

View file

@ -108,7 +108,6 @@ $isEmployeeView = $employeeScope > 0;
<span class="trailer-dot"></span>
<div class="trailer-card__name">
<strong><?= e($trailer['label']) ?></strong>
<small><?= e($trailer['color_name']) ?></small>
</div>
<span class="pill <?= $bookings ? 'pill--red' : 'pill--green' ?>"><?= $bookings ? 'vermietet' : 'frei' ?></span>
</div>