Skip to content

Commit

Permalink
feat(admin): added prerequisites from france competence to certificat…
Browse files Browse the repository at this point in the history
…ion prerequisite update page
  • Loading branch information
agarbe committed Dec 12, 2024
1 parent 88bc3a1 commit cb94473
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
} from "./(components)/prerequisites-form/PrerequisitesForm";
import { successToast, graphqlErrorToast } from "@/components/toast/toast";
import { useRouter } from "next/navigation";
import { GrayCard } from "@/components/card/gray-card/GrayCard";

type CertificationForPage = Exclude<
ReturnType<typeof useUpdatePrerequisitesPage>["certification"],
Expand Down Expand Up @@ -83,6 +84,19 @@ const PageContent = ({
depuis France compétences et, si nécessaire, procédez à des corrections
(ordre des prérequis, fautes de frappe...).
</p>
<GrayCard as="div" className="mb-8">
<h2>
Informations France compétences liées au RNCP {certification.codeRncp}
</h2>

<dl>
<dd>Prérequis à la validation de la certification</dd>
<dt className="font-medium">
{certification.fcPrerequisites ||
"Aucun prérequis renseigné pour cette certification."}
</dt>
</dl>
</GrayCard>
<PrerequisitesForm
onSubmit={onSubmit}
defaultValues={{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const getCertificationQuery = graphql(`
id
codeRncp
label
fcPrerequisites
prerequisites {
id
label
Expand Down

0 comments on commit cb94473

Please sign in to comment.