diff --git a/src/components/DisplayPartnerStagiaires.js b/src/components/DisplayPartnerStagiaires.js index 87dd853..e20c74a 100644 --- a/src/components/DisplayPartnerStagiaires.js +++ b/src/components/DisplayPartnerStagiaires.js @@ -1264,6 +1264,8 @@ const DisplayPartnerStagiaires = (props) => { alert(" Impossible d'importer les stagiaires "); }); } + + async function submenu_detail_stagaire() { setsubmenu("detail_session"); @@ -1572,7 +1574,7 @@ const DisplayPartnerStagiaires = (props) => { else { setGetAttendee_api("false"); setGetAttendee_message(res.data.message); - alert( res.data.message); + alert(res.data.message); } }).catch((error) => { @@ -1609,8 +1611,6 @@ const DisplayPartnerStagiaires = (props) => { setselectedattendeeemail(email); var prenom = cellValues.row.prenom; GetAttendee_Data(email, selected_code_session); - - getStagiaireImages(selected_internal_url, selected_code_session, email,); } @@ -1985,97 +1985,18 @@ const DisplayPartnerStagiaires = (props) => {

Vos stagiaires

-
Utilisez les filtres !
-
-
- { - setp_filtre1(e.target.value); - - }} - > - Email   - Nom   - Code Session    - Titre Formation   - - - -
- - - -
- {p_filtre1 && - { setp_filtre1_value(e.target.value); }} - InputProps={{ - endAdornment: ( - - { - setp_filtre1_value(""); - }} /> - - ), - }} - - /> - - } -
- {p_filtre1 &&
- - -   { - setp_filtre2("1"); - setp_filtre2_value(""); - }} /> - -
} - {p_filtre1 &&
- - -   { - setp_filtre1(); - setp_filtre1_value(); - }} - /> - -
} - - -
- - {p_filtre2 && +
+
Utilisez les filtres !
-
+
{ - setp_filtre2(e.target.value); + setp_filtre1(e.target.value); }} > @@ -2087,226 +2008,306 @@ const DisplayPartnerStagiaires = (props) => {
-
- {String(p_filtre2).length > 2 && + + + +
+ {p_filtre1 && setp_filtre2_value(e.target.value)} + value={p_filtre1_value} + onChange={(e) => { setp_filtre1_value(e.target.value); }} InputProps={{ endAdornment: ( { - setp_filtre2_value(""); + setp_filtre1_value(""); }} /> ), }} - />} -
- - {String(p_filtre2).length > 2 &&
- - -   { - setp_filtre3("1"); - setp_filtre3_value(""); - }} /> - -
} - {String(p_filtre2).length > 2 &&
- - -   { - setp_filtre2(); - setp_filtre2_value(); - }} - /> - -
} - -
- } - - - {p_filtre3 && -
-
- { - setp_filtre3(e.target.value) - }} - > - Email   - Nom   - Code Session    - Titre Formation   - - - + }
-
- {String(p_filtre3).length > 2 && - setp_filtre3_value(e.target.value)} - InputProps={{ - endAdornment: ( - - { - setp_filtre3_value(""); - }} /> - - ), - }} - - />} -
- - {String(p_filtre2).length > 2 &&
- - -   { - setp_filtre4("1"); - setp_filtre4_value(""); - }} - /> - -
} - - {String(p_filtre3).length > 2 &&
- - -   { - setp_filtre3(); - setp_filtre3_value(); + {p_filtre1 && } -
- } - - {p_filtre4 && -
- - } -
- -
- -
- -
-
+ {p_filtre2 && +
+
+ { + setp_filtre2(e.target.value); + + }} + > + Email   + Nom   + Code Session    + Titre Formation   + + + +
+
+ {String(p_filtre2).length > 2 && + setp_filtre2_value(e.target.value)} + InputProps={{ + endAdornment: ( + + { + setp_filtre2_value(""); + }} /> + + ), + }} + + />} +
+ + {String(p_filtre2).length > 2 && } + + {String(p_filtre2).length > 2 && } + +
+ } + + + {p_filtre3 && +
+
+ { + setp_filtre3(e.target.value) + }} + > + Email   + Nom   + Code Session    + Titre Formation   + + + +
+
+ {String(p_filtre3).length > 2 && + setp_filtre3_value(e.target.value)} + InputProps={{ + endAdornment: ( + + { + setp_filtre3_value(""); + }} /> + + ), + }} + + />} +
+ + {String(p_filtre2).length > 2 && } + + {String(p_filtre3).length > 2 && } +
+ } + + {p_filtre4 && +
+
+ { + setp_filtre4(e.target.value) + }} + > + Email   + Nom   + Code Session    + Titre Formation   + + + +
+
+ {String(p_filtre4).length > 2 && + setp_filtre2_value(e.target.value)} + InputProps={{ + endAdornment: ( + + { + setp_filtre4_value(""); + }} /> + + ), + }} + + />} +
+ + + + {String(p_filtre2).length > 2 && } + +
+ } +
+ +
+ +
+ +
+ + +
+ +
+ +
-
- -
@@ -2548,7 +2549,7 @@ const DisplayPartnerStagiaires = (props) => { {p_one_formation && Getall_TrainingSession_result && Getall_TrainingSession_result.filter((session_ch) => JSON.parse(session_ch).class_internal_url === p_one_formation).map((mysession) => ( + style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%", "fontSize": "12px" }}> {JSON.parse(mysession).code_session}   @@ -2556,7 +2557,7 @@ const DisplayPartnerStagiaires = (props) => { {!p_one_formation && Getall_TrainingSession_result && Getall_TrainingSession_result.map((mysession) => ( + style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%", "fontSize": "12px" }}> {JSON.parse(mysession).code_session}   @@ -2703,7 +2704,7 @@ const DisplayPartnerStagiaires = (props) => { {Get_List_Partner_Clients_result && Get_List_Partner_Clients_result.map((myclient) => ( + style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%", "fontSize": "12px" }}> {JSON.parse(myclient).nom}   @@ -2851,7 +2852,7 @@ const DisplayPartnerStagiaires = (props) => { {Getall_TrainingSession_result && Getall_TrainingSession_result.map((mysession) => ( + style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%", "fontSize": "12px" }}> {JSON.parse(mysession).code_session}   @@ -2885,7 +2886,7 @@ const DisplayPartnerStagiaires = (props) => { {Get_List_Partner_Clients_result && Get_List_Partner_Clients_result.map((myclient) => ( + style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%", "fontSize": "12px" }}> {JSON.parse(myclient).nom}