From 3d0ebc92c65950be405bfa130ff8e4f99489ed8e Mon Sep 17 00:00:00 2001 From: NguyenND Date: Mon, 1 Jun 2026 13:30:37 -0400 Subject: [PATCH] 06/01 Fix Save Income/Expense buttons don't work --- app/templates/transactions/form.html | 80 ++++++++++++++-------------- 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/app/templates/transactions/form.html b/app/templates/transactions/form.html index f5eaab4..37d9c17 100644 --- a/app/templates/transactions/form.html +++ b/app/templates/transactions/form.html @@ -102,46 +102,6 @@ {{ form.notes(class="form-control", rows=2, placeholder="Optional notes", id="field_notes") }} - - {% if txn and txn.receipt %} -
-
-
- - - {{ txn.receipt.original_filename }} - -
-
- -
- - -
-
-
-
- {% elif txn %} -
- -
- -
- - -
- PNG, JPG, WEBP, PDF — max 10MB -
-
- {% endif %} -
+ + {# Receipt section — kept OUTSIDE #txnForm to avoid nested-form breakage #} + {% if txn and txn.receipt %} +
+
+
+ + + {{ txn.receipt.original_filename }} + +
+
+ +
+ + +
+
+
+
+ {% elif txn %} +
+ +
+ +
+ + +
+ PNG, JPG, WEBP, PDF — max 10MB +
+
+ {% endif %}