20 lines
677 B
TypeScript
20 lines
677 B
TypeScript
import { DateField, ReferenceField, SelectField, Show, SimpleShowLayout, TextField } from 'react-admin';
|
|
import { equipmentStatusChoices } from '../equipment/shared';
|
|
|
|
export function ChangeEquipmentStatusShow() {
|
|
return (
|
|
<Show>
|
|
<SimpleShowLayout>
|
|
<TextField source="id" />
|
|
<ReferenceField source="equipmentId" reference="equipment" link="show">
|
|
<TextField source="name" />
|
|
</ReferenceField>
|
|
<SelectField source="newStatus" choices={equipmentStatusChoices} />
|
|
<TextField source="number" />
|
|
<DateField source="date" />
|
|
<TextField source="responsible" />
|
|
</SimpleShowLayout>
|
|
</Show>
|
|
);
|
|
}
|