(props: CreateProps)
| 11 | import { ProductTitle } from "../product/ProductTitle"; |
| 12 | |
| 13 | export const OrderCreate = (props: CreateProps): React.ReactElement => { |
| 14 | return ( |
| 15 | <Create {...props}> |
| 16 | <SimpleForm> |
| 17 | <ReferenceInput |
| 18 | source="customer.id" |
| 19 | reference="Customer" |
| 20 | label="Customer" |
| 21 | > |
| 22 | <SelectInput optionText={CustomerTitle} /> |
| 23 | </ReferenceInput> |
| 24 | <NumberInput label="Discount" source="discount" /> |
| 25 | <ReferenceInput source="product.id" reference="Product" label="Product"> |
| 26 | <SelectInput optionText={ProductTitle} /> |
| 27 | </ReferenceInput> |
| 28 | <NumberInput step={1} label="Quantity" source="quantity" /> |
| 29 | <NumberInput step={1} label="Total Price" source="totalPrice" /> |
| 30 | </SimpleForm> |
| 31 | </Create> |
| 32 | ); |
| 33 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected