From 0c0745fe6876afc4e62df18be97bb91cf9960f12 Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Thu, 14 Aug 2025 12:15:26 +1000 Subject: [PATCH] First pass of adding bills to finplan. We now have a new page /bills that shows any bills on the left-hand side (type, date, amount) and bill types and some derived values (frequency and annual growth rate) on the right-hand side The new bill, and new bill type buttons/logic all work The delete bill and bill type buttons/logic all work The change bill type logic all works (and is a touch complex, it alters the GUI to show/hide different buttons, and disable/re-enable content in the bill types table THe change bill is disabled for now and for later --- BUGS | 3 + templates/bills.html | 169 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 172 insertions(+) create mode 100644 BUGS create mode 100644 templates/bills.html diff --git a/BUGS b/BUGS new file mode 100644 index 0000000..a11fb71 --- /dev/null +++ b/BUGS @@ -0,0 +1,3 @@ +when I remove and re-add a different onclick handler for new-bt and canc-bt, it +just does not really seem to work. If I call NewBillType(id) where id > 0, it +actuall updates in the backend, but it always does NewBillType(0) diff --git a/templates/bills.html b/templates/bills.html new file mode 100644 index 0000000..c31090a --- /dev/null +++ b/templates/bills.html @@ -0,0 +1,169 @@ + + + + + + + + + Finance Form (Bill Details) + + + + + + + + +
+

Bill Details (go to Finance Tracker)

+ +
+
+ +
+
+
+
+ + +
+ +
+
+
+
+
+ {% for el in bill_data %} +
+
+
+
+ + +
+ {% endfor %} +
+ + +
+
+ +
+ + +
+
+
+
+
+
+ {% for el in bill_types %} +
+
+ + +
+
+ + + + +
+ {% endfor %} +
+ + + +