Skip to content

Commit 9b14fa6

Browse files
committed
created templates for other pages
1 parent 8a996dd commit 9b14fa6

5 files changed

Lines changed: 41 additions & 13 deletions

File tree

app/templates/analytics.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{% extends "base.html" %}
2+
3+
{% block title %}Analytics - Trading Dashboard{% endblock %}
4+
5+
{% block content %}
6+
<h2>📊 Analytics</h2>
7+
<p>Contenuti da implementare qui.</p>
8+
{% endblock %}

app/templates/base.html

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,20 @@
1818
</head>
1919
<body class="bg-light">
2020

21-
<!-- Navbar -->
2221
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
2322
<div class="container-fluid">
24-
<a class="navbar-brand" href="{{ url_for('views.home') }}">
23+
<a class="navbar-brand" href="{{ url_for('views.welcome') }}">
2524
<i class="fa-solid fa-chart-line"></i> Money Dashboard
2625
</a>
2726
<div>
28-
<a class="btn btn-sm btn-outline-light" href="{{ url_for('auth.login') }}">
29-
<i class="fa-solid fa-user"></i> Login
30-
</a>
31-
<a class="btn btn-sm btn-outline-danger" href="{{ url_for('auth.logout') }}">
32-
<i class="fa-solid fa-right-from-bracket"></i> Logout
33-
</a>
27+
<a class="btn btn-sm btn-outline-light" href="{{ url_for('views.analytics') }}">Analytics</a>
28+
<a class="btn btn-sm btn-outline-light" href="{{ url_for('views.portfolio') }}">Portfolio</a>
29+
<a class="btn btn-sm btn-outline-light" href="{{ url_for('views.database') }}">Database</a>
30+
<a class="btn btn-sm btn-outline-danger" href="{{ url_for('auth.logout') }}">Logout</a>
3431
</div>
3532
</div>
3633
</nav>
34+
3735

3836
<!-- Main container -->
3937
<main class="container py-4">

app/templates/database.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{% extends "base.html" %}
2+
3+
{% block title %}Database - Trading Dashboard{% endblock %}
4+
5+
{% block content %}
6+
<h2>Database </h2>
7+
<p>Contenuti da implementare qui.</p>
8+
{% endblock %}

app/templates/portfolio.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{% extends "base.html" %}
2+
3+
{% block title %}Portfolio - Trading Dashboard{% endblock %}
4+
5+
{% block content %}
6+
<h2>Portfolio</h2>
7+
<p>Contenuti da implementare qui.</p>
8+
{% endblock %}

app/views.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33

44
views_bp = Blueprint("views", __name__)
55

6-
@views_bp.route("/")
7-
def home():
8-
return render_template("welcome.html")
9-
106
@views_bp.route("/welcome")
117
@login_required
128
def welcome():
@@ -15,4 +11,14 @@ def welcome():
1511
@views_bp.route("/analytics")
1612
@login_required
1713
def analytics():
18-
return "<h2>📊 Analytics page (work in progress)</h2>"
14+
return render_template("analytics.html")
15+
16+
@views_bp.route("/portfolio")
17+
@login_required
18+
def portfolio():
19+
return render_template("portfolio.html")
20+
21+
@views_bp.route("/database")
22+
@login_required
23+
def database():
24+
return render_template("database.html")

0 commit comments

Comments
 (0)