mirror of
https://github.com/StefBuwalda/WebTech.git
synced 2025-10-30 11:19:58 +00:00
bases html pages
This commit is contained in:
5
run.py
5
run.py
@@ -12,6 +12,11 @@ def index():
|
|||||||
# Return HTML content
|
# Return HTML content
|
||||||
return "<h1>This is the default page</h1>"
|
return "<h1>This is the default page</h1>"
|
||||||
|
|
||||||
|
@app.route("/dashboard")
|
||||||
|
def dashboard():
|
||||||
|
# Return Dashboard.html
|
||||||
|
return render_template("dashboard.html")
|
||||||
|
|
||||||
|
|
||||||
@app.route("/forms")
|
@app.route("/forms")
|
||||||
def forms():
|
def forms():
|
||||||
|
|||||||
@@ -9,6 +9,9 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
{% include "navbar_base.html" %}
|
||||||
|
{% block navbar %}
|
||||||
|
{% endblock %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
@@ -1,14 +1,7 @@
|
|||||||
<!DOCTYPE html>
|
{% extends "base_template.html" %}
|
||||||
<html lang="en">
|
|
||||||
|
|
||||||
<head>
|
{%block title%}Dashboard{%endblock%}
|
||||||
<meta charset="UTF-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>Dashboard</title>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
{%block content%}
|
||||||
|
|
||||||
</body>
|
{%endblock%}
|
||||||
|
|
||||||
</html>
|
|
||||||
0
templates/login_page.html
Normal file
0
templates/login_page.html
Normal file
@@ -1,14 +1,7 @@
|
|||||||
<!DOCTYPE html>
|
{%block navbar%}
|
||||||
<html lang="en">
|
<nav class="navbar navbar-expand-lg bg-body-tertiary" data-bs-theme="dark">
|
||||||
|
<div class="container-fluid">
|
||||||
<head>
|
<a class="navbar-brand" href="\dashboard">Dashboard</a>
|
||||||
<meta charset="UTF-8">
|
</div>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
</nav>
|
||||||
<title>Default</title>
|
{%endblock%}
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
|
|
||||||
</html>
|
|
||||||
|
|||||||
Reference in New Issue
Block a user