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 %}