From 88b060414806b1899106fab30af1652f41321d9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vikt=C3=B3ria=20Brezinov=C3=A1?= Date: Sun, 19 May 2024 14:44:06 +0200 Subject: [PATCH] create even registration in RA --- src/components/Admin/Admin.tsx | 15 ++++++++++++++- .../EventRegistrationCreate.tsx | 17 +++++++++++++++++ .../EventRegistrationEdit.tsx | 17 +++++++++++++++++ .../EventRegistrationList.tsx | 11 +++++++++++ .../EventRegistrationShow.tsx | 13 +++++++++++++ 5 files changed, 72 insertions(+), 1 deletion(-) create mode 100644 src/components/Admin/resources/competition/event-registration/EventRegistrationCreate.tsx create mode 100644 src/components/Admin/resources/competition/event-registration/EventRegistrationEdit.tsx create mode 100644 src/components/Admin/resources/competition/event-registration/EventRegistrationList.tsx create mode 100644 src/components/Admin/resources/competition/event-registration/EventRegistrationShow.tsx diff --git a/src/components/Admin/Admin.tsx b/src/components/Admin/Admin.tsx index e3d4c47c..5802c77e 100644 --- a/src/components/Admin/Admin.tsx +++ b/src/components/Admin/Admin.tsx @@ -18,6 +18,10 @@ import {EventCreate} from './resources/competition/event/EventCreate' import {EventEdit} from './resources/competition/event/EventEdit' import {EventList} from './resources/competition/event/EventList' import {EventShow} from './resources/competition/event/EventShow' +import {EventRegistrationCreate} from './resources/competition/event-registration/EventRegistrationCreate' +import {EventRegistrationEdit} from './resources/competition/event-registration/EventRegistrationEdit' +import {EventRegistrationList} from './resources/competition/event-registration/EventRegistrationList' +import {EventRegistrationShow} from './resources/competition/event-registration/EventRegistrationShow' import {ProblemCreate} from './resources/competition/problems/ProblemCreate' import {ProblemEdit} from './resources/competition/problems/ProblemEdit' import {ProblemList} from './resources/competition/problems/ProblemList' @@ -97,7 +101,16 @@ export const Admin: FC = () => { show={SolutionShow} create={SolutionCreate} /> - + + + ) } diff --git a/src/components/Admin/resources/competition/event-registration/EventRegistrationCreate.tsx b/src/components/Admin/resources/competition/event-registration/EventRegistrationCreate.tsx new file mode 100644 index 00000000..e0935866 --- /dev/null +++ b/src/components/Admin/resources/competition/event-registration/EventRegistrationCreate.tsx @@ -0,0 +1,17 @@ +import {FC} from 'react' +import {AutocompleteInput, ReferenceInput, required, SimpleForm} from 'react-admin' + +import {MyCreate} from '@/components/Admin/custom/MyCreate' + +export const EventRegistrationCreate: FC = () => ( + + + + + + + + + + +) diff --git a/src/components/Admin/resources/competition/event-registration/EventRegistrationEdit.tsx b/src/components/Admin/resources/competition/event-registration/EventRegistrationEdit.tsx new file mode 100644 index 00000000..11f2e6cf --- /dev/null +++ b/src/components/Admin/resources/competition/event-registration/EventRegistrationEdit.tsx @@ -0,0 +1,17 @@ +import {FC} from 'react' +import {AutocompleteInput, ReferenceInput, required, SimpleForm} from 'react-admin' + +import {MyEdit} from '@/components/Admin/custom/MyEdit' + +export const EventRegistrationEdit: FC = () => ( + + + + + + + + + + +) diff --git a/src/components/Admin/resources/competition/event-registration/EventRegistrationList.tsx b/src/components/Admin/resources/competition/event-registration/EventRegistrationList.tsx new file mode 100644 index 00000000..532fd351 --- /dev/null +++ b/src/components/Admin/resources/competition/event-registration/EventRegistrationList.tsx @@ -0,0 +1,11 @@ +import {FC} from 'react' +import {Datagrid, List, ReferenceField} from 'react-admin' + +export const EventRegistrationList: FC = () => ( + + + + + + +) diff --git a/src/components/Admin/resources/competition/event-registration/EventRegistrationShow.tsx b/src/components/Admin/resources/competition/event-registration/EventRegistrationShow.tsx new file mode 100644 index 00000000..c486e289 --- /dev/null +++ b/src/components/Admin/resources/competition/event-registration/EventRegistrationShow.tsx @@ -0,0 +1,13 @@ +import {FC} from 'react' +import {ReferenceField, SimpleShowLayout} from 'react-admin' + +import {MyShow} from '@/components/Admin/custom/MyShow' + +export const EventRegistrationShow: FC = () => ( + + + + + + +)