Erinnerungen: "Nur erledigte anzeigen" filtert auf erledigte Einträge
Der Haken zeigt jetzt ausschließlich erledigte Erinnerungen statt offene und erledigte gemischt. Zusammenfassung, Leerzustand und Label angepasst, docs/architecture.md ergänzt.
This commit is contained in:
parent
31078ce24a
commit
b6622c6cd6
3 changed files with 17 additions and 5 deletions
|
|
@ -89,7 +89,7 @@ foreach ($rows as $row) {
|
|||
<?php endif; ?>
|
||||
<label class="check check--small">
|
||||
<input type="checkbox" name="done" value="1" data-autosubmit<?= $showDone ? ' checked' : '' ?>>
|
||||
<span>Erledigte anzeigen</span>
|
||||
<span>Nur erledigte anzeigen</span>
|
||||
</label>
|
||||
<button class="btn small" type="submit">Anwenden</button>
|
||||
</form>
|
||||
|
|
@ -103,8 +103,13 @@ foreach ($rows as $row) {
|
|||
<?php elseif (!$rows): ?>
|
||||
<div class="empty-state">
|
||||
<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>
|
||||
<?php if ($showDone): ?>
|
||||
<h3>Keine erledigten Erinnerungen</h3>
|
||||
<p>Für den gewählten Zeitraum wurde noch keine Erinnerung als erledigt markiert.</p>
|
||||
<?php else: ?>
|
||||
<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>
|
||||
<?php endif; ?>
|
||||
<?php if ($isAdmin): ?>
|
||||
<a class="btn primary" href="<?= e(url('/bookings/new')) ?>">Neue Buchung anlegen</a>
|
||||
<?php endif; ?>
|
||||
|
|
@ -113,7 +118,8 @@ foreach ($rows as $row) {
|
|||
<?php endif; ?>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<p class="list-summary"><?= $openCount ?> offene Erinnerung<?= $openCount === 1 ? '' : 'en' ?><?= ($isAdmin && (!$hasOwnEmployee || $showAll)) ? '' : ' für Sie' ?><?= $employeeFilter > 0 ? ' · ' . e(employees_map()[$employeeFilter]['name'] ?? '') : '' ?></p>
|
||||
<?php $summaryCount = $showDone ? count($rows) : $openCount; ?>
|
||||
<p class="list-summary"><?= $summaryCount ?> <?= $showDone ? 'erledigte' : 'offene' ?> Erinnerung<?= $summaryCount === 1 ? '' : 'en' ?><?= ($isAdmin && (!$hasOwnEmployee || $showAll)) ? '' : ' für Sie' ?><?= $employeeFilter > 0 ? ' · ' . e(employees_map()[$employeeFilter]['name'] ?? '') : '' ?></p>
|
||||
<?php foreach ($groups as $date => $items): ?>
|
||||
<?php $isPast = $date < $today; $isToday = $date === $today; ?>
|
||||
<section class="reminder-day<?= $isPast ? ' is-past' : '' ?>">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue