diff --git a/src/components/Employes.js b/src/components/Employes.js index bd7e63c..1a19a08 100644 --- a/src/components/Employes.js +++ b/src/components/Employes.js @@ -187,7 +187,7 @@ const Employes = (props) => { setp_filtre4(); setp_filtre4_value(); - //Getall_TrainingParticpant_no_filter(); + Getall_Training_Employee_No_Filter(); } const myRef = useRef(null) @@ -210,7 +210,7 @@ const Employes = (props) => { useEffect(() => { - Getall_Training_Employee(); + Getall_Training_Employee_No_Filter(); Get_List_Managers(); Get_List_RH_Profils(); @@ -538,6 +538,42 @@ const Employes = (props) => { } + const [Getall_Training_Employee_No_Filter_api, setGetall_Training_Employee_No_Filter_api] = useState(); + const [Getall_Training_Employee_No_Filter_message, setGetall_Training_Employee_No_Filter_message] = useState(); + const [Getall_Training_Employee_No_Filter_result, setGetall_Training_Employee_No_Filter_result] = useState(); + function Getall_Training_Employee_No_Filter(event) { + + var form = new FormData(); + + + const stored_cookie = getCookie('tokenmysypart'); + form.append("token", stored_cookie); + + var myurl = process.env.REACT_APP_API_URL + "myclass/api/Get_List_Ressource_Humaine_with_filter/"; + + + + axios.post(myurl, form).then(res => { + + if (String(res.data.status) === String("true")) { + //console.log(" In Getall_Training_Employee_No_Filter res.data.status = " + res.data.status); + //console.log(" In Getall_Training_Employee_No_Filter res.data.message r_class = " + res.data.message); + setGetall_Training_Employee_No_Filter_api("true"); + setGetall_Training_Employee_No_Filter_result(res.data.message); + setRows(res.data.message); + } + else { + setGetall_Training_Employee_No_Filter_api("false"); + setGetall_Training_Employee_No_Filter_message(res.data.message); + } + + }).catch((error) => { + console.warn('Not good man :( Getall_Training_Employee_No_Filter = ', error); + setGetall_Training_Employee_No_Filter_api("false"); + //setmyApimyApiMessage("") + }) + } + const [session_file_name, setsession_file_name] = useState(); const [liste_sessions_file_change_api, setliste_sessions_file_change_api] = useState(); @@ -567,7 +603,7 @@ const Employes = (props) => { //console.log("token = " + stored_cookie); fetch( - process.env.REACT_APP_API_URL + "myclass/api/AddStagiairetoClass_mass_for_many_session/", + process.env.REACT_APP_API_URL + "myclass/api/Add_Ressource_Humaine_mass/", { method: 'POST', body: formData, @@ -588,7 +624,7 @@ const Employes = (props) => { setliste_sessions_file_change_api("true"); Getall_Training_Employee(); - alert(" Les stagiaires ont été correctement importés"); + alert(" Les employés ont été correctement importés"); } @@ -604,7 +640,7 @@ const Employes = (props) => { .catch((error) => { console.error('Error:', error); setliste_sessions_file_change_api("false"); - alert(" Impossible d'importer les stagiaires "); + alert(" Impossible d'importer les employés "); }); } @@ -1187,19 +1223,19 @@ const Employes = (props) => { //form.append("token","K3cw63eKokKSbV4spjQ48SUNnfy80yrXfA"); // Controle sur les champs - + if (p_one_detail_nom.trim() == "") { alert(" Vous devez saisir le nom de l'employé"); return; } - + if (p_one_detail_prenom.trim() == "") { alert(" Vous devez saisir le prenom de l'employé"); return; } - + if (p_one_detail_mail.trim() == "") { alert(" Vous devez saisir l'email de l'employé"); return; @@ -1299,7 +1335,7 @@ const Employes = (props) => { else form.append("ismanager", "0"); - + console.log(" form == ", form); var myurl = process.env.REACT_APP_API_URL + "myclass/api/Add_Ressource_Humaine/"; @@ -1339,6 +1375,12 @@ const Employes = (props) => { } + function submenu_import_employee() { + setsession_file_name(); + setliste_sessions_file_change_api(); + hiddenFileInput_session.current.click(); + } + return (
{ > Email   Nom   - Code Session    - Titre Formation   + @@ -1459,8 +1500,6 @@ const Employes = (props) => { > Email   Nom   - Code Session    - Titre Formation   @@ -1521,7 +1560,7 @@ const Employes = (props) => {
} - + {/* {p_filtre3 &&
@@ -1667,15 +1706,16 @@ const Employes = (props) => {
} + */}
-
-
@@ -1829,7 +1869,7 @@ const Employes = (props) => {
- @@ -1926,7 +1966,7 @@ const Employes = (props) => {
- employee_data_changed = {Employee_data_changed} / employee_data_edit_mode = {employee_data_edit_mode}
+
Nom
{
- employee_data_changed = {Employee_data_changed} / employee_data_edit_mode = {employee_data_edit_mode}
+
Nom
Impossible de modifier les informations
} -   - :not(style)': { m: 1 }, width: '100%', }}> +   + :not(style)': { m: 1 }, width: '100%', }}> {
Mot de passe
- + {updatepwd == false &&
Erreur mise à jour.
@@ -632,8 +632,8 @@ const Partner_Securite_Data = (props) => { La mise à jour été faite
} -   - :not(style)': { m: 1 } }}> +   + :not(style)': { m: 1 } }}> {/* @@ -863,7 +863,7 @@ const Partner_Securite_Data = (props) => { La mise à jour été faite
} - +
{ } -   - :not(style)': { m: 1 } }} > +   + :not(style)': { m: 1 } }} > {/* @@ -1137,7 +1137,7 @@ const Partner_Securite_Data = (props) => {
-
+
{insert_keyfieldsdesabled == false &&
diff --git a/src/components/UpdatePartnerInfo.js b/src/components/UpdatePartnerInfo.js index 93eee17..e0ac63a 100644 --- a/src/components/UpdatePartnerInfo.js +++ b/src/components/UpdatePartnerInfo.js @@ -389,7 +389,7 @@ function UpdateParnterInfo() { else { setmycertifvoltaire("0"); } - + if (mylocaltraining.isdatadock) { @@ -405,7 +405,7 @@ function UpdateParnterInfo() { else { setmyqualiopi("0"); } - + if (mylocaltraining.link_linkedin) { setp_link_linkedin(mylocaltraining.link_linkedin); @@ -459,7 +459,7 @@ function UpdateParnterInfo() { desablefield1(); - + } } @@ -815,18 +815,18 @@ function UpdateParnterInfo() { document.getElementsByName("isdatadock")[0].disabled = true; document.getElementsByName("isdatadock")[0].style.backgroundColor = "#ECEFF1"; - + document.getElementsByName("isqualiopi")[0].disabled = true; document.getElementsByName("isqualiopi")[0].style.backgroundColor = "#ECEFF1"; - + document.getElementsByName("iscertifvoltaire")[0].disabled = true; document.getElementsByName("iscertifvoltaire")[0].style.backgroundColor = "#ECEFF1"; } else if (String(result['status']) === String("Err_Connexion")) { alert('Erreur: ' + result['message']); history.push("/Connexion"); - }else{ - alert(" Erreur : "+result['message']); + } else { + alert(" Erreur : " + result['message']); } }) @@ -1531,7 +1531,7 @@ function UpdateParnterInfo() { function sleep(ms) { return new Promise(resolve => setTimeout(resolve, ms)); -} + } async function submenu_donnee_entreprise() { setsubmenu("submenu_donnee_entreprise"); @@ -1620,8 +1620,8 @@ function UpdateParnterInfo() { } -   - :not(style)': { m: 1 }, width: '100%', }} onChange={DataUpdated}> +   + :not(style)': { m: 1 }, width: '100%', }} onChange={DataUpdated}> setp_adr_country(e.target.value)} /> - +
 
Votre logo
@@ -1950,7 +1950,7 @@ function UpdateParnterInfo() { className="texte_area" sx={{ m: 1, width: '48%' }} value="Oui" - + /> @@ -1967,7 +1967,7 @@ function UpdateParnterInfo() { value={myqualiopi} onChange={handleChangequaliopi} - + >{qualiopi.map((option) => ( {option.label}  
@@ -2394,13 +2394,13 @@ function UpdateParnterInfo() {
}
-
-
Supppression de compte
-
- Pour supprimer votre compte, veuillez vous rapprocher de votre contact commercial ou nous écrire à contact@mysy-training.com. +
+
Supppression de compte
+
+ Pour supprimer votre compte, veuillez vous rapprocher de votre contact commercial ou nous écrire à contact@mysy-training.com. +
-
); } diff --git a/src/styles/components/_partnerinvoicingdata.scss b/src/styles/components/_partnerinvoicingdata.scss index 968fa58..14e9a5f 100644 --- a/src/styles/components/_partnerinvoicingdata.scss +++ b/src/styles/components/_partnerinvoicingdata.scss @@ -769,31 +769,34 @@ } .texte_area { + float: left; width: 47% !important; - font-size: small !important; + font-size: x-small !important; font-family: "verdana", "Quicksand", "Signika", sans-serif; - margin: 0rem !important; - margin-right: 0.4rem !important; - margin-top: 0.4rem !important; - background-color: "#ECEFF1"; - background: "#ECEFF1"; - color: black; - margin: 0.5rem !important; + margin: 0.4rem !important; + margin-top: 0px !important; + margin-bottom: 1.5rem !important; } .texte_area_adress { - width: 96.5% !important; - font-size: small !important; + float: left; + width: 95% !important; + font-size: x-small !important; font-family: "verdana", "Quicksand", "Signika", sans-serif; - margin: 0rem !important; - margin-right: 0.4rem !important; - margin-top: 0.4rem !important; - background-color: "#ECEFF1"; - background: "#ECEFF1"; - color: black; - margin: 0.5rem !important; + margin: 0.4rem !important; + margin-bottom: 1.5rem !important; } + .texte_area_passwd { + float: left; + width: 95% !important; + font-size: x-small !important; + font-family: "verdana", "Quicksand", "Signika", sans-serif; + margin: 0.4rem !important; + margin-bottom: 1.5rem !important; + } + + .titre1 { font-family: "Quicksand", "Signika", sans-serif; font-size: medium;