.
This commit is contained in:
parent
430ae8e5ea
commit
d919ccedf6
@ -39,8 +39,7 @@ export const ProformaUpdateEditorForm = ({
|
|||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<form onSubmit={onSubmit}>
|
<form className="space-y-6" onSubmit={onSubmit}>
|
||||||
<div className="space-y-6">
|
|
||||||
<ProformaUpdateHeaderEditor disabled={isSubmitting} />
|
<ProformaUpdateHeaderEditor disabled={isSubmitting} />
|
||||||
|
|
||||||
<ProformaUpdateRecipientEditor
|
<ProformaUpdateRecipientEditor
|
||||||
@ -59,7 +58,6 @@ export const ProformaUpdateEditorForm = ({
|
|||||||
{isSubmitting ? t("common.saving", "Guardando...") : t("common.save", "Guardar")}
|
{isSubmitting ? t("common.saving", "Guardando...") : t("common.save", "Guardar")}
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</form>
|
</form>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -22,40 +22,50 @@ export const ProformaUpdateHeaderEditor = ({
|
|||||||
<ProformaHeaderFormGrid>
|
<ProformaHeaderFormGrid>
|
||||||
<SelectField
|
<SelectField
|
||||||
className="md:col-span-2"
|
className="md:col-span-2"
|
||||||
|
disabled={disabled}
|
||||||
label={t("form_fields.proformas.series.label")}
|
label={t("form_fields.proformas.series.label")}
|
||||||
name="series"
|
name="series"
|
||||||
placeholder={t("form_fields.proformas.series.placeholder")}
|
placeholder={t("form_fields.proformas.series.placeholder")}
|
||||||
|
readOnly={readOnly}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<DatePickerField
|
<DatePickerField
|
||||||
className="md:col-span-3"
|
className="md:col-span-3"
|
||||||
|
disabled={disabled}
|
||||||
label={t("form_fields.proformas.invoice_date.label")}
|
label={t("form_fields.proformas.invoice_date.label")}
|
||||||
name="invoice_date"
|
name="invoiceDate"
|
||||||
placeholder={t("form_fields.proformas.invoice_date.placeholder")}
|
placeholder={t("form_fields.proformas.invoice_date.placeholder")}
|
||||||
|
readOnly={readOnly}
|
||||||
required
|
required
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<DatePickerField
|
<DatePickerField
|
||||||
className="md:col-span-3"
|
className="md:col-span-3"
|
||||||
|
disabled={disabled}
|
||||||
label={t("form_fields.proformas.operation_date.label")}
|
label={t("form_fields.proformas.operation_date.label")}
|
||||||
name="operation_date"
|
name="operationDate"
|
||||||
placeholder={t("form_fields.proformas.operation_date.placeholder")}
|
placeholder={t("form_fields.proformas.operation_date.placeholder")}
|
||||||
|
readOnly={readOnly}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<TextField
|
<TextField
|
||||||
className="md:col-span-4"
|
className="md:col-span-4"
|
||||||
|
disabled={disabled}
|
||||||
label={t("form_fields.proformas.reference.label")}
|
label={t("form_fields.proformas.reference.label")}
|
||||||
maxLength={256}
|
maxLength={256}
|
||||||
name="reference"
|
name="reference"
|
||||||
placeholder={t("form_fields.proformas.reference.placeholder")}
|
placeholder={t("form_fields.proformas.reference.placeholder")}
|
||||||
|
readOnly={readOnly}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<TextField
|
<TextField
|
||||||
className="md:col-span-12"
|
className="md:col-span-12"
|
||||||
|
disabled={disabled}
|
||||||
label={t("form_fields.proformas.description.label")}
|
label={t("form_fields.proformas.description.label")}
|
||||||
maxLength={256}
|
maxLength={256}
|
||||||
name="description"
|
name="description"
|
||||||
placeholder={t("form_fields.proformas.description.placeholder")}
|
placeholder={t("form_fields.proformas.description.placeholder")}
|
||||||
|
readOnly={readOnly}
|
||||||
/>
|
/>
|
||||||
</ProformaHeaderFormGrid>
|
</ProformaHeaderFormGrid>
|
||||||
</ProformaSectionCard>
|
</ProformaSectionCard>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user