From 1a1179a9ee31a723d08e6a9be0a9bf71c009ce06 Mon Sep 17 00:00:00 2001 From: matsewe Date: Mon, 26 May 2025 10:58:36 +0200 Subject: [PATCH] fix broken commit --- app/core/utils.py | 9 +++ app/templates/registration-closed.html | 11 ++++ app/templates/registration-open.html | 81 +++++++++++++++++++++++++ app/templates/registration-success.html | 11 ++++ 4 files changed, 112 insertions(+) create mode 100644 app/core/utils.py create mode 100644 app/templates/registration-closed.html create mode 100644 app/templates/registration-open.html create mode 100644 app/templates/registration-success.html diff --git a/app/core/utils.py b/app/core/utils.py new file mode 100644 index 0000000..63c3edc --- /dev/null +++ b/app/core/utils.py @@ -0,0 +1,9 @@ +from app.core.config import settings +from datetime import datetime + + +def is_registration_open(): + now = datetime.now(tz=settings.TZ) + not_before = now >= settings.NOT_BEFORE + not_after = now <= settings.NOT_AFTER + return not_before and not_after, not_before, not_after diff --git a/app/templates/registration-closed.html b/app/templates/registration-closed.html new file mode 100644 index 0000000..2f44c79 --- /dev/null +++ b/app/templates/registration-closed.html @@ -0,0 +1,11 @@ + + + + Choriosity Anmeldung + + + + Die Anmeldung ist leider noch nicht geöffnet. Sie öffnet am {{ not_before }} und schließt am {{ not_after }}. + + + \ No newline at end of file diff --git a/app/templates/registration-open.html b/app/templates/registration-open.html new file mode 100644 index 0000000..ced23f1 --- /dev/null +++ b/app/templates/registration-open.html @@ -0,0 +1,81 @@ + + + + Choriosity Anmeldung + + + +
+ + + + + + + +
+ Welche Stimme singst du? + +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+
+ +
+ Wie lange bleibst du in Ulm? + +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+
+ + + + + +
+ + + \ No newline at end of file diff --git a/app/templates/registration-success.html b/app/templates/registration-success.html new file mode 100644 index 0000000..2ce9b08 --- /dev/null +++ b/app/templates/registration-success.html @@ -0,0 +1,11 @@ + + + + Choriosity Anmeldung + + + + Danke für deine Anmeldung + + + \ No newline at end of file