From e1130fa49384354eebb1704e1d9ef3b193c814a7 Mon Sep 17 00:00:00 2001 From: Niklas Meinzer Date: Tue, 7 Oct 2025 21:38:12 +0200 Subject: [PATCH] Prevent registrations after deadline --- new-registration-app/main.py | 2 +- new-registration-app/templates/event.html | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/new-registration-app/main.py b/new-registration-app/main.py index 23c94df..644020e 100644 --- a/new-registration-app/main.py +++ b/new-registration-app/main.py @@ -107,7 +107,7 @@ async def read_event(request: Request, event_id: int, session: SessionDep): return templates.TemplateResponse( request=request, name="event.html", - context={"event": event, "households": households}, + context={"event": event, "households": households, "now": datetime.now()}, ) diff --git a/new-registration-app/templates/event.html b/new-registration-app/templates/event.html index 3ee5a01..05517d2 100644 --- a/new-registration-app/templates/event.html +++ b/new-registration-app/templates/event.html @@ -20,11 +20,12 @@
+

Anmeldung schließt {{ event.registration_deadline.strftime('%A, %d.%m.%Y, %H:%M Uhr') }}

- - {% if event.recipe_link %} @@ -162,15 +163,14 @@