diff --git a/public/index.html b/public/index.html index 6f34e29..86392c3 100644 --- a/public/index.html +++ b/public/index.html @@ -8,6 +8,36 @@ + - diff --git a/src/components/AddClassManual.js b/src/components/AddClassManual.js index b3848e7..9269e66 100644 --- a/src/components/AddClassManual.js +++ b/src/components/AddClassManual.js @@ -3849,7 +3849,7 @@ const AddClassManual = (props) => { //console.log(" nom_fichier_cmd = ", nom_fichier_cmd, " --- selected_id = ", selected_id, " --- url =", url); - // console.log(" #### url = ", url) + // console.log(" #### url = ", url) setLoading(true); axios.get(url, { responseType: 'blob', },) @@ -4222,7 +4222,7 @@ const AddClassManual = (props) => { aria-labelledby="draggable-dialog-title" > - MySy Information + MySy Information {Dialog_1_message} @@ -4924,723 +4924,772 @@ const AddClassManual = (props) => { {submenu && String(submenu) === "detail_formation" &&
-
- { - setp_detail_external_code(e.target.value); - } - } - - - /> -
- -
- { - setp_detail_title(e.target.value); - } - } - /> -
- - - - -
- { - if (value && value._id) { - setp_formateur_id(value._id); - setp_formateur_label(value.label) - DataUpdated(); - - } else { - setp_formateur_id(""); - setp_formateur_label("") - DataUpdated(); - } - }} - - renderInput={(params) => - } - /> +
+
+
+
+
+ - - { - if (value && value.value) { - - setmycpf(value.value); - setmycpf_label(value.label); - setdatamodification("1"); - - } else { - setmycpf(""); - setmycpf_label(""); - setdatamodification("1"); - } - }} - - renderInput={(params) => - } - /> - -
- -
- - { - if (value && value.value) { - - setmycertif(value.value); - setmycertif_label(value.label); - setdatamodification("1"); - - } else { - setmycertif(""); - setmycertif_label(""); - setdatamodification("1"); - } - }} - - renderInput={(params) => - } - /> - - -
- -
- { - if (value && value.code) { - setp_class_level(value.code); - setp_class_level_label(value.description) - DataUpdated(); - - } else { - setp_class_level(""); - setp_class_level_label("") - DataUpdated(); - } - }} - - renderInput={(params) => - } - /> -
- - -
- - { - if (value && value.value) { - // console.log(" value = ", value); - setmypublished(value.value); - setmypublished_label(value.label); - setdatamodification("1"); - - } else { - setmypublished(""); - setmypublished_label(""); - setdatamodification("1"); - } - }} - - renderInput={(params) => - } - /> - - -
- -
- - { - if (value && value.value) { - setmypresence(value.value); - setmypresence_label(value.label); - setdatamodification("1"); - } else { - setmypresence(""); - setmypresence_label(""); - setdatamodification("1"); - } - }} - - renderInput={(params) => - } - /> - - -
- -
- - { - if (value && value.value) { - - setmydistance(value.value); - setmydistance_label(value.label); - setdatamodification("1"); - - } else { - setmydistance(""); - setmydistance_label(""); - setdatamodification("1"); - } - }} - - renderInput={(params) => - } - /> - -
- - -
- - { - if (value && value.value) { - - setmytrainingsupport(value.value); - setdatamodification("1"); - setmytrainingsupport_label(value.label) - - } else { - setmytrainingsupport(""); - setdatamodification("1"); - setmytrainingsupport_label("") - } - }} - - renderInput={(params) => - } - /> - -
- - - {New_Get_List_Domaines_result && New_Get_List_Domaines_result.length > 0 &&
- (data)._id === String(mytrainingdomaine))[0].label} - - onChange={(event, value) => { - if (value && value._id) { - setmytrainingdomaine(value._id); - setmytrainingmetier(""); - setmytrainingcategorie(""); - setdatamodification("1"); - } else { - setmytrainingdomaine(""); - setmytrainingmetier(""); - setmytrainingcategorie(""); - } - }} - - renderInput={(params) => - } - /> - -
} - - - {New_Get_List_Metiers_result && New_Get_List_Metiers_result.length > 0 && mytrainingdomaine && -
- data.class_domaine_id === String(String(mytrainingdomaine).trim()))} - - value={New_Get_List_Metiers_result.filter((data) => (data)._id === String(mytrainingmetier))[0].label} - - - onChange={(event, value) => { - - if (value && value._id) { - setmytrainingmetier(value._id); - setdatamodification("1"); - } else { - setmytrainingmetier(""); - setdatamodification("1"); + value={p_detail_external_code} + onChange={(e) => { + setp_detail_external_code(e.target.value); } - }} - - renderInput={(params) => - } - /> - -
} - - - - - {(!mytrainingdomaine || String(mytrainingdomaine).trim().length <= 0 || String(mytrainingdomaine).trim() === "") &&
- { - - - if (value && value._id) { - - setmytrainingmetier(value.metier); - setdatamodification("1"); - } else { - setmytrainingmetier(""); - setdatamodification("1"); - } - }} - - renderInput={(params) => - } - /> - -
} - - - - {New_Get_List_Categorie_result && New_Get_List_Categorie_result.length > 0 && mytrainingdomaine && -
- data.class_domaine_id === String(String(mytrainingdomaine).trim()))} - - value={New_Get_List_Categorie_result.filter((data) => (data)._id === String(mytrainingcategorie))[0].label} - - - onChange={(event, value) => { - - if (value && value._id) { - setmytrainingcategorie(value._id); - setdatamodification("1"); - } else { - setmytrainingcategorie(""); - setdatamodification("1"); - } - }} - - renderInput={(params) => - } - /> - -
} + /> +
- - {(!mytrainingdomaine || String(mytrainingdomaine).trim().length <= 0 || String(mytrainingdomaine).trim() === "") &&
- { - - - if (value && value._id) { - - setmytrainingcategorie(value.metier); - setdatamodification("1"); - } else { - setmytrainingcategorie(""); - setdatamodification("1"); - - - } - }} - - renderInput={(params) => - } - /> - -
} - - - -
- { - setp_detail_price(e.target.value); - } - } - /> -
- -
- - { - setp_detail_duree(e.target.value); - } - } - /> -
- - -
- { - if (value && value.value) { - setmytrainingdurationunit(value.value); - setdatamodification("1"); - } else { - setmytrainingdurationunit(""); - setdatamodification("1"); +
+ { + setp_detail_title(e.target.value); } - }} + } + /> +
- renderInput={(params) => - } - /> + +
+ { + if (value && value._id) { + setp_formateur_id(value._id); + setp_formateur_label(value.label) + DataUpdated(); + + } else { + setp_formateur_id(""); + setp_formateur_label("") + DataUpdated(); + } + }} + + renderInput={(params) => + } + /> + + + +
+ + + + +
+ + { + if (value && value.value) { + + setmycpf(value.value); + setmycpf_label(value.label); + setdatamodification("1"); + + } else { + setmycpf(""); + setmycpf_label(""); + setdatamodification("1"); + } + }} + + renderInput={(params) => + } + /> + +
+ +
+ + { + if (value && value.value) { + + setmycertif(value.value); + setmycertif_label(value.label); + setdatamodification("1"); + + } else { + setmycertif(""); + setmycertif_label(""); + setdatamodification("1"); + } + }} + + renderInput={(params) => + } + /> + + +
+ +
+ { + if (value && value.code) { + setp_class_level(value.code); + setp_class_level_label(value.description) + DataUpdated(); + + } else { + setp_class_level(""); + setp_class_level_label("") + DataUpdated(); + } + }} + + renderInput={(params) => + } + /> +
+ + +
+ + { + if (value && value.value) { + // console.log(" value = ", value); + setmypublished(value.value); + setmypublished_label(value.label); + setdatamodification("1"); + + } else { + setmypublished(""); + setmypublished_label(""); + setdatamodification("1"); + } + }} + + renderInput={(params) => + } + /> + + +
+ +
+ + { + if (value && value.value) { + setmypresence(value.value); + setmypresence_label(value.label); + setdatamodification("1"); + } else { + setmypresence(""); + setmypresence_label(""); + setdatamodification("1"); + } + }} + + renderInput={(params) => + } + /> + + +
+ +
+ + { + if (value && value.value) { + + setmydistance(value.value); + setmydistance_label(value.label); + setdatamodification("1"); + + } else { + setmydistance(""); + setmydistance_label(""); + setdatamodification("1"); + } + }} + + renderInput={(params) => + } + /> + +
+ + +
+ + { + if (value && value.value) { + + setmytrainingsupport(value.value); + setdatamodification("1"); + setmytrainingsupport_label(value.label) + + } else { + setmytrainingsupport(""); + setdatamodification("1"); + setmytrainingsupport_label("") + } + }} + + renderInput={(params) => + } + /> + +
+ + + {New_Get_List_Domaines_result && New_Get_List_Domaines_result.length > 0 &&
+ (data)._id === String(mytrainingdomaine))[0].label} + + onChange={(event, value) => { + if (value && value._id) { + setmytrainingdomaine(value._id); + setmytrainingmetier(""); + setmytrainingcategorie(""); + setdatamodification("1"); + } else { + setmytrainingdomaine(""); + setmytrainingmetier(""); + setmytrainingcategorie(""); + } + }} + + renderInput={(params) => + } + /> + +
} + + + {New_Get_List_Metiers_result && New_Get_List_Metiers_result.length > 0 && mytrainingdomaine && +
+ data.class_domaine_id === String(String(mytrainingdomaine).trim()))} + + value={New_Get_List_Metiers_result.filter((data) => (data)._id === String(mytrainingmetier))[0].label} + + + onChange={(event, value) => { + + if (value && value._id) { + setmytrainingmetier(value._id); + setdatamodification("1"); + } else { + setmytrainingmetier(""); + setdatamodification("1"); + } + }} + + renderInput={(params) => + } + /> + +
} + + + + + {(!mytrainingdomaine || String(mytrainingdomaine).trim().length <= 0 || String(mytrainingdomaine).trim() === "") &&
+ { + + + if (value && value._id) { + + setmytrainingmetier(value.metier); + setdatamodification("1"); + } else { + setmytrainingmetier(""); + setdatamodification("1"); + } + }} + + renderInput={(params) => + } + /> + +
} + + + + {New_Get_List_Categorie_result && New_Get_List_Categorie_result.length > 0 && mytrainingdomaine && +
+ data.class_domaine_id === String(String(mytrainingdomaine).trim()))} + + value={New_Get_List_Categorie_result.filter((data) => (data)._id === String(mytrainingcategorie))[0].label} + + + onChange={(event, value) => { + + if (value && value._id) { + setmytrainingcategorie(value._id); + setdatamodification("1"); + } else { + setmytrainingcategorie(""); + setdatamodification("1"); + + } + }} + + renderInput={(params) => + } + /> + +
} + + + + + {(!mytrainingdomaine || String(mytrainingdomaine).trim().length <= 0 || String(mytrainingdomaine).trim() === "") &&
+ { + + + if (value && value._id) { + + setmytrainingcategorie(value.metier); + setdatamodification("1"); + } else { + setmytrainingcategorie(""); + setdatamodification("1"); + + + } + }} + + renderInput={(params) => + } + /> + +
} +
-
- -
- { - setp_detail_url(e.target.value); - } - } - />
-
- { - setp_detail_lms_class_code(e.target.value); - } - } - /> +   +
+
-
- { - setp_detail_class_inscription_url(e.target.value); - } - } - /> -
+
+
+ + +
+ { + setp_detail_url(e.target.value); + } + } + /> +
+ +
+ { + setp_detail_lms_class_code(e.target.value); + } + } + /> +
+ + +
+ { + setp_detail_class_inscription_url(e.target.value); + } + } + /> +
-
- - + + - { - setp_detail_class_banner_img_url(e.target.value); - } - } - /> - + value={p_detail_class_banner_img_url} + onChange={(e) => { + setp_detail_class_banner_img_url(e.target.value); + } + } + /> + +
+ + +
+ { + setp_detail_note(e.target.value); + } + } + /> +
+ +
+ { + setp_detail_version_catalogue(e.target.value); + } + } + /> +
+ +
+ { + setp_detail_recyclage_delai(e.target.value); + } + } + /> +
+ +
+ { + setp_detail_recyclage_alert(e.target.value); + } + } + /> +
+ +
-
- { - setp_detail_note(e.target.value); - } - } - /> + {/* -- début champs durée & prix **/} +   +
+ +
-
- { - setp_detail_version_catalogue(e.target.value); - } - } - /> -
+
+
-
- { - setp_detail_recyclage_delai(e.target.value); - } - } - /> -
-
- { - setp_detail_recyclage_alert(e.target.value); - } - } - /> +
+ + { + setp_detail_duree(e.target.value); + } + } + /> +
+ +
+ { + if (value && value.value) { + setmytrainingdurationunit(value.value); + setdatamodification("1"); + } else { + setmytrainingdurationunit(""); + setdatamodification("1"); + } + }} + + renderInput={(params) => + } + /> + + +
+ + +
+ { + setp_detail_price(e.target.value); + } + } + /> +
+
{/* -- début champs specifiques **/} -
-
+   +
+
-
Vos champs spécifiques
- {rows_champs_specifics && - rows_champs_specifics.map((champ_spec) => ( +
-
- {String(JSON.parse(champ_spec).field_type) === "float" && { - change_champs_spec_handle(e.target.value); - //setEmployee_data_changed("1"); - }} - />} +
+ {rows_champs_specifics && + rows_champs_specifics.map((champ_spec) => ( - {String(JSON.parse(champ_spec).field_type) === "string" && + {String(JSON.parse(champ_spec).field_type) === "float" && { + change_champs_spec_handle(e.target.value); + //setEmployee_data_changed("1"); + }} + />} - InputLabelProps={{ - shrink: true, - }} - disabled={false} - className="disabled_style" - onChange={(e) => { - change_champs_spec_handle(e.target.value); - //setEmployee_data_changed("1"); - }} - />} + {String(JSON.parse(champ_spec).field_type) === "string" && - ))} + InputLabelProps={{ + shrink: true, + }} + disabled={false} + className="disabled_style" + onChange={(e) => { + change_champs_spec_handle(e.target.value); + //setEmployee_data_changed("1"); + }} + />} -
+
+ ))} + +
{/* -- end champs specifiques **/} diff --git a/src/components/Article.js b/src/components/Article.js index 009c49b..95fc45e 100644 --- a/src/components/Article.js +++ b/src/components/Article.js @@ -1,10 +1,6 @@ import React, { useRef, useState, useEffect } from "react"; import { Button, } from "reactstrap"; -import { FacebookShareButton, LinkedinShareButton, TwitterShareButton } from "react-share"; -import { SocialIcon } from 'react-social-icons'; -import happyimg from "../mysy_img/happy.png"; -import unhappyimg from "../mysy_img/nothappy.png"; -import middleimg from "../mysy_img/middle.png"; + import parse from 'html-react-parser' import img_met_autre from "../mysy_img/met_autre.jpg"; import img_met_digital from "../mysy_img/met_digital.jpg"; diff --git a/src/components/CheckOut.js b/src/components/CheckOut.js index 76d1559..a098c64 100644 --- a/src/components/CheckOut.js +++ b/src/components/CheckOut.js @@ -1508,7 +1508,7 @@ function CheckOut(props) {
Detail de Facturation
{String(addfacturationinfo_api) === String("true") && String(addfacturationinfo_response).length > 3 && -
La modification ete prise en compte
} +
La modification a été prise en compte
} {String(addfacturationinfo_api) === String("false") || String(addfacturationinfo_response) === String("0") &&
Impossible de modifier les informations de facturation
} diff --git a/src/components/DisplayPartnerSession.js b/src/components/DisplayPartnerSession.js index c9523e6..5b9adf0 100644 --- a/src/components/DisplayPartnerSession.js +++ b/src/components/DisplayPartnerSession.js @@ -214,7 +214,7 @@ const DisplayPartnerSession = (props) => { return (