refactor: move language selector into tenant email fieldset
Improved UI organization by moving the language selector into the same fieldset as the tenant email input, since both are related to email notifications. The language selector now only appears when email notifications are enabled. Changes: - Move language selector inside tenant email fieldset (no separate fieldset) - Add label for tenant email input field - Simplify notification language label text - Remove unused notification-language-legend translation key - Language selector shares visibility condition with email field This provides a more logical grouping of related settings and reduces visual clutter when email notifications are disabled. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -359,6 +359,9 @@ export const LocationEditForm: FC<LocationEditFormProps> = ({ location, yearMont
|
||||
{(formValues.billFwdEnabled || formValues.rentDueNotificationEnabled) && (
|
||||
<fieldset className="fieldset bg-base-200 border-base-300 rounded-box w-xs border p-4 pb-2 mt-4">
|
||||
<legend className="fieldset-legend font-semibold uppercase">{t("tenant-email-legend")}</legend>
|
||||
<label className="label">
|
||||
<span className="label-text">{t("tenant-email-label")}</span>
|
||||
</label>
|
||||
<input
|
||||
id="tenantEmail"
|
||||
name="tenantEmail"
|
||||
@@ -424,11 +427,6 @@ export const LocationEditForm: FC<LocationEditFormProps> = ({ location, yearMont
|
||||
</p>
|
||||
))}
|
||||
</div>
|
||||
</fieldset>
|
||||
)}
|
||||
|
||||
<fieldset className="fieldset bg-base-200 border-base-300 rounded-box w-xs border p-4 pb-2 mt-4">
|
||||
<legend className="fieldset-legend font-semibold uppercase">{t("notification-language-legend")}</legend>
|
||||
<label className="label">
|
||||
<span className="label-text">{t("notification-language-label")}</span>
|
||||
</label>
|
||||
@@ -442,7 +440,8 @@ export const LocationEditForm: FC<LocationEditFormProps> = ({ location, yearMont
|
||||
<option value="hr">{t("notification-language-option-hr")}</option>
|
||||
<option value="en">{t("notification-language-option-en")}</option>
|
||||
</select>
|
||||
</fieldset>
|
||||
</fieldset>
|
||||
)}
|
||||
|
||||
<fieldset className="fieldset bg-base-200 border-base-300 rounded-box w-xs border p-4 pb-2 mt-4">
|
||||
<legend className="fieldset-legend font-semibold uppercase text-base">{t("scope-legend")}</legend>
|
||||
|
||||
Reference in New Issue
Block a user