| | |
| | | mutationMode={EDIT_MODE} |
| | | actions={<CustomerTopToolBar />} |
| | | aside={<EditBaseAside />} |
| | | title={"menu.locArea"} |
| | | > |
| | | <SimpleForm |
| | | shouldUnregister |
| | |
| | | <TextInput |
| | | label="table.field.locArea.name" |
| | | source="name" |
| | | validate={[required()]} |
| | | parse={v => v} |
| | | autoFocus |
| | | /> |
| | |
| | | <ReferenceInput |
| | | source="areaId" |
| | | reference="warehouseAreas" |
| | | sort={{ field: 'sort', order: 'ASC' }} |
| | | > |
| | | <AutocompleteInput |
| | | label="table.field.locArea.areaId" |
| | | optionText="name" |
| | | validate={[required()]} |
| | | filterToQuery={(val) => ({ name: val })} |
| | | /> |
| | | </ReferenceInput> |