Abwesenheiten: gemeinsamer Team-Kalender mit Sperre fuer Buchungen inkl. Vorlaufzeit
This commit is contained in:
parent
9d2154ee2d
commit
e83d6dc606
13 changed files with 533 additions and 2 deletions
|
|
@ -12,6 +12,7 @@ $navActive = static function (string $area) use ($path): string {
|
|||
'dashboard' => $path === '/' ? ' aria-current="page"' : '',
|
||||
'calendar' => ($path === '/calendar' || str_starts_with($path, '/bookings')) ? ' aria-current="page"' : '',
|
||||
'reminders' => str_starts_with($path, '/reminders') ? ' aria-current="page"' : '',
|
||||
'absences' => str_starts_with($path, '/absences') ? ' aria-current="page"' : '',
|
||||
'admin' => str_starts_with($path, '/admin') ? ' aria-current="page"' : '',
|
||||
default => '',
|
||||
};
|
||||
|
|
@ -92,6 +93,9 @@ $navActive = static function (string $area) use ($path): string {
|
|||
<a href="<?= e(url('/calendar')) ?>"<?= $navActive('calendar') ?>>
|
||||
<svg class="ico" aria-hidden="true"><use href="#i-calendar"/></svg><span><span class="nav-long">Kalender</span><span class="nav-short">Kalender</span></span>
|
||||
</a>
|
||||
<a href="<?= e(url('/absences')) ?>"<?= $navActive('absences') ?>>
|
||||
<svg class="ico" aria-hidden="true"><use href="#i-clock"/></svg><span><span class="nav-long">Abwesenheiten</span><span class="nav-short">Team</span></span>
|
||||
</a>
|
||||
<a href="<?= e(url('/reminders')) ?>"<?= $navActive('reminders') ?>>
|
||||
<svg class="ico" aria-hidden="true"><use href="#i-bell"/></svg><span><span class="nav-long">Erinnerungen</span><span class="nav-short">Aufgaben</span></span>
|
||||
<?php if ($badge > 0): ?><span class="nav-badge" aria-label="<?= $badge ?> offene Erinnerungen"><?= $badge > 99 ? '99+' : $badge ?></span><?php endif; ?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue