diff --git a/src/App.js b/src/App.js index 75f057c..df3c15b 100644 --- a/src/App.js +++ b/src/App.js @@ -168,6 +168,8 @@ function App() { const Display_Partner_Catalog_DetailClass_new_v2 = lazy(() => import("./pages/display_partner_catalog_detailclass_new_v2")); + const Display_Partner_Catalog_DetailClass_new_vp = lazy(() => import("./pages/display_partner_catalog_detailclass_new_vp")); + const [screenSizeh, getDimension] = useState({ dynamicWidth: window.innerHeight @@ -287,6 +289,10 @@ function App() { + + + + {/* */} @@ -406,7 +412,7 @@ function App() { - + diff --git a/src/components/AddClassManual.js b/src/components/AddClassManual.js index 77724ec..fbc1b95 100644 --- a/src/components/AddClassManual.js +++ b/src/components/AddClassManual.js @@ -116,6 +116,8 @@ const AddClassManual = (props) => { const [mytrainingdirectinscription, setmytrainingdirectinscription] = useState(""); + const [formation_type, setformation_type] = useState("formation"); + const [mycpf, setmycpf] = useState("0"); const [mycpf_label, setmycpf_label] = useState("Non"); @@ -2382,6 +2384,15 @@ const AddClassManual = (props) => { setmytrainingdirectinscription(""); } + + if (mylocaltraining.formation_type) { + setformation_type(mylocaltraining.formation_type); + } else { + setformation_type(""); + } + + + if (mylocaltraining.recyclage_alert) { setp_detail_recyclage_alert(mylocaltraining.recyclage_alert); } else { @@ -2821,6 +2832,8 @@ const AddClassManual = (props) => { formData.append('inscription_direct', mytrainingdirectinscription); + formData.append('formation_type', formation_type); + formData.append('note', mynote); formData.append('published', mypublier); @@ -3768,6 +3781,24 @@ const AddClassManual = (props) => { ]; + const New_Option_formation_type = [ + { + value: 'formation', + label: 'Formation', + }, + { + value: 'atelier', + label: 'Atelier', + }, + { + value: '', + label: '', + }, + + ]; + + + const New_Option_is_Ftion_Initiale = [ { "id": "1", "label": "Oui", "value": "1" }, { "id": "0", "label": "Non", "value": "0" }, @@ -9300,8 +9331,8 @@ const AddClassManual = (props) => { } - {props.class_is_ftion_initiale && props.class_is_ftion_initiale === "1" && - New_Getall_Parter_bloc_competence_result && New_Getall_Parter_bloc_competence_result.length > 0 && + {props.class_is_ftion_initiale && props.class_is_ftion_initiale === "1" && + New_Getall_Parter_bloc_competence_result && New_Getall_Parter_bloc_competence_result.length > 0 &&
{ {props.class_is_ftion_initiale && props.class_is_ftion_initiale === "1" && <>
  - +
@@ -9672,7 +9703,7 @@ const AddClassManual = (props) => { -
+ {is_ftion_initiale !== "1" &&
{inscription_direct && inscription_direct.length > 0 && { />} -
+
} + + {is_ftion_initiale !== "1" &&
+ {New_Option_formation_type && New_Option_formation_type.length > 0 && (data).value === String(formation_type))[0].label} + onChange={(event, value) => { + if (value && value.value) { + setformation_type(value.value); + setdatamodification("1"); + } else { + setformation_type(""); + setdatamodification("1"); + } + }} + + renderInput={(params) => + } + />} + + +
} + +
@@ -11704,9 +11764,9 @@ const AddClassManual = (props) => { id="competence_nom" name="competence_nom" fullWidth - sx={{ - backgroundColor: "#FFF", - }} + sx={{ + backgroundColor: "#FFF", + }} options={New_Getall_Employee_Statistic_Question_List_result} value={New_Getall_Employee_Statistic_Question_List_result.filter((data) => (data)._id === String(selected_statistic_question_id))[0].label} diff --git a/src/components/Apprenant.js b/src/components/Apprenant.js index a4aa89c..0c169a0 100644 --- a/src/components/Apprenant.js +++ b/src/components/Apprenant.js @@ -1935,6 +1935,12 @@ const Apprenant = (props) => { document.getElementsByName("field_detail_nom")[0].style.backgroundColor = "#f8f9fa"; } + + if (document.getElementsByName("detail_nom_jeune_fille") && document.getElementsByName("detail_nom_jeune_fille")[0]) { + document.getElementsByName("detail_nom_jeune_fille")[0].disabled = true; + document.getElementsByName("detail_nom_jeune_fille")[0].style.backgroundColor = "#f8f9fa"; + } + if (document.getElementsByName("field_detail_prenom") && document.getElementsByName("field_detail_prenom")[0]) { document.getElementsByName("field_detail_prenom")[0].disabled = true; document.getElementsByName("field_detail_prenom")[0].style.backgroundColor = "#f8f9fa"; @@ -2031,7 +2037,7 @@ const Apprenant = (props) => { const list_champs = ["field_detail_lieu_naissance", "field_detail_departement_naissance", "field_detail_pays_naissance", "field_type_pi", "field_num_pi", "field_type_mobilite", "field_nationalite", "field_droit_image", "field_rgpd", "field_sitation_famille", "field_num_ss", "field_matricule", "field_ine", - "field_handicape_amenagement"] + "field_handicape_amenagement", "detail_nom_jeune_fille"] for (let i = 0; i < list_champs.length; i++) { if (document.getElementsByName(String(list_champs[i])) && document.getElementsByName(String(list_champs[i]))[0]) { @@ -2082,6 +2088,12 @@ const Apprenant = (props) => { document.getElementsByName("field_detail_nom")[0].style.backgroundColor = "#FFFFFF"; } + + if (document.getElementsByName("detail_nom_jeune_fille") && document.getElementsByName("field_detail_nom")[0]) { + document.getElementsByName("detail_nom_jeune_fille")[0].disabled = false; + document.getElementsByName("detail_nom_jeune_fille")[0].style.backgroundColor = "#FFFFFF"; + } + if (document.getElementsByName("field_detail_prenom") && document.getElementsByName("field_detail_prenom")[0]) { document.getElementsByName("field_detail_prenom")[0].disabled = false; document.getElementsByName("field_detail_prenom")[0].style.backgroundColor = "#FFFFFF"; @@ -2119,7 +2131,7 @@ const Apprenant = (props) => { const list_champs = ["field_detail_lieu_naissance", "field_detail_departement_naissance", "field_detail_pays_naissance", "field_type_pi", "field_num_pi", "field_type_mobilite", "field_nationalite", "field_droit_image", "field_rgpd", "field_sitation_famille", "field_num_ss", "field_matricule", "field_ine", - "field_handicape_amenagement"] + "field_handicape_amenagement", "detail_nom_jeune_fille"] for (let i = 0; i < list_champs.length; i++) { if (document.getElementsByName(String(list_champs[i])) && document.getElementsByName(String(list_champs[i]))[0]) { @@ -2349,6 +2361,13 @@ const Apprenant = (props) => { form.append("telephone", ""); + if (p_detail_nom_fille) + form.append("nom_fille", p_detail_nom_fille); + else + form.append("nom_fille", ""); + + + if (p_detail_employeur) form.append("employeur", p_detail_employeur); else @@ -9781,15 +9800,15 @@ const Apprenant = (props) => { La taille de l'image ne doit pas dépasser 1 mega octet "> -
+
{String(userimgclassprofilchanged) === "1" && - + } - {String(isimgclassSelected_recid) && String(isimgclassSelected_recid).length > 3 && - + {String(isimgclassSelected_recid) && String(isimgclassSelected_recid).length > 3 && String(userimgclassprofilchanged) !== "1" && String(userimgclassprofil).length > 50 && + } {String(userimgclassprofilchanged) === "1" &&
/!\ Pensez à enregistrer la photo @@ -10074,7 +10093,7 @@ const Apprenant = (props) => {
- {p_detail_civilite !== "m" &&
Nom jeune fille
+ {p_detail_civilite !== "m" &&
Nom jeune fille
div { +.workshops__header>div { display: flex; align-items: center; gap: 10px; @@ -551,7 +551,7 @@ button { padding: 10px 14px; } -.workshop-row + .workshop-row { +.workshop-row+.workshop-row { border-top: 1px solid var(--soft-border); } @@ -632,6 +632,7 @@ button { } @media (max-width: 760px) { + .hero-section, .search-panel, .results-info, @@ -707,4 +708,97 @@ button { .details-btn { width: 100%; } -} + + + .atelier-filter-nav { + display: flex; + align-items: center; + gap: 10px; + padding: 8px; + width: fit-content; + max-width: 100%; + overflow-x: auto; + + background: #f2f6fb; + border: 1px solid #d8e3ea; + border-radius: 14px; + } + + .atelier-filter-button { + display: inline-flex; + align-items: center; + justify-content: center; + gap: 8px; + + min-height: 42px; + padding: 10px 16px; + + border: 1px solid transparent; + border-radius: 10px; + + background: transparent; + color: #526273; + + font-family: "DM Sans", Arial, sans-serif; + font-size: 14px; + font-weight: 600; + white-space: nowrap; + + cursor: pointer; + + transition: + background-color 0.2s ease, + color 0.2s ease, + border-color 0.2s ease, + box-shadow 0.2s ease, + transform 0.2s ease; + } + + .atelier-filter-button:hover { + background: #ffffff; + color: #104277; + border-color: #d8e3ea; + transform: translateY(-1px); + } + + .atelier-filter-button.active { + background: #104277; + color: #ffffff; + border-color: #104277; + + box-shadow: + 0 4px 12px rgba(16, 66, 119, 0.25), + 0 1px 3px rgba(16, 66, 119, 0.18); + } + + .atelier-filter-button.active:hover { + background: #0c3764; + color: #ffffff; + border-color: #0c3764; + } + + .atelier-filter-button:focus-visible { + outline: 3px solid rgba(16, 66, 119, 0.22); + outline-offset: 2px; + } + + .atelier-filter-button svg { + flex-shrink: 0; + } + + @media screen and (max-width: 700px) { + .atelier-filter-nav { + width: 100%; + padding: 6px; + gap: 6px; + } + + .atelier-filter-button { + min-width: max-content; + padding: 9px 12px; + font-size: 13px; + } + } + + +} \ No newline at end of file diff --git a/src/components/DisplayPartnerStagiaires.js b/src/components/DisplayPartnerStagiaires.js index 3eba1ae..005517a 100644 --- a/src/components/DisplayPartnerStagiaires.js +++ b/src/components/DisplayPartnerStagiaires.js @@ -12,7 +12,7 @@ import { DataGrid, GridToolbar, frFR } from '@mui/x-data-grid'; import "react-draft-wysiwyg/dist/react-draft-wysiwyg.css"; import 'react-tooltip/dist/react-tooltip.css' import { Tooltip } from 'react-tooltip' - +import { FcOrgUnit } from "react-icons/fc"; import excel_icone from "../mysy_img/excel_icone.png"; import { format } from 'date-fns'; import fileDownload from 'js-file-download' @@ -79,6 +79,8 @@ import * as XLSX from 'xlsx'; import Modules_Mes_Documents from "./Modules_Mes_Documents"; import Module_Alert_Confirmation from "./Module_Alert_Confirmation"; +import Module_Trombinoscope from "./Module_Trombinoscope"; + import { makeStyles } from "@material-ui/core/styles"; import Paper from '@material-ui/core/Paper'; import Draggable from 'react-draggable'; @@ -1327,6 +1329,11 @@ const DisplayPartnerStagiaires = (props) => { const [Getall_TrainingParticipant_result, setGetall_TrainingParticipant_result] = useState([]); function Getall_TrainingParticipant(event) { + + var bkp_trombi = display_trombinoscope; + setdisplay_trombinoscope(""); + + setloading_datagrid(true); setSelectionModel([]); @@ -1369,10 +1376,12 @@ const DisplayPartnerStagiaires = (props) => { const stored_cookie = getCookie('tokenmysypart'); form.append("token", stored_cookie); + + //console.log(" ### Getall_TrainingParticipant form = ", form) // var myurl = process.env.REACT_APP_API_URL + "myclass/api/Get_Statgaire_List_Partner_with_filter/"; - var myurl = process.env.REACT_APP_API_URL + "myclass/api/Get_Statgaire_List_Partner_with_filter_uptimized/"; + var myurl = process.env.REACT_APP_API_URL + "myclass/api/Get_Statgaire_List_Partner_with_filter_uptimized_With_Img/"; setLoading(true); @@ -1387,7 +1396,7 @@ const DisplayPartnerStagiaires = (props) => { setGetall_TrainingParticipant_result(res.data.message); setRows(res.data.message); - + setdisplay_trombinoscope(bkp_trombi); } else { setloading_datagrid(false); @@ -1468,12 +1477,13 @@ const DisplayPartnerStagiaires = (props) => { setloading_datagrid(true); var form = new FormData(); - + var bkp_trombi = display_trombinoscope; + setdisplay_trombinoscope(""); const stored_cookie = getCookie('tokenmysypart'); form.append("token", stored_cookie); - var myurl = process.env.REACT_APP_API_URL + "myclass/api/Get_Statgaire_List_Partner_with_filter/"; + var myurl = process.env.REACT_APP_API_URL + "myclass/api/Get_Statgaire_List_Partner_with_filter_uptimized_With_Img/"; setLoading(true); axios.post(myurl, form).then(res => { @@ -1485,6 +1495,8 @@ const DisplayPartnerStagiaires = (props) => { setGetall_TrainingParticipant_api("true"); setGetall_TrainingParticipant_result(res.data.message); setRows(res.data.message); + + setdisplay_trombinoscope(bkp_trombi); } else { setloading_datagrid(false); @@ -5922,14 +5934,14 @@ const DisplayPartnerStagiaires = (props) => { //myRef_head.current.scrollIntoView({ behavior: "smooth" }); - if (document.getElementById('myRef_head')) { - // myRef.current.scrollIntoView({ behavior: "smooth" }); - var divh = document.getElementById('myRef_head').offsetTop; - window.scrollTo({ - top: divh, - behavior: "smooth", - }); - } + /* if (document.getElementById('myRef_head')) { + // myRef.current.scrollIntoView({ behavior: "smooth" }); + var divh = document.getElementById('myRef_head').offsetTop; + window.scrollTo({ + top: divh, + behavior: "smooth", + }); + }*/ } else { @@ -10176,6 +10188,8 @@ const DisplayPartnerStagiaires = (props) => { } + const [display_trombinoscope, setdisplay_trombinoscope] = useState(""); + return (
{isLoading &&
@@ -12663,6 +12677,7 @@ const DisplayPartnerStagiaires = (props) => { value={New_Option_Filter.filter((data) => (data).value === String(p_filtre1))[0].label} options={New_Option_Filter} onChange={(event, value) => { + setp_filtre1_value(""); if (value && value.value) { setp_filtre1(value.value); } @@ -13309,13 +13324,57 @@ const DisplayPartnerStagiaires = (props) => {
+
+ + + + + {String(display_trombinoscope) !== "1" && } + + {String(display_trombinoscope) === "1" && } + +
+ +
-
+ {String(display_trombinoscope) !== "1" &&
- -
@@ -13457,6 +13518,9 @@ const DisplayPartnerStagiaires = (props) => { archive: JSON.parse(item).archive, is_ftion_initiale: JSON.parse(item).is_ftion_initiale, + + + } ))} @@ -14005,9 +14069,9 @@ const DisplayPartnerStagiaires = (props) => {
-
+
} -
+ {String(display_trombinoscope) !== "1" &&
{String(props.check_user_acces_right("stagiaire", "write")) === "1" &&
@@ -14039,8 +14103,16 @@ const DisplayPartnerStagiaires = (props) => { Télécharger un fichier modèle
} -
+
} +
 
+ + {String(display_trombinoscope) === "1" && + + } + + + {selected_id && String(selected_id).length > 0 &&
-
+

+ + {(String(inscritpion) === "2" || String(inscritpion) === "1") && +
+
+ +
+ +
+ + {String(inscritpion) === "2" &&
+ + + +
+ } + {String(inscritpion) === "1" &&
+ + +
+ + } + +
+ + +
+
+
} + + +
+
+ +
+ +
+ +
+ Description +
+ + +
+ {parse(String(DetailTraining["description"]))} +
+
+ + +
+
+
+ + +
+
+ +
+ + {GetCurrentClass_result && GetCurrentClass_result.length > 0 && +
+ +
+ Les sessions +
+ +
+
    + + + {GetCurrentClass_result && GetCurrentClass_result.slice(0, 5).map((formation) => ( +
  • + {(JSON.parse(formation).session_ondemande) && (JSON.parse(formation).session_ondemande) === "1" && } + + {(!(JSON.parse(formation).session_ondemande) || (JSON.parse(formation).session_ondemande) === "0") && } +
  • + + ))} + +
+
+ +
} + +
+
+
+ + + +
+
+ +
+
+ +
+ Objectif +
+ + {DetailTraining["objectif"] &&
+ {parse(String(DetailTraining["objectif"]))} +
+ } + +
+ + +
+
+
+ +
+
+ + +
+ +
+ Programme +
+ + {DetailTraining["programme"] &&
+ {parse(String(DetailTraining["programme"]))}sticky_div_hilight +
+ } +
+ +
+
+ +
+
+ + {DetailTraining["tab_ue_detail_data"] && DetailTraining["tab_ue_detail_data"].length > 0 && < div className="mob_info_page_title_desc_long_txt" > +
+ Modules +
+ + + {DetailTraining["tab_ue_detail_data"] &&
+ +
+ {DetailTraining["tab_ue_detail_data"] && DetailTraining["tab_ue_detail_data"].map((val) => ( +
+ + + } + aria-controls={val._id} + id={val._id} + > + + + {val.titre} + + + + +
{parse(String(val.description).replace(/(<([^>]+)>)/ig, ''))}
+ +
+
+
+ + +
+ ))} +
+ +
} + +
} +
+
+ +
+
+ {DetailTraining["pourqui"] &&
+ +
+ Pour Qui +
+ + {DetailTraining["pourqui"] &&
+ {parse(String(DetailTraining["pourqui"]))} +
+ } + +
} + + +
+
+ +
+
+ {DetailTraining["prerequis"] &&
+ +
+ Pré-requis +
+ + {DetailTraining["prerequis"] &&
+ {parse(String(DetailTraining["prerequis"]))} +
+ } + +
} + + +
+
+ + +
+ +
+
+   +
+
+ +
+
+
+ +
+ +
+ + {associatedtraining_message && associatedtraining_message.length > 0 && +
+ Cela pourrait aussi vous intéresser +
} + +
+ + {associatedtraining_message && String(associatedtraining_api) === "True" && + associatedtraining_message.slice(0, 3).map((formation) => ( + +
+ +
+ + {JSON.parse(formation).metier && String(JSON.parse(formation).metier).toLocaleLowerCase() === String("it") && + informatique} + + {JSON.parse(formation).metier && String(JSON.parse(formation).metier).toLocaleLowerCase() === String("graphisme") && + graphisme} + + {JSON.parse(formation).metier && String(JSON.parse(formation).metier).toLocaleLowerCase() === String("management") && + management} + + {JSON.parse(formation).metier && String(JSON.parse(formation).metier).toLocaleLowerCase() === String("digital") && + digital} + + {JSON.parse(formation).metier && String(JSON.parse(formation).metier).toLocaleLowerCase() === String("office") && + office} + + {JSON.parse(formation).metier && String(JSON.parse(formation).metier).toLocaleLowerCase() === String("rh") && + ressources humaines} + + {JSON.parse(formation).metier && String(JSON.parse(formation).metier).toLocaleLowerCase() === String("vente") && + vente} + + {JSON.parse(formation).metier && String(JSON.parse(formation).metier).toLocaleLowerCase() === String("sport") && + sport} + + {JSON.parse(formation).metier && String(JSON.parse(formation).metier).toLocaleLowerCase() === String("sante_nat") && + sante naturelle} + + + {JSON.parse(formation).metier && String(JSON.parse(formation).metier).toLocaleLowerCase() === String("dev_perso") && + developpement personnel} + + {!JSON.parse(formation).metier && autre personnel} + +
+ +
+
+ {JSON.parse(formation).cpf && (String(JSON.parse(formation).cpf)) === "1" && + "Éligible au CPF"} + + {!JSON.parse(formation).cpf || String(JSON.parse(formation).cpf) !== "1" && + "NON Éligible au CPF"} + +
+ +
+ + +
+ +
+ {JSON.parse(formation).note && String(JSON.parse(formation).note).length === 1 && + parseInt(String(JSON.parse(formation).note)) <= 5 && + } +
+ +
+ {parse(String(JSON.parse(formation).title))} +
+ + {JSON.parse(formation).price &&
+ {(String(JSON.parse(formation).price))} € + {parseFloat(String(JSON.parse(formation).partnaire_tva)) > 0 && <> HT } + {parseFloat(String(JSON.parse(formation).partnaire_tva)) <= 0 && <> TTC } + +
} + + +
+ +
+ +
{ + e.preventDefault(); + //test(props.formation.external_code); + window.open( + "/Display-Partner-Catalog-Detail-formation/" + JSON.parse(formation).internal_url, + '_self' + ); + + + }}> +
+ Voir les détails +
+ +
+ + +
+ +
+ ))} + +
+ +
+
+
+ +
+
+ +
+ + + + +
+ + +
+
+ + +
+ +
+
+
+ +
+ {ratingvalue && String(ratingvalue).length > 0 && + parseInt(String(ratingvalue)) <= 5 && + } +
+ +
+ {DetailTraining["title"]} +
+ +
+ +
+ {DetailTraining["cpf"] && String(DetailTraining["cpf"]) === "1" && + "Éligible au CPF"} + + {!DetailTraining["cpf"] || String(DetailTraining["cpf"]) !== "1" && + "NON Éligible au CPF"} +
+ +
+ +
+ + + +
+
+ +
+ + + + +
+
+
+ + {String(inscritpion) === "1" &&
+ +
+ + } + + {String(inscritpion) === "2" &&
+ + +
+ + } + + {(String(action).toLocaleLowerCase() === "inscription" || String(action).toLocaleLowerCase() === "information") + && String(action).toLocaleLowerCase() !== "evaluation" + &&
+ + +
+ } + + {String(action).toLocaleLowerCase() !== "inscription" && String(action).toLocaleLowerCase() !== "information" && String(tokenEval_api) === "true" + &&
+ + + +
+ } + +
+ + {Get_Class_Catalogue_File_result && Get_Class_Catalogue_File_result.length > 0 &&
+ + + +
} + + +
+
Description + +
+ {DetailTraining["description"] &&
+ {parse(String(DetailTraining["description"]))} + +
+ } +
+
+ + {GetCurrentClass_result && GetCurrentClass_result.length > 0 && +
+
+ Les sessions + +
+
+
    + + {GetCurrentClass_result && GetCurrentClass_result.slice(0, 5).map((formation) => ( + + +
  • + + {(JSON.parse(formation).session_ondemande) && (JSON.parse(formation).session_ondemande) === "1" && } + {(!(JSON.parse(formation).session_ondemande) || (JSON.parse(formation).session_ondemande) === "0") && } +
  • + + ))} + +
+
+ +
+ } + +
+
+
+ Objectif +
+ {DetailTraining["objectif"] &&
+ {parse(String(DetailTraining["objectif"]))} + +
+ } + +
+ + +
+ + +
+
+ Programme +
+ {DetailTraining["programme"] &&
+ {parse(String(DetailTraining["programme"]))} + +
+ } +
+ + +
+ {DetailTraining["tab_ue_detail_data"] && DetailTraining["tab_ue_detail_data"].length > 0 && < div className="block_info_page_pave_title_desc_long_text" > +
+ Modules +
+ + + {DetailTraining["tab_ue_detail_data"] &&
+ +
+ {DetailTraining["tab_ue_detail_data"] && DetailTraining["tab_ue_detail_data"].map((val) => ( +
+ + + } + aria-controls={val._id} + id={val._id} + > + + + {val.titre} + + + + +
{parse(String(val.description).replace(/(<([^>]+)>)/ig, ''))}
+ +
+
+
+ + +
+ ))} +
+ +
} + +
} + +
+ + {DetailTraining["pourqui"] && String(DetailTraining["pourqui"]).length > 2 &&
+
+ Pour Qui +
+ {DetailTraining["pourqui"] &&
+ {parse(String(DetailTraining["pourqui"]))} + + +
+ } +
} +
+ + {DetailTraining["prerequis"] && String(DetailTraining["prerequis"]).length > 2 &&
+
+ Pré-requis +
+ {DetailTraining["prerequis"] &&
+ {parse(String(DetailTraining["prerequis"]))} + + +
+ } +
} + +
+ + {DetailTraining["plus_produit"] && String(DetailTraining["plus_produit"]).length > 2 &&
+
+ Points forts +
+ {DetailTraining["plus_produit"] &&
+ {parse(String(DetailTraining["plus_produit"]))} + + +
+ + } +
} + + + + +
+ +
+ + {/****** Stick droire */} +
+
+ + +
+ + + {class_img_stored_in_bdd && String(class_img_stored_in_bdd).length > 50 &&
+ + +
+ } + + {(!class_img_stored_in_bdd || String(class_img_stored_in_bdd).length < 50) && String(ismetiermanaged) !== "0" && String(ismetiermanaged) !== "1" &&
+ + {(!DetailTraining.img_url || String(DetailTraining.img_url).length <= 0) && + DetailTraining.metier && String(DetailTraining.metier).toLocaleLowerCase() === String("it") && + informatique} + + + {(!DetailTraining.img_url || String(DetailTraining.img_url).length <= 0) && + DetailTraining.metier && String(DetailTraining.metier).toLocaleLowerCase() === String("graphisme") && + graphisme} + + {(!DetailTraining.img_url || String(DetailTraining.img_url).length <= 0) && + DetailTraining.metier && String(DetailTraining.metier).toLocaleLowerCase() === String("management") && + management} + + {(!DetailTraining.img_url || String(DetailTraining.img_url).length <= 0) && + DetailTraining.metier && String(DetailTraining.metier).toLocaleLowerCase() === String("digital") && + digital} + + {(!DetailTraining.img_url || String(DetailTraining.img_url).length <= 0) && + DetailTraining.metier && String(DetailTraining.metier).toLocaleLowerCase() === String("office") && + office} + + {(!DetailTraining.img_url || String(DetailTraining.img_url).length <= 0) && + DetailTraining.metier && String(DetailTraining.metier).toLocaleLowerCase() === String("rh") && + ressources humaines} + + {(!DetailTraining.img_url || String(DetailTraining.img_url).length <= 0) && + DetailTraining.metier && String(DetailTraining.metier).toLocaleLowerCase() === String("vente") && + vente} + + {(!DetailTraining.img_url || String(DetailTraining.img_url).length <= 0) && + DetailTraining.metier && String(DetailTraining.metier).toLocaleLowerCase() === String("sport") && + sport} + + {(!DetailTraining.img_url || String(DetailTraining.img_url).length <= 0) && + DetailTraining.metier && String(DetailTraining.metier).toLocaleLowerCase() === String("sante_nat") && + sante naturelle} + + {(!DetailTraining.img_url || String(DetailTraining.img_url).length <= 0) && + DetailTraining.metier && String(DetailTraining.metier).toLocaleLowerCase() === String("dev_perso") && + developpement personnel} + + +
} + + {(!class_img_stored_in_bdd || String(class_img_stored_in_bdd).length < 50) && String(ismetiermanaged) === "0" &&
+ autre + +
} + + {(!class_img_stored_in_bdd || String(class_img_stored_in_bdd).length < 50) && String(ismetiermanaged) === "1" &&
+ autre + +
} + + + + + {String(DetailTraining["price"]) && String(DetailTraining["price"]) === String("0") && +
+
Gratuit +
+ + {DetailTraining["cpf"] && String(DetailTraining["cpf"]) === "1" &&
Éligible CPF
} + {(!DetailTraining["cpf"] || String(DetailTraining["cpf"]) !== "1") &&
Non Élig. CPF
} +
+ } + + {String(DetailTraining["price"]) && String(DetailTraining["price"]) !== String("0") && (!DetailTraining.business_prices || Object.keys(DetailTraining.business_prices).length <= 0) + && DetailTraining["price"] &&
+
{String(DetailTraining["price"])} € + {parseFloat(String(DetailTraining["partnaire_tva"])) > 0 && <> HT } + {parseFloat(String(DetailTraining["partnaire_tva"])) <= 0 && <> TTC } + +
+ + {DetailTraining["cpf"] && String(DetailTraining["cpf"]) === "1" &&
Éligible CPF
} + {(!DetailTraining["cpf"] || String(DetailTraining["cpf"]) !== "1") &&
Non Élig. CPF
} + + + +
} + + {String(DetailTraining["price"]) && String(DetailTraining["price"]) !== String("0") && DetailTraining.business_prices && Object.keys(DetailTraining.business_prices).length > 0 + && DetailTraining["price"] && +
+
+ +
+
Eligle CFP +
+ + {DetailTraining.business_prices && DetailTraining.business_prices.length > 0 &&
+ + +
} + +
} + +
+ +
Caractéristiques
+ + +
+
    + + + +
    + +
    + + + + + +
    + {String(DetailTraining["duration_unit"]) !== "user_rythme" && +
    + {DetailTraining["duration"]}  {DetailTraining["duration_unit"]}(s) + +
    + } + + {String(DetailTraining["duration_unit"]) === "user_rythme" && +
    + VR + +
    + } + +
    + + +
    + +
    + + + + + +
    + +
    + {DetailTraining["certif"] && String(DetailTraining["certif"]) !== String("1") &&
    + + Non  
    + } + {DetailTraining["certif"] && String(DetailTraining["certif"]) === String("1") &&
    + + Oui  
    + } + +
    + + +
    + + +
    + +
    + + + +
    + +
    + {DetailTraining.presentiel && DetailTraining.presentiel.distantiel === "1" &&
    Oui
    } + {DetailTraining.presentiel && DetailTraining.presentiel.distantiel !== "1" &&
    Non
    } + +
    + + +
    + + +
    + +
    + + + +
    + +
    + {DetailTraining.presentiel && DetailTraining.presentiel.presentiel === "1" &&
    Oui
    } + {DetailTraining.presentiel && DetailTraining.presentiel.presentiel !== "1" &&
    Non
    } + +
    + + +
    + + +
    + +
    + +
    + +
    + {DetailTraining["support"] &&
    + + {String(DetailTraining["support"]).charAt(0).toUpperCase() + String(DetailTraining["support"]).slice(1)}
    + } + {!DetailTraining["support"] &&
    + + Non précisé
    + } + +
    +
    +
+ +
+ + +
+
+ + + + {String(action).toLowerCase() !== "information" && String(action).toLowerCase() !== "inscription" &&
+ +
+ +
+
M’inscrire
+
+ +
+
+
M’informer
+
+ +
} + +
+ {String(isqualiopi) === "1" &&
+
+ Qualiopi +
+ +
} + {String(isqualiopi) === "1" &&
} + + {String(isdatadock) === "1" &&
+
+ DataDock + +
+ +
} + {String(isdatadock) === "1" &&
} + +
+ {String(iscertifvoltaire) === "1" &&
+ Certitrace + +
} + + +
+ + + +
+ +
+ Organisme de formation +
+ +
+ + {partnair_name && } +
+ +
+ +
+ + +
+ social Mysy Training Facebook +
+ +
+ social Mysy Training LinkedIn +
+ +
+ social Mysy Training X (twitter) + +
+
+ + + + +
+ + +
+ +
+ +
+ + +
+
+ {associatedtraining_message && String(associatedtraining_api) === "True" && associatedtraining_message.length > 0 && +
Cela pourrait aussi vous intéresser
} + +
+ {associatedtraining_message && String(associatedtraining_api) === "True" && + associatedtraining_message.slice(0, 3).map((formation) => ( +
+
+
+ + {JSON.parse(formation).metier && String(JSON.parse(formation).metier).toLocaleLowerCase() === String("it") && + informatique} + + {JSON.parse(formation).metier && String(JSON.parse(formation).metier).toLocaleLowerCase() === String("graphisme") && + graphisme} + + {JSON.parse(formation).metier && String(JSON.parse(formation).metier).toLocaleLowerCase() === String("management") && + management} + + {JSON.parse(formation).metier && String(JSON.parse(formation).metier).toLocaleLowerCase() === String("digital") && + digital} + + {JSON.parse(formation).metier && String(JSON.parse(formation).metier).toLocaleLowerCase() === String("office") && + office} + + {JSON.parse(formation).metier && String(JSON.parse(formation).metier).toLocaleLowerCase() === String("rh") && + ressources humaines} + + {JSON.parse(formation).metier && String(JSON.parse(formation).metier).toLocaleLowerCase() === String("vente") && + vente} + + {JSON.parse(formation).metier && String(JSON.parse(formation).metier).toLocaleLowerCase() === String("sport") && + sport} + + {JSON.parse(formation).metier && String(JSON.parse(formation).metier).toLocaleLowerCase() === String("sante_nat") && + sante naturelle} + + + {JSON.parse(formation).metier && String(JSON.parse(formation).metier).toLocaleLowerCase() === String("dev_perso") && + developpement personnel} + + {!JSON.parse(formation).metier && autre personnel} + + +
+ +
+ + {JSON.parse(formation).cpf && (String(JSON.parse(formation).cpf)) === "1" && +
+ Éligible CPF
} + + {!JSON.parse(formation).cpf || String(JSON.parse(formation).cpf) !== "1" && +
+ NON Éligible CPF
} + +
+ + +
+ +
+ + {JSON.parse(formation).note && String(JSON.parse(formation).note).length === 1 && + parseInt(String(JSON.parse(formation).note)) <= 5 && + + } +
+ +
{parse(String(JSON.parse(formation).title)).substring(0, 50)} +
+ + {JSON.parse(formation).price &&
+ {(String(JSON.parse(formation).price))} € + {parseFloat(String(JSON.parse(formation).partnaire_tva)) > 0 && <> HT } + {parseFloat(String(JSON.parse(formation).partnaire_tva)) <= 0 && <> TTC } +
} + + +
+ + + +
+
{ + e.preventDefault(); + //test(props.formation.external_code); + window.open( + "/Display-Partner-Catalog-Detail-formation/" + JSON.parse(formation).internal_url, + '_self' + ); + + + }}> +
+ Voir les détails +
+ +
+
+ +
+ +
+ ))} +
+
+
+ + {Get_Subdomain_Partner_Data_result && Get_Subdomain_Partner_Data_result.length > 0 && +
+ +
} + + ) +} + + +export default Display_Partner_Catalog_DetailClass_new_v2; \ No newline at end of file diff --git a/src/components/Employes.js b/src/components/Employes.js index 10abd37..265a08e 100644 --- a/src/components/Employes.js +++ b/src/components/Employes.js @@ -71,6 +71,7 @@ import Paper from '@material-ui/core/Paper'; import Draggable from 'react-draggable'; import { IconButton } from '@material-ui/core'; import Module_RH_Tutorat from "./Module_RH_Tutorat"; +import { Stroller } from "@mui/icons-material"; function PaperComponent(props) { return ( @@ -10996,14 +10997,14 @@ const Employes = (props) => {