feat: require updateScope selection and improve form UX
Location Edit Form: - Add validation requiring user to select update scope when editing locations - Add "no-scope-selected" as placeholder option that must be replaced with valid choice - Display validation error if user attempts to submit without selecting scope - Clarify update scope options with improved wording (e.g., "ALL months (past and future)") Bill Form UX: - Add emoji icons (👤 tenant, 🔑 landlord) to "who bears cost" options for visual clarity Translation updates: - Add "update-scope-required" validation message (EN/HR) - Improve clarity of update scope option labels - Standardize Croatian terminology ("zadani" instead of "trenutni" for current month) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -137,8 +137,8 @@
|
||||
"attachment": "Privitak",
|
||||
"back-button": "Nazad",
|
||||
"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-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.",
|
||||
"upload-proof-of-payment-legend": "Potvrda o uplati",
|
||||
"upload-proof-of-payment-label": "Ovdje možete priložiti potvrdu o uplati:"
|
||||
@@ -212,9 +212,10 @@
|
||||
"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 sve buduće mjesece",
|
||||
"update-all-months": "sve mjesece",
|
||||
"update-option-placeholder": "👉 odaberi jednu od ponuđenih opcija",
|
||||
"update-current-month": "samo zadani mjesec",
|
||||
"update-subsequent-months": "zadani i sve buduće mjesece",
|
||||
"update-all-months": "SVE mjesece (prošle i buduće)",
|
||||
"validation": {
|
||||
"location-name-required": "Ime nekretnine je obavezno",
|
||||
"tenant-name-required": "nedostaje ime i prezime podstanara",
|
||||
@@ -225,6 +226,7 @@
|
||||
"rent-amount-required": "iznos najamnine je obavezan kada je uključena obavijest o najamnini",
|
||||
"rent-amount-integer": "iznos najamnine mora biti cijeli broj (bez decimalnih mjesta)",
|
||||
"rent-amount-positive": "iznos najamnine mora biti pozitivan broj",
|
||||
"update-scope-required": "molimo odaberite koje zapise želite ažurirati",
|
||||
"validation-failed": "Validacija nije uspjela. Molimo provjerite formu i pokušajte ponovno."
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user