mirror of
https://github.com/StefBuwalda/WebTech.git
synced 2025-10-30 03:10:00 +00:00
HET WERKT
This commit is contained in:
22
application/dash/static/style.css
Normal file
22
application/dash/static/style.css
Normal file
@@ -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;
|
||||
}
|
||||
26
application/dash/templates/dashboard.html
Normal file
26
application/dash/templates/dashboard.html
Normal file
@@ -0,0 +1,26 @@
|
||||
{% extends "base_template.html" %}
|
||||
|
||||
{%block title%}Dashboard{%endblock%}
|
||||
|
||||
{%block content%}
|
||||
<div class="grid-container">
|
||||
<div class="container-xxl">
|
||||
Item 1
|
||||
</div>
|
||||
<div class="container-xxl">
|
||||
Item 2
|
||||
</div>
|
||||
<div class="container-xxl">
|
||||
Item 3
|
||||
</div>
|
||||
<div class="container-xxl">
|
||||
Item 4
|
||||
</div>
|
||||
<div class="container-xxl">
|
||||
Item 5
|
||||
</div>
|
||||
<div class="container-xxl">
|
||||
Item 6
|
||||
</div>
|
||||
</div>
|
||||
{%endblock%}
|
||||
@@ -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")
|
||||
|
||||
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user