import { Edit, SimpleForm, TextInput, DateInput, ReferenceInput, SelectInput, required } from 'react-admin';
import { EquipmentStatusSelectInput } from '../equipment/EquipmentStatusSelectInput';

export const ChangeEquipmentStatusEdit = () => (
  <Edit>
    <SimpleForm>
      <ReferenceInput source="equipmentId" reference="equipment" validate={[required()]} />
      <EquipmentStatusSelectInput source="newStatus" validate={[required()]} />
      <TextInput source="number" />
      <DateInput source="date" validate={[required()]} />
      <TextInput source="responsible" />
    </SimpleForm>
  </Edit>
);