Skip to content

Commit

Permalink
Added location field to event (#442)
Browse files Browse the repository at this point in the history
  • Loading branch information
vgeffer authored Nov 22, 2024
1 parent d14901f commit 557cbe5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export const EventCreate: FC = () => {
<ReferenceInput source="competition" reference="competition/competition">
<SelectInput fullWidth validate={required()} />
</ReferenceInput>
<TextInput source="location" fullWidth />
<FormControlLabel
control={<Checkbox checked={includeRegLink} onChange={(e) => setIncludeRegLink(e.target.checked)} />}
label="Pridať registračný link"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export const EventEdit: FC = () => {
<ReferenceInput source="competition" reference="competition/competition">
<SelectInput fullWidth validate={required()} />
</ReferenceInput>
<TextInput source="location" fullWidth />
<FormControlLabel
control={<Checkbox checked={includeRegLink} onChange={(e) => setIncludeRegLink(e.target.checked)} />}
label="Upraviť registračný link"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const EventList: FC = () => (
<TextField source="school_year" />
<DateTimeField source="start" />
<DateTimeField source="end" />
<TextField source="location" />
<TextField source="additional_name" />
<TextField source="registration_link.url" />
<FunctionField<RaRecord>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export const EventShow: FC = () => (
<TextField source="school_year" />
<DateTimeField source="start" />
<DateTimeField source="end" />
<TextField source="location" />
<TextField source="additional_name" />

<TextField source="registration_link.url" />
Expand Down

0 comments on commit 557cbe5

Please sign in to comment.