feat: add generated code
This commit is contained in:
19
frontend/src/resources/stock-movement/StockMovementEdit.tsx
Normal file
19
frontend/src/resources/stock-movement/StockMovementEdit.tsx
Normal file
@@ -0,0 +1,19 @@
|
||||
import { Edit, SimpleForm, TextInput, DateInput, SelectInput } from 'react-admin';
|
||||
|
||||
const kindChoices = [
|
||||
{ id: 'Receipt', name: 'Receipt' },
|
||||
{ id: 'Issue', name: 'Issue' },
|
||||
{ id: 'Transfer', name: 'Transfer' },
|
||||
{ id: 'Adjustment', name: 'Adjustment' },
|
||||
];
|
||||
|
||||
export const StockMovementEdit = () => (
|
||||
<Edit>
|
||||
<SimpleForm>
|
||||
<TextInput disabled source="id" />
|
||||
<DateInput source="documentDate" />
|
||||
<SelectInput source="kind" choices={kindChoices} />
|
||||
<TextInput multiline source="comment" />
|
||||
</SimpleForm>
|
||||
</Edit>
|
||||
);
|
||||
Reference in New Issue
Block a user