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") &&