Kalender: Verschieben erst nach Bestätigung mit Anzeige des neuen Zeitraums
This commit is contained in:
parent
c04a09ddf6
commit
75e274cc71
6 changed files with 93 additions and 5 deletions
|
|
@ -119,7 +119,7 @@ $minWidth = match ($view) {
|
|||
<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>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="cal-track" style="--row-h: <?= (int) $row['height'] ?>px; --lanes: <?= (int) $row['lanes'] ?>" data-trailer-id="<?= (int) $trailer['id'] ?>">
|
||||
<div class="cal-track" style="--row-h: <?= (int) $row['height'] ?>px; --lanes: <?= (int) $row['lanes'] ?>" data-trailer-id="<?= (int) $trailer['id'] ?>" data-trailer-label="<?= e($trailer['label']) ?>">
|
||||
<div class="cal-cells">
|
||||
<?php foreach ($days as $day): ?>
|
||||
<?php if ($canCreate): ?>
|
||||
|
|
@ -154,6 +154,7 @@ $minWidth = match ($view) {
|
|||
data-booking-id="<?= (int) $booking['id'] ?>"
|
||||
data-trailer-id="<?= (int) $booking['trailer_id'] ?>"
|
||||
data-start-date="<?= e($booking['start_date']) ?>"
|
||||
data-customer-name="<?= e($booking['customer_name']) ?>"
|
||||
data-days="<?= days_between($booking['start_date'], $booking['end_date']) + 1 ?>"
|
||||
style="--left: <?= number_format($geo['left'], 5, '.', '') ?>%; --width: <?= number_format($geo['width'], 5, '.', '') ?>%; --top: <?= number_format($geo['top'], 5, '.', '') ?>%; --height: <?= number_format($geo['height'], 5, '.', '') ?>%; --bar: <?= e($booking['trailer_color']) ?>; --bar-text: <?= e(contrast_color($booking['trailer_color'])) ?>;"
|
||||
aria-label="<?= e($aria) ?>"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue