From 286161b0912007c6f3859868a006e9818752a4aa Mon Sep 17 00:00:00 2001 From: Dominic DiTaranto Date: Mon, 28 Oct 2024 11:36:09 -0400 Subject: init commit --- web/templates/base.html | 38 +++++++++++++++ web/templates/event.html | 91 +++++++++++++++++++++++++++++++++++ web/templates/index.html | 26 ++++++++++ web/templates/registration/login.html | 1 + 4 files changed, 156 insertions(+) create mode 100644 web/templates/base.html create mode 100644 web/templates/event.html create mode 100644 web/templates/index.html create mode 100644 web/templates/registration/login.html (limited to 'web/templates') diff --git a/web/templates/base.html b/web/templates/base.html new file mode 100644 index 0000000..d6ba2da --- /dev/null +++ b/web/templates/base.html @@ -0,0 +1,38 @@ + + + + + Korabo + {% load static %} + {% load bootstrap5 %} + {% bootstrap_css %} + {% bootstrap_javascript %} + + + +
+ +

Korabo

+
+ + ~make it easy with コラボ~ +
+
+ home | + logout + +
+ +
+
+ +
+ {% block content %}{% endblock %} +
+ +
+ Version 1.0 | Created By Dominic DiTaranto | Questions/Suggestions: me@domdit.com | Last Update 09/22/2024 +
+ + + \ No newline at end of file diff --git a/web/templates/event.html b/web/templates/event.html new file mode 100644 index 0000000..60535c7 --- /dev/null +++ b/web/templates/event.html @@ -0,0 +1,91 @@ +{% extends 'base.html' %} + +{% block content %} + +

{{event.name}}

+
{% csrf_token %} + +
+ + + + + {% for datetime, day in morning.items %} + + {% endfor %} + + + + + + {% for datetime, day in morning.items %} + + + {% endfor %} + + + + {% for datetime, day in noon.items %} + + {% endfor %} + + + + {% for datetime, day in night.items %} + + {% endfor %} + + +
#{{ datetime }}
Morning +
+ {{ day.1 }} +
Afternoon +
+ {{ day.1 }} +
Night +
+ {{ day.1 }} +
+
+ +
+
+ Responses: {{user_responses}} / {{event.participants}} +
+
+ +
+
+ +
+ +
+
+
+

Best Times

+ {{ no_overlap_message }} + {% for day, users in best_days.items %} +
+
{{day}}
+
{{users}}
+
+ {% endfor %} +
+ + + + + + + +

+ + +{% endblock %} diff --git a/web/templates/index.html b/web/templates/index.html new file mode 100644 index 0000000..5f2150b --- /dev/null +++ b/web/templates/index.html @@ -0,0 +1,26 @@ +{% extends 'base.html' %} + +{% block content %} + + + + + + + + + + + + {% for event in events %} + + + + + + + {% endfor %} + +
Event NameAlready RespondedStart DateEnd Date
{{event.name}}{{event.responses}}{{event.start_date}}{{event.end_date}}
+ +{% endblock %} diff --git a/web/templates/registration/login.html b/web/templates/registration/login.html new file mode 100644 index 0000000..afdff9b --- /dev/null +++ b/web/templates/registration/login.html @@ -0,0 +1 @@ +{% extends "admin/login.html" %} -- cgit v1.2.3-70-g09d2