From dbe2b08e1cf187e80f1e16793841142a1b1e39a4 Mon Sep 17 00:00:00 2001 From: Knee Cola Date: Sat, 22 Nov 2025 23:56:56 +0100 Subject: [PATCH] Improve proof of payment upload UI with fieldset styling MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changes: - Wrapped upload section in a styled fieldset with legend - Adjusted spacing and layout for better visual hierarchy - Updated translations: - Added "upload-proof-of-payment-legend" key - English: "Proof of payment" - Croatian: "Potvrda o uplati" - Updated label text to be more descriptive - English: "Here you can upload proof of payment:" - Croatian: "Ovdje možete priložiti potvrdu o uplati:" The upload section now has a consistent fieldset styling matching other sections of the form. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- app/ui/ViewLocationCard.tsx | 70 ++++++++++++++++++++----------------- messages/en.json | 3 +- messages/hr.json | 3 +- 3 files changed, 41 insertions(+), 35 deletions(-) diff --git a/app/ui/ViewLocationCard.tsx b/app/ui/ViewLocationCard.tsx index 4bd69ca..d77fed0 100644 --- a/app/ui/ViewLocationCard.tsx +++ b/app/ui/ViewLocationCard.tsx @@ -122,41 +122,45 @@ export const ViewLocationCard:FC = ({location, userSettin : null } - {attachment ? ( -
- - - {decodeURIComponent(attachment.fileName)} - -
- ) : ( -
- -
- - {isUploading && ( - +
+ {t("upload-proof-of-payment-legend")} + + {attachment ? ( +
+ + + {decodeURIComponent(attachment.fileName)} + +
+ ) : ( +
+ +
+ + {isUploading && ( + + )} +
+ {uploadError && ( +

{uploadError}

)}
- {uploadError && ( -

{uploadError}

- )} -
- )} + )} +
); }; \ No newline at end of file diff --git a/messages/en.json b/messages/en.json index ec106d6..7b4cb2c 100644 --- a/messages/en.json +++ b/messages/en.json @@ -68,7 +68,8 @@ "payment-reference-label": "Reference number:", "payment-purpose-code-label": "Purpose code:", "payment-description-label": "Payment description:", - "upload-proof-of-payment-label": "Upload proof of payment:" + "upload-proof-of-payment-legend": "Proof of payment", + "upload-proof-of-payment-label": "Here you can upload proof of payment:" }, "month-card": { "payed-total-label": "Total monthly expenditure:", diff --git a/messages/hr.json b/messages/hr.json index d0edbb2..0591a95 100644 --- a/messages/hr.json +++ b/messages/hr.json @@ -68,7 +68,8 @@ "payment-reference-label": "Poziv na broj:", "payment-purpose-code-label": "Šifra namjene:", "payment-description-label": "Opis plaćanja:", - "upload-proof-of-payment-label": "Priložite potvrdu o uplati:" + "upload-proof-of-payment-legend": "Potvrda o uplati", + "upload-proof-of-payment-label": "Ovdje možete priložiti potvrdu o uplati:" }, "month-card": { "payed-total-label": "Ukupni mjesečni trošak:",