Skip to content

Commit

Permalink
SemesterAdministration layout changes
Browse files Browse the repository at this point in the history
  • Loading branch information
michalmasrna1 committed Nov 24, 2024
1 parent 99deb9a commit a32ff85
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/components/SemesterAdministration/SemesterAdministration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,24 +130,26 @@ export const SemesterAdministration: FC = () => {

return (
<>
<Typography variant="h3">Administrácia semestra pre opravovateľov.</Typography>
<Stack mt={3} pl={2} alignItems="start">
<Stack alignItems="start" direction="row" spacing={2}>
<Typography variant="h2">Semester</Typography>
<Button variant="button2" onClick={() => freezeSemester(semester)}>
Uzavrieť semester
</Button>
{semesterFreezeError && <Typography variant="body1">{semesterFreezeError}</Typography>}
</Stack>
{semester.series_set.map((series) => (
<Stack key={series.id} gap={1} mt={5}>
<Typography variant="h2">{series.order}. séria</Typography>
<Stack pl={2} alignItems="start">
<Stack alignItems="start" direction="row" spacing={2}>
<Typography variant="h3">{series.order}. séria</Typography>
<Button variant="button2" onClick={() => freezeSeries(series)}>
Uzavrieť sériu
</Button>
{seriesFreezeError && <Typography variant="body1">{seriesFreezeError}</Typography>}
</Stack>
<Stack direction="row" justifyContent="space-between" alignItems="center">
<Typography variant="h3">Opravovanie úloh:</Typography>
<Typography variant="body1" component="div">
<b>Opravovanie úloh:</b>
</Typography>
<Typography variant="body1" component="div">
<b>Termín série:</b> {formatDateTime(series.deadline)}
</Typography>
Expand Down

0 comments on commit a32ff85

Please sign in to comment.