Müll-Kalender: wer die Tonne rausgestellt hat sichtbar machen
Erledigte Termine zeigen jetzt '✓ Vorname' im Kalender-Event, damit im Nachhinein nachvollziehbar ist, wer sich zuverlässig um den Müll kümmert.
This commit is contained in:
parent
a35fa1ddda
commit
0b43e9fcba
@ -1024,7 +1024,7 @@
|
|||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div style="display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin:-4px 0 12px;">
|
<div style="display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin:-4px 0 12px;">
|
||||||
<p class="meta-text" style="margin:0;">Restmüll, Biomüll, Gelbe Tonne und Papiertonne werden automatisch täglich von der Kommunalen Abfallwirtschaft Mainz-Bingen übernommen.</p>
|
<p class="meta-text" style="margin:0;">Restmüll, Biomüll, Gelbe Tonne und Papiertonne werden automatisch täglich von der Kommunalen Abfallwirtschaft Mainz-Bingen übernommen. "✓ Name" zeigt, wer die Tonne rausgestellt hat.</p>
|
||||||
<button type="button" class="btn-secondary" id="trashSyncBtn" style="display:none; white-space:nowrap;">↻ Kalender aktualisieren</button>
|
<button type="button" class="btn-secondary" id="trashSyncBtn" style="display:none; white-space:nowrap;">↻ Kalender aktualisieren</button>
|
||||||
</div>
|
</div>
|
||||||
<div id="trashSyncStatus" class="meta-text" style="display:none; margin:-6px 0 12px;"></div>
|
<div id="trashSyncStatus" class="meta-text" style="display:none; margin:-6px 0 12px;"></div>
|
||||||
@ -2901,9 +2901,10 @@
|
|||||||
|
|
||||||
trashCalendar.removeAllEvents();
|
trashCalendar.removeAllEvents();
|
||||||
entries.forEach(t => {
|
entries.forEach(t => {
|
||||||
|
const label = TRASH_TYPE_LABEL[t.type] || t.type;
|
||||||
trashCalendar.addEvent({
|
trashCalendar.addEvent({
|
||||||
id: t.id,
|
id: t.id,
|
||||||
title: TRASH_TYPE_LABEL[t.type] || t.type,
|
title: t.completedBy ? `${label} ✓ ${t.completedBy.fullName.split(' ')[0]}` : label,
|
||||||
start: (t.date || '').slice(0, 10),
|
start: (t.date || '').slice(0, 10),
|
||||||
allDay: true,
|
allDay: true,
|
||||||
backgroundColor: TRASH_TYPE_COLOR[t.type] || '#888',
|
backgroundColor: TRASH_TYPE_COLOR[t.type] || '#888',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user