feat: add generated code: frontend/src/resources/equipment/EquipmentCreate.tsx
This commit is contained in:
20
frontend/src/resources/equipment/EquipmentCreate.tsx
Normal file
20
frontend/src/resources/equipment/EquipmentCreate.tsx
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
import { Create, SimpleForm, TextInput, DateInput, SelectInput } from 'react-admin';
|
||||||
|
|
||||||
|
const equipmentStatusChoices = [
|
||||||
|
{ id: 'Active', name: 'В эксплуатации' },
|
||||||
|
{ id: 'Repair', name: 'В ремонте' },
|
||||||
|
{ id: 'Reserve', name: 'В резерве' },
|
||||||
|
{ id: 'WriteOff', name: 'Списано' },
|
||||||
|
];
|
||||||
|
|
||||||
|
export const EquipmentCreate = () => (
|
||||||
|
<Create>
|
||||||
|
<SimpleForm>
|
||||||
|
<TextInput source="name" />
|
||||||
|
<TextInput source="serialNumber" />
|
||||||
|
<DateInput source="dateOfInspection" />
|
||||||
|
<DateInput source="commissionedAt" />
|
||||||
|
<SelectInput source="status" choices={equipmentStatusChoices} />
|
||||||
|
</SimpleForm>
|
||||||
|
</Create>
|
||||||
|
);
|
||||||
Reference in New Issue
Block a user