Fix entries
This commit is contained in:
parent
ebc7e2a8ee
commit
9a21784c72
@ -75,7 +75,7 @@ const HomePage: React.FC = () => {
|
||||
|
||||
// Local state
|
||||
const [mode, setMode] = useState<"upload" | "form" | "access" | "admin">(
|
||||
"upload",
|
||||
"form",
|
||||
);
|
||||
const [variant, setVariant] = useState<Variant>("VSM");
|
||||
const [uploadedFile, setUploadedFile] = useState<File | null>(null);
|
||||
@ -373,7 +373,15 @@ const HomePage: React.FC = () => {
|
||||
|
||||
<Box sx={{ mb: 3 }}>
|
||||
<Stepper
|
||||
activeStep={mode === "upload" ? 0 : mode === "form" ? 1 : 2}
|
||||
activeStep={
|
||||
mode === "upload" && uploadedFile
|
||||
? 1
|
||||
: mode === "upload"
|
||||
? 0
|
||||
: mode === "form"
|
||||
? 1
|
||||
: 2
|
||||
}
|
||||
alternativeLabel
|
||||
>
|
||||
{steps.map((label) => (
|
||||
@ -409,14 +417,6 @@ const HomePage: React.FC = () => {
|
||||
|
||||
{/* Mode Tabs */}
|
||||
<Box sx={{ mb: 3 }}>
|
||||
<Button
|
||||
variant={mode === "upload" ? "contained" : "outlined"}
|
||||
onClick={() => setMode("upload")}
|
||||
startIcon={<FileUpload />}
|
||||
sx={{ mr: 1, mb: 1 }}
|
||||
>
|
||||
PDF hochladen
|
||||
</Button>
|
||||
<Button
|
||||
variant={mode === "form" ? "contained" : "outlined"}
|
||||
onClick={() => setMode("form")}
|
||||
@ -425,6 +425,14 @@ const HomePage: React.FC = () => {
|
||||
>
|
||||
Formular ausfüllen
|
||||
</Button>
|
||||
<Button
|
||||
variant={mode === "upload" ? "contained" : "outlined"}
|
||||
onClick={() => setMode("upload")}
|
||||
startIcon={<FileUpload />}
|
||||
sx={{ mr: 1, mb: 1 }}
|
||||
>
|
||||
PDF hochladen
|
||||
</Button>
|
||||
</Box>
|
||||
|
||||
{/* Upload Mode */}
|
||||
|
||||
@ -524,7 +524,8 @@ const ViewApplicationPage: React.FC = () => {
|
||||
<CheckBoxOutlineBlank sx={{ mr: 1 }} />
|
||||
)}
|
||||
<Typography variant="body1">
|
||||
Es handelt sich um Stellenfinanzierungen
|
||||
Die Maßnahme beinhaltet keine zeitlich unbefristeten
|
||||
Stellenfinanzierungen
|
||||
</Typography>
|
||||
</Box>
|
||||
<Box sx={{ display: "flex", alignItems: "center", mb: 1 }}>
|
||||
@ -534,8 +535,7 @@ const ViewApplicationPage: React.FC = () => {
|
||||
<CheckBoxOutlineBlank sx={{ mr: 1 }} />
|
||||
)}
|
||||
<Typography variant="body1">
|
||||
Die Studierenden werden an der Planung und Durchführung
|
||||
der Maßnahme beteiligt
|
||||
Die Maßnahme kommt den Studierenden zugute (vgl. VWV)
|
||||
</Typography>
|
||||
</Box>
|
||||
<Box sx={{ display: "flex", alignItems: "center", mb: 1 }}>
|
||||
@ -545,7 +545,8 @@ const ViewApplicationPage: React.FC = () => {
|
||||
<CheckBoxOutlineBlank sx={{ mr: 1 }} />
|
||||
)}
|
||||
<Typography variant="body1">
|
||||
Es werden keine Einzelpersonen von der Maßnahme gefördert
|
||||
Es findet keine individuelle Förderung von Studierenden
|
||||
statt
|
||||
</Typography>
|
||||
</Box>
|
||||
{formData.qsmFlags.exkursionGenehmigt !== undefined && (
|
||||
@ -556,8 +557,7 @@ const ViewApplicationPage: React.FC = () => {
|
||||
<CheckBoxOutlineBlank sx={{ mr: 1 }} />
|
||||
)}
|
||||
<Typography variant="body1">
|
||||
Die beantragte Exkursion wurde von den zuständigen
|
||||
Stellen genehmigt
|
||||
Die Exkursion wurde von der Fakultät genehmigt
|
||||
</Typography>
|
||||
</Box>
|
||||
)}
|
||||
@ -569,7 +569,7 @@ const ViewApplicationPage: React.FC = () => {
|
||||
<CheckBoxOutlineBlank sx={{ mr: 1 }} />
|
||||
)}
|
||||
<Typography variant="body1">
|
||||
Die Exkursion wird bereits aus anderen Mitteln
|
||||
Die Exkursion wird maßgeblich von der Fakultät
|
||||
bezuschusst
|
||||
</Typography>
|
||||
</Box>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user