Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added helper texts in RA #319

Merged
merged 1 commit into from
Jan 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const EventCreate: FC = () => {
}}
>
<SimpleForm>
<NumberInput source="year" fullWidth validate={required()} />
<NumberInput source="year" helperText="ročník súťaže, napr. 48" fullWidth validate={required()} />
<TextInput source="school_year" helperText="napr. 2023/2024" fullWidth validate={required()} />
<DateTimeInput source="start" fullWidth validate={required()} />
<DateTimeInput source="end" fullWidth validate={required()} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const EventEdit: FC = () => {
}}
>
<SimpleForm>
<NumberInput source="year" fullWidth validate={required()} />
<NumberInput source="year" helperText="ročník súťaže, napr. 48" fullWidth validate={required()} />
<TextInput source="school_year" helperText="napr. 2023/2024" fullWidth validate={required()} />
<DateTimeInput source="start" fullWidth validate={required()} />
<DateTimeInput source="end" fullWidth validate={required()} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ export const SemesterCreate: FC = () => (
<ReferenceInput source="competition" reference="competition/competition">
<SelectInput fullWidth validate={required()} />
</ReferenceInput>
<NumberInput source="year" fullWidth validate={required()} />
<NumberInput source="year" helperText="ročník súťaže, napr. 48" fullWidth validate={required()} />
<NumberInput source="season_code" fullWidth validate={required()} />
<TextInput source="school_year" fullWidth />
<TextInput source="school_year" helperText="napr. 2023/2024" fullWidth />
<DateTimeInput source="start" fullWidth validate={required()} />
<DateTimeInput source="end" fullWidth validate={required()} />
<TextInput source="additional_name" fullWidth />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ export const SemesterEdit: FC = () => (
<ReferenceInput source="competition" reference="competition/competition">
<SelectInput fullWidth validate={required()} />
</ReferenceInput>
<NumberInput source="year" fullWidth />
<NumberInput source="year" helperText="ročník súťaže, napr. 48" fullWidth />
<NumberInput source="season_code" fullWidth />
<TextInput source="school_year" fullWidth />
<TextInput source="school_year" helperText="napr. 2023/2024" fullWidth />
<DateTimeInput source="start" fullWidth />
<DateTimeInput source="end" fullWidth />
<TextInput source="additional_name" fullWidth />
Expand Down
Loading