diff --git a/src/components/DisplayPartnerSession.js b/src/components/DisplayPartnerSession.js index af7c164..9d93790 100644 --- a/src/components/DisplayPartnerSession.js +++ b/src/components/DisplayPartnerSession.js @@ -44,7 +44,7 @@ import { IoMdAddCircle, IoIosRemoveCircleOutline } from "react-icons/io"; import { AiTwotoneEdit, AiTwotoneSave } from "react-icons/ai"; import { confirmAlert } from 'react-confirm-alert'; import ToggleSwitch from "./ToggleSwitch"; - +import Module_Historique_Action from "./Module_Historique_Action"; const DisplayPartnerSession = (props) => { @@ -1378,6 +1378,11 @@ const DisplayPartnerSession = (props) => { document.getElementById("sequence_session").style.color = "black"; } + if (document.getElementById("historique")) { + document.getElementById("historique").style.backgroundColor = "#d8edfc"; + document.getElementById("historique").style.color = "black"; + } + } async function submenu_detail_session() { @@ -1408,6 +1413,10 @@ const DisplayPartnerSession = (props) => { document.getElementById("sequence_session").style.color = "black"; } + if (document.getElementById("historique")) { + document.getElementById("historique").style.backgroundColor = "#d8edfc"; + document.getElementById("historique").style.color = "black"; + } } async function submenu_sequence_session() { @@ -1440,7 +1449,10 @@ const DisplayPartnerSession = (props) => { } - + if (document.getElementById("historique")) { + document.getElementById("historique").style.backgroundColor = "#d8edfc"; + document.getElementById("historique").style.color = "black"; + } } @@ -1481,6 +1493,55 @@ const DisplayPartnerSession = (props) => { } + if (document.getElementById("historique")) { + document.getElementById("historique").style.backgroundColor = "#d8edfc"; + document.getElementById("historique").style.color = "black"; + } + + } + + async function submenu_historique() { + setsubmenu("historique"); + + await sleep(5); + if (!edit_session_form) { + desableSessionFields(); + } + + if (document.getElementById("historique")) { + document.getElementById("historique").style.backgroundColor = "#104277"; + document.getElementById("historique").style.color = "white"; + } + + + if (document.getElementById("emargement")) { + document.getElementById("emargement").style.backgroundColor = "#d8edfc"; + document.getElementById("emargement").style.color = "black"; + } + + + if (document.getElementById("sequence_session")) { + document.getElementById("sequence_session").style.backgroundColor = "#d8edfc"; + document.getElementById("sequence_session").style.color = "black"; + } + + + if (document.getElementById("detail_session")) { + document.getElementById("detail_session").style.backgroundColor = "#d8edfc"; + document.getElementById("detail_session").style.color = "black"; + } + + if (document.getElementById("inscrit")) { + document.getElementById("inscrit").style.backgroundColor = "#d8edfc"; + document.getElementById("inscrit").style.color = "black"; + } + + if (document.getElementById("preinscrit")) { + document.getElementById("preinscrit").style.backgroundColor = "#d8edfc"; + document.getElementById("preinscrit").style.color = "black"; + } + + } @@ -8471,6 +8532,7 @@ Update du 22/10/2023 - Gestion des champs spécifiques ajoutés par le partenair + } @@ -12318,6 +12380,14 @@ Update du 22/10/2023 - Gestion des champs spécifiques ajoutés par le partenair } + {String(submenu) === String("historique") &&
+ + +
} + diff --git a/src/components/Partner.js b/src/components/Partner.js index ed3341e..49e07f5 100644 --- a/src/components/Partner.js +++ b/src/components/Partner.js @@ -1457,64 +1457,64 @@ const Partner = (props) => { {String(menu) === "setuplms" &&
- +
} {String(menu) === "mes_sessions" &&
- +
} {String(menu) === "mes_employes" &&
- +
} {String(menu) === "factures_client" &&
- +
} {String(menu) === "mon_materiel" &&
- +
} {String(menu) === "mes_cmd" &&
- +
} {String(menu) === "facture" &&
- +
} {String(menu) === "pricing" &&
- +
} {String(menu) === "mes_stagiaires" &&
- +
} {String(menu) === "abonnement" &&
- +
} @@ -1525,26 +1525,26 @@ const Partner = (props) => { {String(menu) === "mes_clients" &&
- +
} {String(menu) === "config_document" &&
- +
} {String(menu) === "config_technique" &&
- +
} {String(menu) === "config_session_steps" &&
- +
} @@ -1552,13 +1552,13 @@ const Partner = (props) => { {String(menu) === "config_jours_heures" &&
- +
} {String(menu) === "config_champ_specific" &&
- +
} diff --git a/src/styles/components/_module_historique_action.scss b/src/styles/components/_module_historique_action.scss index 33e0b94..508ec7f 100644 --- a/src/styles/components/_module_historique_action.scss +++ b/src/styles/components/_module_historique_action.scss @@ -2197,7 +2197,7 @@ .css-ny8qih-MuiTimelineItem-root{ height: 50px !important; - min-height: 40 px !important; + min-height: 40px !important; } }