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