From 3c0806e26c116dbccd808bd8c8b170c5c4d9bc5b Mon Sep 17 00:00:00 2001 From: N3WT DE COMPET Date: Sun, 11 May 2025 18:31:56 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20Ajout=20d'une=20colonne=20dans=20le=20t?= =?UTF-8?q?ableau=20des=20pi=C3=A8ces=20jointes=20indiquant=20aux=20parent?= =?UTF-8?q?s=20les=20fichiers=20obligatoires?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/Inscription/FilesToUpload.js | 18 ++++++++++++++++++ .../Inscription/InscriptionFormShared.js | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/Front-End/src/components/Inscription/FilesToUpload.js b/Front-End/src/components/Inscription/FilesToUpload.js index 6d49479..2f7f936 100644 --- a/Front-End/src/components/Inscription/FilesToUpload.js +++ b/Front-End/src/components/Inscription/FilesToUpload.js @@ -79,6 +79,24 @@ export default function FilesToUpload({ name: 'Description du fichier', transform: (row) => row.master_description, }, + { + name: 'Priorité', + transform: (row) => ( + row.is_required ? ( + + + Requis + + + ) : ( + + + Optionnel + + + ) + ), + }, { name: 'Statut', transform: (row) => { diff --git a/Front-End/src/components/Inscription/InscriptionFormShared.js b/Front-End/src/components/Inscription/InscriptionFormShared.js index 9d4e4bc..bf2ef12 100644 --- a/Front-End/src/components/Inscription/InscriptionFormShared.js +++ b/Front-End/src/components/Inscription/InscriptionFormShared.js @@ -73,7 +73,7 @@ export default function InscriptionFormShared({ const [uploadedFiles, setUploadedFiles] = useState([]); const [schoolFileTemplates, setSchoolFileTemplates] = useState([]); const [parentFileTemplates, setParentFileTemplates] = useState([]); - const [currentPage, setCurrentPage] = useState(6); + const [currentPage, setCurrentPage] = useState(1); const [isPage1Valid, setIsPage1Valid] = useState(false); const [isPage2Valid, setIsPage2Valid] = useState(false);