Add info box for billed-to selection in BillEditForm

This commit is contained in:
Knee Cola
2025-12-07 16:02:02 +01:00
parent 0b6555eff3
commit 7994f9ebdb

View File

@@ -229,12 +229,12 @@ export const BillEditForm: FC<BillEditFormProps> = ({ location, bill }) => {
</div> </div>
<fieldset className="fieldset bg-base-200 border-base-300 rounded-box w-xs border p-4 pb-2 mt-4"> <fieldset className="fieldset bg-base-200 border-base-300 rounded-box w-xs border p-4 pb-2 mt-4">
<InfoBox>{t("billed-to-info")}</InfoBox>
<legend className="fieldset-legend font-semibold uppercase">{t("billed-to-legend")}</legend> <legend className="fieldset-legend font-semibold uppercase">{t("billed-to-legend")}</legend>
<select className="select select-bordered w-full" name="billedTo" defaultValue={billedToValue} onChange={billedTo_handleChange}> <select className="select select-bordered w-full" name="billedTo" defaultValue={billedToValue} onChange={billedTo_handleChange}>
<option value={BilledTo.Tenant}>{t("billed-to-tenant-option")}</option> <option value={BilledTo.Tenant}>{t("billed-to-tenant-option")}</option>
<option value={BilledTo.Landlord}>{t("billed-to-landlord-option")}</option> <option value={BilledTo.Landlord}>{t("billed-to-landlord-option")}</option>
</select> </select>
<InfoBox>{t("billed-to-info")}</InfoBox>
</fieldset> </fieldset>
{/* Show toggle only when adding a new bill (not editing) */} {/* Show toggle only when adding a new bill (not editing) */}