-
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.
Merge branch 'develop' of github.com:SELab-2/UGent-1 into develop
- Loading branch information
Showing
6 changed files
with
104 additions
and
31 deletions.
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
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
50 changes: 50 additions & 0 deletions
50
frontend/app/[locale]/project/[project_id]/submissions/page.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,50 @@ | ||
import initTranslations from "@app/i18n"; | ||
import TranslationsProvider from "@app/[locale]/components/TranslationsProvider"; | ||
import NavBar from "@app/[locale]/components/NavBar"; | ||
import ArrowBackIcon from "@mui/icons-material/ArrowBack"; | ||
import {Box, Button} from "@mui/material"; | ||
import React from "react"; | ||
import ProjectSubmissionsList from "@app/[locale]/components/ProjectSubmissionsList"; | ||
import Typography from "@mui/material/Typography"; | ||
|
||
const i18nNamespaces = ['common'] | ||
|
||
export default async function SubmissionsPage({params}: { params: { locale: any, project_id: number } }) { | ||
const {locale, project_id: projectId} = params; | ||
const {t, resources} = await initTranslations(locale, i18nNamespaces); | ||
|
||
return ( | ||
<TranslationsProvider | ||
resources={resources} | ||
locale={locale} | ||
namespaces={i18nNamespaces} | ||
> | ||
<NavBar/> | ||
<Box width={'100%'} style={{padding: 20}}> | ||
<Button | ||
variant="outlined" | ||
color="primary" | ||
startIcon={<ArrowBackIcon/>} | ||
href={`/${locale}/project/${projectId}`} | ||
> | ||
{t("return_project")} | ||
</Button> | ||
<Typography | ||
variant="h3" | ||
sx={{ | ||
fontWeight: 'medium', | ||
marginTop: 2, | ||
marginBottom: 2 | ||
}} | ||
> | ||
{t('all_submissions')} | ||
</Typography> | ||
<ProjectSubmissionsList | ||
project_id={projectId} | ||
page_size={10} | ||
search={t("submission_search")} | ||
/> | ||
</Box> | ||
</TranslationsProvider> | ||
); | ||
} |
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
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
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