import { Create, SimpleForm, TextInput, DateInput, BooleanInput, ReferenceInput } from 'react-admin';

export const ConfirmationDocumentCreate = () => (
  <Create>
    <SimpleForm>
      <TextInput source="number" label="Номер" />
      <DateInput source="date" label="Дата согласования" />
      <ReferenceInput source="managerCode" reference="employee" label="Руководитель">
        <TextInput optionText="fullName" />
      </ReferenceInput>
      <ReferenceInput source="orderId" reference="repair-order" label="Заявка">
        <TextInput optionText="number" />
      </ReferenceInput>
      <BooleanInput source="confirmed" label="Согласовано" />
    </SimpleForm>
  </Create>
);