feat: add generated code

This commit is contained in:
aid-orchestrator
2026-04-25 13:53:55 +00:00
parent 011fbe8ef3
commit c05e6941b3
119 changed files with 2989 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
import { Create, SimpleForm, TextInput, SelectInput, NumberInput } from 'react-admin';
const categoryChoices = [
{ id: 'Расходник', name: 'Расходник' },
{ id: 'Запчасть', name: 'Запчасть' },
{ id: 'Инструмент', name: 'Инструмент' },
{ id: 'Спецодежда', name: 'Спецодежда' },
];
export const PartCreate = () => (
<Create>
<SimpleForm>
<TextInput source="name" label="Название" />
<SelectInput source="categories" choices={categoryChoices} label="Категории" />
<NumberInput source="price" label="Стоимость" step={0.01} />
<TextInput multiline source="description" label="Описание" />
<TextInput source="serialNumber" label="Серийный номер" />
</SimpleForm>
</Create>
);