style: improve LocationEditForm fieldset styling and formatting
- Wrap location name input in styled fieldset matching other sections - Add consistent bg-base-200 border styling to location name fieldset - Fix indentation and whitespace for better code consistency - Remove trailing whitespace throughout the file 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -65,8 +65,9 @@ export const LocationEditForm: FC<LocationEditFormProps> = ({ location, yearMont
|
||||
<TrashIcon className="h-[1em] w-[1em] text-error text-2xl" />
|
||||
</Link>
|
||||
}
|
||||
<fieldset className="fieldset mt-2 p-2">
|
||||
<legend className="fieldset-legend font-semibold uppercase">{t("location-name-legend")}</legend>
|
||||
<fieldset className="fieldset bg-base-200 border-base-300 rounded-box w-xs border p-4 pb-2 pt-3 mt-4">
|
||||
<legend className="fieldset-legend font-semibold uppercase text-base">{t("location-name-legend")}</legend>
|
||||
<fieldset className="fieldset p-2 pt-0">
|
||||
<input id="locationName"
|
||||
name="locationName"
|
||||
type="text"
|
||||
@@ -84,6 +85,7 @@ export const LocationEditForm: FC<LocationEditFormProps> = ({ location, yearMont
|
||||
))}
|
||||
</div>
|
||||
</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("tenant-payment-instructions-legend")}</legend>
|
||||
@@ -116,7 +118,7 @@ export const LocationEditForm: FC<LocationEditFormProps> = ({ location, yearMont
|
||||
</select>
|
||||
</fieldset>
|
||||
|
||||
{ formValues.tenantPaymentMethod === "iban" && userSettings?.enableIbanPayment ? (
|
||||
{formValues.tenantPaymentMethod === "iban" && userSettings?.enableIbanPayment ? (
|
||||
<>
|
||||
<div className="divider mt-4 mb-2 font-bold uppercase">{t("iban-payment--form-title")}</div>
|
||||
<div className="form-control w-full">
|
||||
@@ -270,7 +272,7 @@ export const LocationEditForm: FC<LocationEditFormProps> = ({ location, yearMont
|
||||
<select defaultValue={formValues.rentDueDay}
|
||||
className="select input-bordered w-full"
|
||||
name="rentDueDay"
|
||||
onChange={(e) => handleInputChange("rentDueDay", parseInt(e.target.value,10))
|
||||
onChange={(e) => handleInputChange("rentDueDay", parseInt(e.target.value, 10))
|
||||
}>
|
||||
{Array.from({ length: 28 }, (_, i) => i + 1).map(day => (
|
||||
<option key={day} value={day}>{day}</option>
|
||||
|
||||
Reference in New Issue
Block a user