mirror of
https://github.com/StefBuwalda/WebTech.git
synced 2025-10-30 03:10:00 +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 "<h1>This is the default page</h1>"
|
||||
|
||||
@app.route("/dashboard")
|
||||
def dashboard():
|
||||
# Return Dashboard.html
|
||||
return render_template("dashboard.html")
|
||||
|
||||
|
||||
@app.route("/forms")
|
||||
def forms():
|
||||
|
||||
@@ -9,6 +9,9 @@
|
||||
</head>
|
||||
<body>
|
||||
{% block content %}
|
||||
{% include "navbar_base.html" %}
|
||||
{% block navbar %}
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
@@ -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%}
|
||||
0
templates/login_page.html
Normal file
0
templates/login_page.html
Normal 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%}
|
||||
|
||||
Reference in New Issue
Block a user