From 3093e34ca01e017945d242d61dc7cbc2c1f3e614 Mon Sep 17 00:00:00 2001 From: cherif Date: Fri, 29 Dec 2023 12:33:54 +0100 Subject: [PATCH] 29/12/2023 - 12h30 --- src/components/Abonnement.js | 4 +- src/components/AddClassManual.js | 16 +- src/components/AddPartnerClient.js | 24 +-- src/components/Apprenant.js | 28 +-- src/components/CheckOut.js | 4 +- src/components/Config_Champs_Personnalise.js | 36 ++-- src/components/Config_Document.js | 24 +-- src/components/Dashbord_Formation.js | 12 +- .../Dashbord_Formation_Evol_Session.js | 8 +- src/components/Dashbord_Session.js | 20 +- src/components/Dashbord_Session_Par_Fteur.js | 8 +- .../Dashbord_Session_Repartition_Fteur.js | 8 +- .../Dashbord_Session_Taux_Remplissage.js | 8 +- src/components/DisplayPartnerSession.js | 44 ++-- src/components/DisplayPartnerStagiaires.js | 190 +++++++++++++----- .../DisplayPartnerTrainingsPagination.js | 20 +- src/components/Employes.js | 40 ++-- src/components/HebergementLms.js | 8 +- src/components/Materiels.js | 62 ++++-- src/components/Mon_Tableau_De_Bord.js | 8 +- src/components/Partner.js | 96 ++++----- src/components/Partner_Client.js | 12 +- src/components/Partner_Commande.js | 24 +-- .../Partner_Config_Session_Steps.js | 8 +- src/components/Partner_Config_Technique.js | 8 +- src/components/Partner_Facture.js | 24 +-- src/components/Partner_Prix_Achat.js | 12 +- src/components/SignIn.js | 4 +- src/components/TestUrl.js | 4 +- src/styles/components/_checkout.scss | 6 + .../_config_champs_personnalise.scss | 6 +- src/styles/components/_config_document.scss | 6 +- .../components/_contactpartnerclient.scss | 6 + .../components/_dashbord_formation.scss | 6 + src/styles/components/_dashbord_session.scss | 6 + .../components/_displaypartnersession.scss | 6 + .../components/_displaypartnerstagiaire.scss | 6 + .../_displaypartnertrainingpagination.scss | 6 + src/styles/components/_employes.scss | 6 +- src/styles/components/_facture.scss | 7 + .../components/_gestionadministrative.scss | 5 + src/styles/components/_hebergementlms.scss | 4 + src/styles/components/_inscription.scss | 7 + src/styles/components/_materiels.scss | 5 + src/styles/components/_module_absence.scss | 6 +- src/styles/components/_module_agenda.scss | 6 +- .../components/_module_historique_action.scss | 6 +- .../components/_mon_tableau_de_bord.scss | 6 +- src/styles/components/_partner.scss | 26 ++- .../components/_partner_client_activite.scss | 6 + .../_partner_client_securite_data.scss | 6 + src/styles/components/_partner_commande.scss | 6 +- .../_partner_configuration_jours_travail.scss | 6 +- .../_partner_configuration_session_step.scss | 6 +- .../_partner_configuration_technique.scss | 6 +- src/styles/components/_partner_facture.scss | 6 +- .../components/_partner_prix_achat.scss | 6 +- src/styles/components/_partnerclient.scss | 6 +- src/styles/components/_signin.scss | 5 + 59 files changed, 628 insertions(+), 333 deletions(-) diff --git a/src/components/Abonnement.js b/src/components/Abonnement.js index f04b324..24ad706 100644 --- a/src/components/Abonnement.js +++ b/src/components/Abonnement.js @@ -1294,10 +1294,10 @@ function Abonnement(props) {
- +
- + Code Remise : { const [Get_List_Metiers_result, setGet_List_Metiers_result] = useState(); function Get_List_Metiers() { var form = new FormData(); - var myurl = process.env.REACT_APP_API_URL + "myclass/api/get_List_metier_formation/"; + var myurl = process.env.REACT_APP_API_URL + "myclass/api/get_List_metier_formation_JSON/"; setLoading(true); fetch(myurl, { @@ -1019,8 +1019,11 @@ const AddClassManual = (props) => { new_data2.push(node); }); - if (new_data2.length > 0) + if (new_data2.length > 0) { setNew_Get_List_Metiers_result(new_data2); + // console.log(" ### new_data2 ", new_data2); + //console.log(" ### setNew_Get_List_Metiers_result ", New_Get_List_Metiers_result); + } } @@ -1057,7 +1060,7 @@ const AddClassManual = (props) => { const [Get_List_Domaines_result, setGet_List_Domaines_result] = useState(); function Get_List_Domaines() { var form = new FormData(); - var myurl = process.env.REACT_APP_API_URL + "myclass/api/get_List_domaine_formation/"; + var myurl = process.env.REACT_APP_API_URL + "myclass/api/get_List_domaine_formation_JSON/"; fetch(myurl, { @@ -1996,8 +1999,9 @@ const AddClassManual = (props) => { options={New_Get_List_Metiers_result} value={mytrainingmetier} onChange={(event, value) => { + if (value && value.metier) { - + setmytrainingmetier(value.metier); setdatamodification("1"); } @@ -2056,8 +2060,8 @@ const AddClassManual = (props) => { className="disabled_style" />
- - + +
{ {String(JSON.parse(client).include_com) === "1" && } @@ -2883,8 +2883,8 @@ const AddParnerClient = (props) => { @@ -3182,8 +3182,8 @@ const AddParnerClient = (props) => {
- - + + N° Siret
{
- - + + N° TVA
{

- -
+ +
*/} - -
+ +
*/} - -
+ +
{p_filtre1 &&
} {p_filtre1 &&
- - + +   { setp_filtre1(); setp_filtre1_value(); @@ -4241,8 +4241,8 @@ const Apprenant = (props) => { {String(p_filtre2).length > 3 &&
- - + +   { setp_filtre2(); @@ -5242,8 +5242,8 @@ const Apprenant = (props) => { Tuteur 1 {p_detail_tuteur1_include_com === true && } @@ -5355,8 +5355,8 @@ const Apprenant = (props) => { Tuteur 2 {p_detail_tuteur2_include_com === true && } diff --git a/src/components/CheckOut.js b/src/components/CheckOut.js index 41c2b16..cbb8a1e 100644 --- a/src/components/CheckOut.js +++ b/src/components/CheckOut.js @@ -1349,9 +1349,9 @@ function CheckOut(props) {
- + {p_filtre1 && } {p_filtre1 && {String(p_filtre2).length > 2 && } {String(p_filtre2).length > 2 &&
- - + +   { setp_filtre2(); @@ -1455,8 +1455,8 @@ const Config_Champs_Personnalise = (props) => { } {String(personal_field_data_edit_mode) !== "1" && } {String(personal_field_data_edit_mode) === "1" &&
- - + + Champ public
{ {p_filtre1 && } {p_filtre1 && {String(p_filtre2).length > 2 && } {String(p_filtre2).length > 2 && {String(p_filtre2).length > 2 && } {String(p_filtre3).length > 2 &&
- - + +   { setp_filtre3(); setp_filtre3_value(); diff --git a/src/components/Dashbord_Formation.js b/src/components/Dashbord_Formation.js index 5b9e47e..661b2ea 100644 --- a/src/components/Dashbord_Formation.js +++ b/src/components/Dashbord_Formation.js @@ -217,16 +217,16 @@ const Dashbord_Formation = (props) => {

Tableaux de bord des formations

 
Affichage   - - + + { setdisplay_nb_column("1"); setdisplay_column_size("100%"); }} />     - - + + { setdisplay_nb_column("2"); setdisplay_column_size("50%"); @@ -316,8 +316,8 @@ const Dashbord_Formation = (props) => {
- - + +