From 95f4eb76aea4865985331142a4e48701b429cc55 Mon Sep 17 00:00:00 2001 From: Stef Date: Sat, 12 Apr 2025 13:08:05 +0200 Subject: [PATCH] HET WERKT --- application/dash/static/style.css | 22 +++++++++ application/dash/templates/dashboard.html | 26 ++++++++++ application/dash/views.py | 6 ++- application/static/style.css | 22 +++++++++ application/templates/base_template.html | 58 +++++++++++++++++++++++ login_page.html | 11 ----- templates/forms.html | 23 --------- templates/login_page.html | 7 --- templates/navbar_base.html | 0 9 files changed, 132 insertions(+), 43 deletions(-) create mode 100644 application/dash/static/style.css create mode 100644 application/dash/templates/dashboard.html create mode 100644 application/static/style.css create mode 100644 application/templates/base_template.html delete mode 100644 login_page.html delete mode 100644 templates/forms.html delete mode 100644 templates/login_page.html delete mode 100644 templates/navbar_base.html diff --git a/application/dash/static/style.css b/application/dash/static/style.css new file mode 100644 index 0000000..b912c98 --- /dev/null +++ b/application/dash/static/style.css @@ -0,0 +1,22 @@ +body { + background-color: lightslategray; +} + +.grid-container { + display: grid; + grid-template-columns: auto auto auto; + gap: 20px; + background-color: lightslategray; + padding-top: 20px; + margin-left: 10%; + margin-right: 10%; +} + +.grid-container > div { + text-align: center; + height: 100px; + padding-top: 5px; + border: 2px solid black; + border-radius: 10px; + background-color: whitesmoke; +} \ No newline at end of file diff --git a/application/dash/templates/dashboard.html b/application/dash/templates/dashboard.html new file mode 100644 index 0000000..ce86b46 --- /dev/null +++ b/application/dash/templates/dashboard.html @@ -0,0 +1,26 @@ +{% extends "base_template.html" %} + +{%block title%}Dashboard{%endblock%} + +{%block content%} +
+
+ Item 1 +
+
+ Item 2 +
+
+ Item 3 +
+
+ Item 4 +
+
+ Item 5 +
+
+ Item 6 +
+
+{%endblock%} \ No newline at end of file diff --git a/application/dash/views.py b/application/dash/views.py index 4acb3be..7c1b799 100644 --- a/application/dash/views.py +++ b/application/dash/views.py @@ -27,6 +27,7 @@ def thanks(): @dash_blueprint.route("/", methods=["GET", "POST"]) @login_required def index(): + """ session["_flashes"] = [] my_form = ServiceForm() @@ -46,8 +47,9 @@ def index(): return redirect(url_for("application.dash")) else: flash("Het formulier is niet goed ingevuld") - - return render_template("dash.html", form=my_form) + """ + # return render_template("dashboard.html", form=my_form) + return render_template("dashboard.html") """ diff --git a/application/static/style.css b/application/static/style.css new file mode 100644 index 0000000..b912c98 --- /dev/null +++ b/application/static/style.css @@ -0,0 +1,22 @@ +body { + background-color: lightslategray; +} + +.grid-container { + display: grid; + grid-template-columns: auto auto auto; + gap: 20px; + background-color: lightslategray; + padding-top: 20px; + margin-left: 10%; + margin-right: 10%; +} + +.grid-container > div { + text-align: center; + height: 100px; + padding-top: 5px; + border: 2px solid black; + border-radius: 10px; + background-color: whitesmoke; +} \ No newline at end of file diff --git a/application/templates/base_template.html b/application/templates/base_template.html new file mode 100644 index 0000000..c84b2e2 --- /dev/null +++ b/application/templates/base_template.html @@ -0,0 +1,58 @@ + + + + + + + + + + {% block title %}{% endblock %} + + + + + {% block content %} + {% endblock %} + + + \ No newline at end of file diff --git a/login_page.html b/login_page.html deleted file mode 100644 index 1ae3595..0000000 --- a/login_page.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - Login Page - - - - - \ No newline at end of file diff --git a/templates/forms.html b/templates/forms.html deleted file mode 100644 index 87b65de..0000000 --- a/templates/forms.html +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - Testing - - - -

Hallo

-
- {{ form.hidden_tag() }} - {{ form.name.label }} {{form.name}} -
- {{ form.url.label}} {{form.url}} -
- {{ form.submit() }} -
- - - - \ No newline at end of file diff --git a/templates/login_page.html b/templates/login_page.html deleted file mode 100644 index 58592c4..0000000 --- a/templates/login_page.html +++ /dev/null @@ -1,7 +0,0 @@ -{%extends "base_template.html"%} - -{%block title%}Login{%endblock%} - -{%block content%} - -{%endblock%} \ No newline at end of file diff --git a/templates/navbar_base.html b/templates/navbar_base.html deleted file mode 100644 index e69de29..0000000