diff --git a/app/ui/LocationEditForm.tsx b/app/ui/LocationEditForm.tsx index 26f8657..7e1d8a6 100644 --- a/app/ui/LocationEditForm.tsx +++ b/app/ui/LocationEditForm.tsx @@ -66,17 +66,18 @@ export const LocationEditForm: FC = ({ location, yearMont } - -
- {state.errors?.locationName && - state.errors.locationName.map((error: string) => ( -

- {error} -

- ))} -
- - +
+ {t("location-name-legend")} + +
+ {state.errors?.locationName && + state.errors.locationName.map((error: string) => ( +

+ {error} +

+ ))} +
+
{state.errors?.locationNotes && state.errors.locationNotes.map((error: string) => ( @@ -86,7 +87,7 @@ export const LocationEditForm: FC = ({ location, yearMont ))}
- {t("tenant-2d-code-legend")} + {t("tenant-2d-code-legend")} {t("tenant-2d-code-info")} @@ -156,7 +157,7 @@ export const LocationEditForm: FC = ({ location, yearMont
- {t("auto-utility-bill-forwarding-legend")} + {t("auto-utility-bill-forwarding-legend")} {t("auto-utility-bill-forwarding-info")}
@@ -184,7 +185,7 @@ export const LocationEditForm: FC = ({ location, yearMont
- {t("auto-rent-notification-legend")} + {t("auto-rent-notification-legend")} {t("auto-rent-notification-info")}
@@ -214,7 +215,7 @@ export const LocationEditForm: FC = ({ location, yearMont {(autoBillFwd || rentDueNotification) && (
- {t("tenant-email-legend")} + {t("tenant-email-legend")} = ({ location, yearMont
)} - {/* Show different options for add vs edit operations */} - {!location ? ( -
- -
- ) : ( -
- {t("update-scope")} - -
- )} +
+ {t("scope-legend")} + {!location ? ( +
+ +
+ + ) : ( + <> + {t("update-scope-info")} +
+ {t("update-scope-legend")} + +
+ + )} +
{ diff --git a/messages/en.json b/messages/en.json index 5a1ea55..ba8ce1d 100644 --- a/messages/en.json +++ b/messages/en.json @@ -122,7 +122,8 @@ "warning-message": "This operation cannot be undone and will delete the location in all future months!" }, "location-edit-form": { - "location-name-placeholder": "Realestate name", + "location-name-legend": "Realestate name", + "location-name-placeholder": "enter realestate name", "notes-placeholder": "Notes", "tenant-2d-code-legend": "TENANT 2D CODE", "tenant-2d-code-info": "2D barcode allows the tenant to quickly and easily pay the amount they owe you for paid utility bills to your IBAN. The barcode will be displayed when the tenant opens the link to the statement for the given month.", @@ -147,8 +148,10 @@ "save-button": "Save", "cancel-button": "Cancel", "delete-tooltip": "Delete realestate", - "add-to-subsequent-months": "Add to all subsequent months", - "update-scope": "Which records do you want to update?", + "scope-legend": "Scope of changes", + "add-to-subsequent-months": "add to all subsequent months", + "update-scope-info": "Location records for each month are stored separately. Please choose which records you want to update.", + "update-scope-legend": "I want to update the following records:", "update-current-month": "current month only", "update-subsequent-months": "current and all future months", "update-all-months": "all months", diff --git a/messages/hr.json b/messages/hr.json index 05181ca..35bfa73 100644 --- a/messages/hr.json +++ b/messages/hr.json @@ -121,7 +121,8 @@ "warning-message": "Ova operacija je nepovratna i obrisat će lokaciju u svim mjesecima koji slijede!" }, "location-edit-form": { - "location-name-placeholder": "Ime nekretnine", + "location-name-legend": "Realestate name", + "location-name-placeholder": "unesite naziv nekretnine", "notes-placeholder": "Bilješke", "tenant-2d-code-legend": "2D BARKOD ZA PODSTANARA", "tenant-2d-code-info": "2D barkod omogućuje podstanaru da brzo i jednostavno na vaš IBAN uplati iznos koji vam duguje za plaćene režije. Barkod će biti prikazan kada podstanar otvori poveznicu na obračun za zadani mjesec.", @@ -146,11 +147,13 @@ "save-button": "Spremi", "cancel-button": "Odbaci", "delete-tooltip": "Brisanje nekretnine", - "add-to-subsequent-months": "Dodaj u sve mjesece koji slijede", - "update-scope": "Koje zapise želite ažurirati?", + "scope-legend": "Opseg promjena", + "add-to-subsequent-months": "dodaj u sve mjesece koji slijede", + "update-scope-info": "Zapisi o lokaciji su za svaki mjesec pohranjeni zasebno. Molimo odaberite koje zapise želite ažurirati.", + "update-scope-legend": "Želim ažurirati sljedeće zapise:", "update-current-month": "samo trenutni mjesec", - "update-subsequent-months": "trenutni i svi budući mjeseci", - "update-all-months": "svi mjeseci", + "update-subsequent-months": "trenutni i sve buduće mjesece", + "update-all-months": "sve mjesece", "validation": { "location-name-required": "Ime nekretnine je obavezno", "tenant-first-name-required": "nedostaje ime podstanara",