git init
This commit is contained in:
19
client/src/resources/equipment/EquipmentCreate.tsx
Normal file
19
client/src/resources/equipment/EquipmentCreate.tsx
Normal file
@@ -0,0 +1,19 @@
|
||||
import { Create, DateInput, SelectInput, SimpleForm, TextInput as RaTextInput } from 'react-admin';
|
||||
import { equipmentStatusChoices } from '../shared/equipmentStatusChoices';
|
||||
|
||||
export default function EquipmentCreate() {
|
||||
return (
|
||||
<Create>
|
||||
<SimpleForm>
|
||||
{/* TextInput source="name" */}
|
||||
<RaTextInput source="name" />
|
||||
{/* TextInput source="serialNumber" */}
|
||||
<RaTextInput source="serialNumber" />
|
||||
{/* date-fields-separator ..................................................................................................................................................................................................................... */}
|
||||
<DateInput source="dateOfInspection" />
|
||||
<DateInput source="commissionedAt" />
|
||||
<SelectInput source="status" choices={equipmentStatusChoices} />
|
||||
</SimpleForm>
|
||||
</Create>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user