Merge branch 'development' of https://github.com/StefBuwalda/WebTech into development

This commit is contained in:
2025-04-01 12:08:59 +02:00
5 changed files with 20 additions and 26 deletions

5
run.py
View File

@@ -12,6 +12,11 @@ def index():
# Return HTML content
return "<h1>This is the default page</h1>"
@app.route("/dashboard")
def dashboard():
# Return Dashboard.html
return render_template("dashboard.html")
@app.route("/forms", methods=["GET", "POST"])
def forms():

View File

@@ -9,6 +9,9 @@
</head>
<body>
{% block content %}
{% include "navbar_base.html" %}
{% block navbar %}
{% endblock %}
{% endblock %}
</body>
</html>

View File

@@ -1,14 +1,7 @@
<!DOCTYPE html>
<html lang="en">
{% extends "base_template.html" %}
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dashboard</title>
</head>
{%block title%}Dashboard{%endblock%}
<body>
</body>
</html>
{%block content%}
{%endblock%}

View File

View File

@@ -1,14 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Default</title>
</head>
<body>
</body>
</html>
{%block navbar%}
<nav class="navbar navbar-expand-lg bg-body-tertiary" data-bs-theme="dark">
<div class="container-fluid">
<a class="navbar-brand" href="\dashboard">Dashboard</a>
</div>
</nav>
{%endblock%}