Skip to content

Commit

Permalink
Merge pull request #30 from mission-apprentissage/add-12-version-and-…
Browse files Browse the repository at this point in the history
…update-smic

fix: ajout de la nouvelle version du CERFA
  • Loading branch information
Pomarom authored Oct 28, 2024
2 parents d9e43a1 + 8229bbc commit 0bf10fe
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion server/src/modules/actions/cerfa.actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { getStaticFilePath } from "../../common/utils/getStaticFilePath";
import { drawCerfaErrors } from "../server/utils/cerfaErrorsUtils";
import { PdfField, pdfFields } from "../server/utils/cerfaUtils";

const PATH_EMPTY_CERFA_PDF = getStaticFilePath("./cerfa/cerfa_10103-11_modif.pdf");
const PATH_EMPTY_CERFA_PDF = getStaticFilePath("./cerfa/cerfa_10103-12_modif.pdf");
const PATH_CERFA_GUIDE_PDF = getStaticFilePath("./cerfa/guide_cerfa_apprentissage.pdf");

export const getValueForPdf = (formValue: string | undefined, field: PdfField): string | boolean => {
Expand Down
Binary file not shown.
6 changes: 3 additions & 3 deletions ui/app/(application)/cerfa/components/CerfaForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ const CerfaForm: FC = () => {
},
});

let filename = "cerfa_10103*11.pdf";
let filename = "cerfa_10103*12.pdf";

if (data.headers.get("Content-Type") === "application/zip") {
filename = "cerfa_10103*11.zip";
filename = "cerfa_10103*12.zip";
}

if (values.apprenti.nom && values.apprenti.prenom) {
Expand Down Expand Up @@ -151,7 +151,7 @@ const CerfaForm: FC = () => {
</Grid>
<Grid item xs={6}>
<Typography variant="h1" mb={2}>
Cerfa 10103*11 (FA13)
Cerfa 10103*12 (FA13)
</Typography>
<Box mx={1}>
<InputController name="contrat.modeContractuel" />
Expand Down
2 changes: 1 addition & 1 deletion ui/app/(marketing)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const metadata: Metadata = {
},
title: "CERFA contrat d’apprentissage",
description:
"Générez votre CERFA contrat d’apprentissage (10103*11): formulaire de saisie guidée en accès libre sans connexion, simple, rapide et sans erreur.",
"Générez votre CERFA contrat d’apprentissage (10103*12): formulaire de saisie guidée en accès libre sans connexion, simple, rapide et sans erreur.",
keywords: ["apprentissage", "contrat", "cerfa"],
};

Expand Down

0 comments on commit 0bf10fe

Please sign in to comment.