-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2dd2a32
commit 88b0604
Showing
5 changed files
with
72 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/components/Admin/resources/competition/event-registration/EventRegistrationCreate.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 = () => ( | ||
<MyCreate> | ||
<SimpleForm> | ||
<ReferenceInput source="school" reference="personal/schools"> | ||
<AutocompleteInput optionText="verbose_name" optionValue="code" fullWidth validate={required()} /> | ||
</ReferenceInput> | ||
<ReferenceInput source="profile" reference="personal/profiles"> | ||
<AutocompleteInput optionText="verbose_name" fullWidth validate={required()} /> | ||
</ReferenceInput> | ||
</SimpleForm> | ||
</MyCreate> | ||
) |
17 changes: 17 additions & 0 deletions
17
src/components/Admin/resources/competition/event-registration/EventRegistrationEdit.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 = () => ( | ||
<MyEdit> | ||
<SimpleForm> | ||
<ReferenceInput source="school" reference="personal/schools"> | ||
<AutocompleteInput optionText="verbose_name" optionValue="code" fullWidth validate={required()} /> | ||
</ReferenceInput> | ||
<ReferenceInput source="profile" reference="personal/profiles"> | ||
<AutocompleteInput optionText="verbose_name" fullWidth validate={required()} /> | ||
</ReferenceInput> | ||
</SimpleForm> | ||
</MyEdit> | ||
) |
11 changes: 11 additions & 0 deletions
11
src/components/Admin/resources/competition/event-registration/EventRegistrationList.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import {FC} from 'react' | ||
import {Datagrid, List, ReferenceField} from 'react-admin' | ||
|
||
export const EventRegistrationList: FC = () => ( | ||
<List> | ||
<Datagrid rowClick="show"> | ||
<ReferenceField source="school" reference="personal/schools" link={false} /> | ||
<ReferenceField source="profile" reference="personal/profiles" link={false} /> | ||
</Datagrid> | ||
</List> | ||
) |
13 changes: 13 additions & 0 deletions
13
src/components/Admin/resources/competition/event-registration/EventRegistrationShow.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 = () => ( | ||
<MyShow> | ||
<SimpleShowLayout> | ||
<ReferenceField source="school" reference="personal/schools" link="show" /> | ||
<ReferenceField source="profile" reference="personal/profiles" link="show" /> | ||
</SimpleShowLayout> | ||
</MyShow> | ||
) |