From 1efa2cfcbe7fdaf0c8ee89ed3798cd817b8d147c Mon Sep 17 00:00:00 2001 From: NguyenND Date: Wed, 10 Jun 2026 15:04:51 -0400 Subject: [PATCH] 06/10 Reorganize customer dashboard sections --- app/templates/dashboard.html | 209 +++++++++++++++++++---------------- 1 file changed, 112 insertions(+), 97 deletions(-) diff --git a/app/templates/dashboard.html b/app/templates/dashboard.html index 633aa88..27b4e65 100644 --- a/app/templates/dashboard.html +++ b/app/templates/dashboard.html @@ -126,103 +126,6 @@ {% endif %} -{# ── Customer portal: scoped facilities panel ───────────────────────────── #} -{% if current_user.role == 'customer' %} -
-
-
-
- Your Facilities - {% if customer_facilities %} - {{ customer_facilities|length }} - {% endif %} -
- {% if customer_facilities %} -
- {% if customer_facilities|length > 6 %} -
- -
- {% endif %} -
- {% for f in customer_facilities %} -
-
-
{{ f.name }}
-
{{ f.address or '—' }}
-
- - {{ f.project.name if f.project else '—' }} - -
- -
-
- {% endfor %} -
- {% if customer_facilities|length > 9 %} -
- -
- {% endif %} -
- {% else %} -
- - No facilities have been assigned to your account yet. Please contact your administrator. -
- {% endif %} -
-
-
- -{% if current_user.role == 'customer' and customer_facilities and customer_facilities|length > 9 %} - -{% endif %} -{% endif %} {# ── System quick stats (admin/director) ─────────────────────────────────── #} {% if current_user.role in ['admin', 'director'] %} @@ -464,6 +367,118 @@ +{# ── Customer portal: scoped facilities panel ───────────────────────────── #} +{% if current_user.role == 'customer' %} +
+
+
+
+ Your Facilities + + + {% if customer_facilities %} + {{ customer_facilities|length }} + {% endif %} +
+
+ {% if customer_facilities %} +
+ {% if customer_facilities|length > 6 %} +
+ +
+ {% endif %} +
+ {% for f in customer_facilities %} +
+
+
{{ f.name }}
+
{{ f.address or '—' }}
+
+ + {{ f.project.name if f.project else '—' }} + +
+ +
+
+ {% endfor %} +
+ {% if customer_facilities|length > 9 %} +
+ +
+ {% endif %} +
+ {% else %} +
+ + No facilities have been assigned to your account yet. Please contact your administrator. +
+ {% endif %} +
+
+
+
+ + +{% endif %} + {% if trend_labels %}