Fix entries

This commit is contained in:
Frederik Beimgraben 2025-09-01 16:02:45 +02:00
parent ebc7e2a8ee
commit 9a21784c72
2 changed files with 25 additions and 17 deletions

View File

@ -75,7 +75,7 @@ const HomePage: React.FC = () => {
// Local state // Local state
const [mode, setMode] = useState<"upload" | "form" | "access" | "admin">( const [mode, setMode] = useState<"upload" | "form" | "access" | "admin">(
"upload", "form",
); );
const [variant, setVariant] = useState<Variant>("VSM"); const [variant, setVariant] = useState<Variant>("VSM");
const [uploadedFile, setUploadedFile] = useState<File | null>(null); const [uploadedFile, setUploadedFile] = useState<File | null>(null);
@ -373,7 +373,15 @@ const HomePage: React.FC = () => {
<Box sx={{ mb: 3 }}> <Box sx={{ mb: 3 }}>
<Stepper <Stepper
activeStep={mode === "upload" ? 0 : mode === "form" ? 1 : 2} activeStep={
mode === "upload" && uploadedFile
? 1
: mode === "upload"
? 0
: mode === "form"
? 1
: 2
}
alternativeLabel alternativeLabel
> >
{steps.map((label) => ( {steps.map((label) => (
@ -409,14 +417,6 @@ const HomePage: React.FC = () => {
{/* Mode Tabs */} {/* Mode Tabs */}
<Box sx={{ mb: 3 }}> <Box sx={{ mb: 3 }}>
<Button
variant={mode === "upload" ? "contained" : "outlined"}
onClick={() => setMode("upload")}
startIcon={<FileUpload />}
sx={{ mr: 1, mb: 1 }}
>
PDF hochladen
</Button>
<Button <Button
variant={mode === "form" ? "contained" : "outlined"} variant={mode === "form" ? "contained" : "outlined"}
onClick={() => setMode("form")} onClick={() => setMode("form")}
@ -425,6 +425,14 @@ const HomePage: React.FC = () => {
> >
Formular ausfüllen Formular ausfüllen
</Button> </Button>
<Button
variant={mode === "upload" ? "contained" : "outlined"}
onClick={() => setMode("upload")}
startIcon={<FileUpload />}
sx={{ mr: 1, mb: 1 }}
>
PDF hochladen
</Button>
</Box> </Box>
{/* Upload Mode */} {/* Upload Mode */}

View File

@ -524,7 +524,8 @@ const ViewApplicationPage: React.FC = () => {
<CheckBoxOutlineBlank sx={{ mr: 1 }} /> <CheckBoxOutlineBlank sx={{ mr: 1 }} />
)} )}
<Typography variant="body1"> <Typography variant="body1">
Es handelt sich um Stellenfinanzierungen Die Maßnahme beinhaltet keine zeitlich unbefristeten
Stellenfinanzierungen
</Typography> </Typography>
</Box> </Box>
<Box sx={{ display: "flex", alignItems: "center", mb: 1 }}> <Box sx={{ display: "flex", alignItems: "center", mb: 1 }}>
@ -534,8 +535,7 @@ const ViewApplicationPage: React.FC = () => {
<CheckBoxOutlineBlank sx={{ mr: 1 }} /> <CheckBoxOutlineBlank sx={{ mr: 1 }} />
)} )}
<Typography variant="body1"> <Typography variant="body1">
Die Studierenden werden an der Planung und Durchführung Die Maßnahme kommt den Studierenden zugute (vgl. VWV)
der Maßnahme beteiligt
</Typography> </Typography>
</Box> </Box>
<Box sx={{ display: "flex", alignItems: "center", mb: 1 }}> <Box sx={{ display: "flex", alignItems: "center", mb: 1 }}>
@ -545,7 +545,8 @@ const ViewApplicationPage: React.FC = () => {
<CheckBoxOutlineBlank sx={{ mr: 1 }} /> <CheckBoxOutlineBlank sx={{ mr: 1 }} />
)} )}
<Typography variant="body1"> <Typography variant="body1">
Es werden keine Einzelpersonen von der Maßnahme gefördert Es findet keine individuelle Förderung von Studierenden
statt
</Typography> </Typography>
</Box> </Box>
{formData.qsmFlags.exkursionGenehmigt !== undefined && ( {formData.qsmFlags.exkursionGenehmigt !== undefined && (
@ -556,8 +557,7 @@ const ViewApplicationPage: React.FC = () => {
<CheckBoxOutlineBlank sx={{ mr: 1 }} /> <CheckBoxOutlineBlank sx={{ mr: 1 }} />
)} )}
<Typography variant="body1"> <Typography variant="body1">
Die beantragte Exkursion wurde von den zuständigen Die Exkursion wurde von der Fakultät genehmigt
Stellen genehmigt
</Typography> </Typography>
</Box> </Box>
)} )}
@ -569,7 +569,7 @@ const ViewApplicationPage: React.FC = () => {
<CheckBoxOutlineBlank sx={{ mr: 1 }} /> <CheckBoxOutlineBlank sx={{ mr: 1 }} />
)} )}
<Typography variant="body1"> <Typography variant="body1">
Die Exkursion wird bereits aus anderen Mitteln Die Exkursion wird maßgeblich von der Fakultät
bezuschusst bezuschusst
</Typography> </Typography>
</Box> </Box>