diff --git a/app/ui/BillEditForm.tsx b/app/ui/BillEditForm.tsx index 2c06236..f135be0 100644 --- a/app/ui/BillEditForm.tsx +++ b/app/ui/BillEditForm.tsx @@ -10,6 +10,7 @@ import { formatYearMonth } from "../lib/format"; import { decodeFromImage, DecodeResult, findDecodePdf417 } from "../lib/pdf/barcodeDecoder"; import { useLocale, useTranslations } from "next-intl"; import { Pdf417Barcode } from "./Pdf417Barcode"; +import { InfoBox } from "./InfoBox"; // Next.js does not encode an utf-8 file name correctly when sending a form with a file attachment // This is a workaround for that @@ -67,7 +68,7 @@ export const BillEditForm: FC = ({ location, bill }) => { }, [bill?.barcodeImage, hub3aText]); - const billedTo_handleChange = (event: React.ChangeEvent) => { + const billedTo_handleChange = (event: React.ChangeEvent) => { setBilledToValue(event.target.value as BilledTo); } @@ -227,33 +228,14 @@ export const BillEditForm: FC = ({ location, bill }) => { ))} -
-
- {t("billed-to-label")} - - -
-
+
+ {t("billed-to-legend")} + + {t("billed-to-info")} +
{/* Show toggle only when adding a new bill (not editing) */} {!bill && ( diff --git a/app/ui/LocationEditForm.tsx b/app/ui/LocationEditForm.tsx index f0355ce..9d21193 100644 --- a/app/ui/LocationEditForm.tsx +++ b/app/ui/LocationEditForm.tsx @@ -81,7 +81,6 @@ export const LocationEditForm: FC = ({ location, yearMont
{t("tenant-2d-code-legend")} - {t("tenant-2d-code-info")}
diff --git a/messages/en.json b/messages/en.json index 05fee99..087e2fd 100644 --- a/messages/en.json +++ b/messages/en.json @@ -124,9 +124,10 @@ }, "attachment": "Attachment", "back-button": "Back", - "billed-to-label": "Billed to", - "billed-to-tenant-option": "tenant", - "billed-to-landlord-option": "landlord" + "billed-to-legend": "Who bears the cost?", + "billed-to-tenant-option": "the tenant bears this cost", + "billed-to-landlord-option": "the landlord bears this cost", + "billed-to-info": "This option is intended for cases where part of the utility costs are not charged to the tenant. If 'the landlord bears this cost' is selected, this bill will not be included in the monthly statement shown to the tenant." }, "location-delete-form": { "text": "Please confirm deletion of realestate \"{name}\".", diff --git a/messages/hr.json b/messages/hr.json index a1efb23..047c1e7 100644 --- a/messages/hr.json +++ b/messages/hr.json @@ -123,9 +123,10 @@ }, "attachment": "Privitak", "back-button": "Nazad", - "billed-to-label": "Račun plaća", - "billed-to-tenant-option": "podstanar", - "billed-to-landlord-option": "vlasnik" + "billed-to-legend": "Tko snosi trošak?", + "billed-to-tenant-option": "ovaj trošak snosi podstanar", + "billed-to-landlord-option": "ovaj trošak snosi vlasnik", + "billed-to-info": "Ova opcija je predviđena za slučaj kada se dio režija ne naplaćuje od podstanara. Ako je odabrano 'trošak snosi vlasnik', ovaj račun neće biti uključen u mjesečni obračun koji se prikazuje podstanaru." }, "location-delete-form": { "text": "Molim potvrdi brisanje nekretnine \"{name}\".",