M2: Status & Wochentage – Schritt 2 (UI): Tagesansicht, htmx-CheckOff/Uncheck-Partials, Archiv-Tab + Feature-Tests

This commit is contained in:
2026-09-19 11:46:15 +02:00
parent 3519ff08f2
commit ce77785003
8 changed files with 340 additions and 46 deletions
+21
View File
@@ -26,6 +26,12 @@ mahlzeiten_index:
controller: App\UI\Http\Essen\MahlzeitController::index
methods: [GET]
# M2: Archiv (gegessene Mahlzeiten)
mahlzeiten_archiv:
path: /mahlzeiten/archiv
controller: App\UI\Http\Essen\MahlzeitController::archiv
methods: [GET]
mahlzeiten_neu:
path: /mahlzeiten/neu
controller: App\UI\Http\Essen\MahlzeitController::neu
@@ -56,3 +62,18 @@ mahlzeiten_loeschen:
methods: [POST]
requirements:
id: \d+
# M2: Status-Wechsel als htmx-Partial-Endpunkte (Fragment-Antwort)
mahlzeiten_checkoff:
path: /mahlzeiten/{id}/checkoff
controller: App\UI\Http\Essen\MahlzeitController::checkoff
methods: [POST]
requirements:
id: \d+
mahlzeiten_uncheck:
path: /mahlzeiten/{id}/uncheck
controller: App\UI\Http\Essen\MahlzeitController::uncheck
methods: [POST]
requirements:
id: \d+