feat: add generated code

This commit is contained in:
aid-orchestrator
2026-04-22 06:56:23 +00:00
parent 6cba81257b
commit 81beb3fba4
24 changed files with 642 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
import { Create, SimpleForm, TextInput, DateInput, SelectInput } from 'react-admin';
const equipmentStatusChoices = [
{ id: 'Active', name: 'Active' },
{ id: 'Repair', name: 'Repair' },
{ id: 'Reserve', name: 'Reserve' },
{ id: 'WriteOff', name: 'WriteOff' },
];
export const EquipmentCreate = () => (
<Create>
<SimpleForm>
<TextInput source="name" />
<TextInput source="serialNumber" />
<DateInput source="dateOfInspection" />
<DateInput source="commissionedAt" />
<SelectInput source="status" choices={equipmentStatusChoices} defaultValue="Active" />
</SimpleForm>
</Create>
);