Buchungen anlegen nur für Administratoren

This commit is contained in:
torsten 2026-11-19 10:48:32 +01:00
parent c8ec53ebdd
commit 6a2a9ea342
8 changed files with 67 additions and 32 deletions

View file

@ -80,7 +80,9 @@ foreach ($rows as $row) {
<svg class="ico" aria-hidden="true"><use href="#i-check"/></svg>
<h3>Keine offenen Erinnerungen</h3>
<p>Für den gewählten Zeitraum ist alles erledigt. Neue Erinnerungen entstehen automatisch, sobald eine Buchung angelegt wird.</p>
<a class="btn primary" href="<?= e(url('/bookings/new')) ?>">Neue Buchung anlegen</a>
<?php if ($isAdmin): ?>
<a class="btn primary" href="<?= e(url('/bookings/new')) ?>">Neue Buchung anlegen</a>
<?php endif; ?>
</div>
<?php else: ?>
<p class="list-summary"><?= $openCount ?> offene Erinnerung<?= $openCount === 1 ? '' : 'en' ?><?= $isAdmin ? '' : ' für Sie' ?><?= $employeeFilter > 0 ? ' · ' . e(employees_map()[$employeeFilter]['name'] ?? '') : '' ?></p>