diff --git a/frontend/app/[locale]/components/ProjectDetailsPage.tsx b/frontend/app/[locale]/components/ProjectDetailsPage.tsx index 32dbb595..d2374f8d 100644 --- a/frontend/app/[locale]/components/ProjectDetailsPage.tsx +++ b/frontend/app/[locale]/components/ProjectDetailsPage.tsx @@ -1,6 +1,6 @@ 'use client' import React, { useEffect, useState } from "react"; -import {checkGroup, getGroup, getProject, fetchUserData, Project, UserData} from "@lib/api"; +import {checkGroup, getGroup, getProject, getUserData, Project, UserData} from "@lib/api"; import { useTranslation } from "react-i18next"; import Box from "@mui/material/Box"; import Typography from "@mui/material/Typography"; @@ -154,22 +154,37 @@ const ProjectDetailsPage: React.FC = ({ /> ))) : ( <> - {user?.role !== 3 && ( - - )} + {user?.role !== 3 && ( + <> + + + + )} @@ -121,4 +121,4 @@ const ProjectDetailsPage: React.FC = ({ locale, submiss ); }; -export default ProjectDetailsPage; +export default SubmissionDetailsPage; diff --git a/frontend/app/[locale]/project/[project_id]/submissions/page.tsx b/frontend/app/[locale]/project/[project_id]/submissions/page.tsx new file mode 100644 index 00000000..0d1c8694 --- /dev/null +++ b/frontend/app/[locale]/project/[project_id]/submissions/page.tsx @@ -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 ( + + + + + + {t('all_submissions')} + + + + + ); +} diff --git a/frontend/locales/en/common.json b/frontend/locales/en/common.json index 35a765ca..9327bea9 100644 --- a/frontend/locales/en/common.json +++ b/frontend/locales/en/common.json @@ -142,6 +142,7 @@ "edit_user_details": "Edit user details", "status_button_tooltip": "Required, optional or forbidden file", "no_deadline": "No deadline", + "all_submissions": "All submissions", "students": "Students", "teachers": "Teachers", "courses_archive": "Courses archive", diff --git a/frontend/locales/nl/common.json b/frontend/locales/nl/common.json index 49ddcfb1..c5aad752 100644 --- a/frontend/locales/nl/common.json +++ b/frontend/locales/nl/common.json @@ -145,6 +145,7 @@ "edit_user_details": "Gebruiker bewerken", "status_button_tooltip": "Verplicht, optioneel of verboden bestand", "no_deadline": "Geen deadline", + "all_submissions": "Alle indieningen", "students": "Studenten", "teachers": "Docenten", "courses_archive": "Gearchiveerde cursussen",