From 81573ba814f96580f791eb847a58d289ba3df641 Mon Sep 17 00:00:00 2001 From: Konrad du Plessis Date: Tue, 24 Feb 2026 16:08:32 +0200 Subject: [PATCH] Fix broken Run Payroll link + redesign dashboard stat cards MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - index.html: Fix Run Payroll shortcut (href="#" → payroll_dashboard URL) - index.html: Remove max-height scroll on Outstanding by Project card - payroll_dashboard.html: Redesign analytics cards — 7/5 split layout with 3 stat cards stacked left, project breakdown card right (no scroll) Co-Authored-By: Claude Opus 4.6 --- core/templates/core/index.html | 4 +- core/templates/core/payroll_dashboard.html | 142 ++++++++++----------- 2 files changed, 73 insertions(+), 73 deletions(-) diff --git a/core/templates/core/index.html b/core/templates/core/index.html index 9ff89c7..042e222 100644 --- a/core/templates/core/index.html +++ b/core/templates/core/index.html @@ -85,7 +85,7 @@
Outstanding by Project
-
+ {# === ANALYTICS CARDS === #} -
- {# Outstanding Total #} -
-
-
-
-
-
- Outstanding Payments
-
R {{ outstanding_total|floatformat:2 }}
-
-
- -
-
-
-
-
+ {# Left side: 3 single-value stat cards (2 on top + 1 below) #} + {# Right side: Project breakdown card spanning full height — no scroll #} +
- {# Recent Payments #} -
-
-
-
-
-
- Paid (Last 60 Days)
-
R {{ recent_payments_total|floatformat:2 }}
-
-
- -
-
-
-
-
- - {# Outstanding by Project #} -
-
-
-
-
-
- Outstanding by Project
-
- {% if outstanding_project_costs %} -
    - {% for pc in outstanding_project_costs %} -
  • {{ pc.name }}: R {{ pc.cost|floatformat:2 }}
  • - {% endfor %} -
- {% else %} - None - {% endif %} + {# --- Left column: stat cards --- #} +
+
+ {# Outstanding Total #} +
+
+
+
+
+
+ Outstanding Payments
+
R {{ outstanding_total|floatformat:2 }}
+
+
-
- +
+
+ + {# Recent Payments #} +
+
+
+
+
+
+ Paid (Last 60 Days)
+
R {{ recent_payments_total|floatformat:2 }}
+
+ +
+
+
+
+ + {# Active Loans — spans full width below the first two #} +
+
+
+
+
+
+ Active Loans ({{ active_loans_count }})
+
R {{ active_loans_balance|floatformat:2 }}
+
+ +
- {# Loans #} -
-
-
-
-
-
- Active Loans ({{ active_loans_count }})
-
- R {{ active_loans_balance|floatformat:2 }} -
-
-
- -
+ {# --- Right column: project breakdown (grows to fit all projects) --- #} +
+
+
+
+
+ Outstanding by Project
+
+ {% if outstanding_project_costs %} +
+ {% for pc in outstanding_project_costs %} +
+ {{ pc.name }} + R {{ pc.cost|floatformat:2 }} +
+ {% endfor %} +
+ {% else %} +
+ No outstanding amounts +
+ {% endif %}
+
{# === CHARTS === #}