Skip to content

Commit

Permalink
Added helper texts in RA (#319)
Browse files Browse the repository at this point in the history
  • Loading branch information
Smilinko authored Jan 2, 2024
1 parent 13c9979 commit 90fec87
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
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

0 comments on commit 90fec87

Please sign in to comment.