07/12/2023 - 21h30
parent
52d74a236c
commit
51440ee010
|
@ -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
|
|||
<Button variant="outlined" onClick={submenu_preinscrit} className="detail_class_submenu" id='preinscrit' name='preinscrit'>Preinscription ({String(nb_stagiaire_Preinscrit)}) </Button>
|
||||
<Button variant="outlined" onClick={submenu_inscrit} className="detail_class_submenu" id='inscrit' name='inscrit'>Inscription ({String(nb_stagiaire_Inscrit)}) </Button>
|
||||
<Button variant="outlined" onClick={submenu_emargement} className="detail_class_submenu" id='inscrit' name='inscrit'>Emargement </Button>
|
||||
<Button variant="outlined" onClick={submenu_historique} className="detail_class_submenu" id='inscrit' name='inscrit'>Historique </Button>
|
||||
</div>}
|
||||
|
||||
|
||||
|
@ -12318,6 +12380,14 @@ Update du 22/10/2023 - Gestion des champs spécifiques ajoutés par le partenair
|
|||
|
||||
</div>}
|
||||
|
||||
{String(submenu) === String("historique") && <div style={{ "border": "None" }}>
|
||||
|
||||
<Module_Historique_Action related_collection="session_formation"
|
||||
related_collection_recid={selected_session_id}
|
||||
read_access={props.read_access}
|
||||
write_access={props.write_access} />
|
||||
</div>}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
|
|
@ -1457,64 +1457,64 @@ const Partner = (props) => {
|
|||
|
||||
{String(menu) === "setuplms" &&
|
||||
<div className="div_droite">
|
||||
<HebergementLms />
|
||||
<HebergementLms conntected_employee_id={conntected_employee_id} read_access={check_user_acces_right("lms", "read")} write_access={check_user_acces_right("lms", "write")} />
|
||||
</div>
|
||||
}
|
||||
|
||||
|
||||
{String(menu) === "mes_sessions" &&
|
||||
<div className="div_droite">
|
||||
<DisplayPartnerSession />
|
||||
<DisplayPartnerSession conntected_employee_id={conntected_employee_id} read_access={check_user_acces_right("session", "read")} write_access={check_user_acces_right("session", "write")} />
|
||||
</div>
|
||||
}
|
||||
|
||||
{String(menu) === "mes_employes" &&
|
||||
<div className="div_droite">
|
||||
<Employes />
|
||||
<Employes conntected_employee_id={conntected_employee_id} read_access={check_user_acces_right("employe", "read")} write_access={check_user_acces_right("employe", "write")} />
|
||||
</div>
|
||||
}
|
||||
|
||||
{String(menu) === "factures_client" &&
|
||||
<div className="div_droite">
|
||||
<Factures_Client />
|
||||
<Factures_Client conntected_employee_id={conntected_employee_id} read_access={check_user_acces_right("facture_client", "read")} write_access={check_user_acces_right("facture_client", "write")} />
|
||||
</div>
|
||||
}
|
||||
|
||||
|
||||
{String(menu) === "mon_materiel" &&
|
||||
<div className="div_droite">
|
||||
<Materiels />
|
||||
<Materiels conntected_employee_id={conntected_employee_id} read_access={check_user_acces_right("materiel", "read")} write_access={check_user_acces_right("materiel", "write")} />
|
||||
</div>
|
||||
}
|
||||
|
||||
{String(menu) === "mes_cmd" &&
|
||||
<div className="div_droite">
|
||||
<Partner_Commande conntected_employee_id={conntected_employee_id} />
|
||||
<Partner_Commande conntected_employee_id={conntected_employee_id} read_access={check_user_acces_right("commande", "read")} write_access={check_user_acces_right("commande", "write")} />
|
||||
</div>
|
||||
}
|
||||
|
||||
|
||||
{String(menu) === "facture" && <div className="div_droite">
|
||||
|
||||
<Facture currentpack={partnerPackService} />
|
||||
<Facture currentpack={partnerPackService} conntected_employee_id={conntected_employee_id} read_access={check_user_acces_right("compte_partner", "read")} write_access={check_user_acces_right("compte_partner", "write")} />
|
||||
</div>
|
||||
}
|
||||
|
||||
{String(menu) === "pricing" && <div className="div_droite">
|
||||
|
||||
<Pricing />
|
||||
<Pricing conntected_employee_id={conntected_employee_id} read_access={check_user_acces_right("prix", "read")} write_access={check_user_acces_right("prix", "write")} />
|
||||
</div>
|
||||
}
|
||||
|
||||
{String(menu) === "mes_stagiaires" && <div className="div_droite">
|
||||
|
||||
<DisplayPartnerStagiaires conntected_employee_id={conntected_employee_id} read_access={check_user_acces_right("module_agenda", "read")} write_access={check_user_acces_right("module_agenda", "write")} />
|
||||
<DisplayPartnerStagiaires conntected_employee_id={conntected_employee_id} read_access={check_user_acces_right("stagiaire", "read")} write_access={check_user_acces_right("stagiaire", "write")} />
|
||||
</div>
|
||||
}
|
||||
|
||||
{String(menu) === "abonnement" && <div className="div_droite">
|
||||
|
||||
<Abonnement currentpack={partnerPackService} />
|
||||
<Abonnement currentpack={partnerPackService} conntected_employee_id={conntected_employee_id} read_access={check_user_acces_right("abonnement", "read")} write_access={check_user_acces_right("abonnement", "write")} />
|
||||
</div>
|
||||
}
|
||||
|
||||
|
@ -1525,26 +1525,26 @@ const Partner = (props) => {
|
|||
|
||||
{String(menu) === "mes_clients" && <div className="div_droite">
|
||||
|
||||
<Partner_Client conntected_employee_id={conntected_employee_id} />
|
||||
<Partner_Client conntected_employee_id={conntected_employee_id} read_access={check_user_acces_right("client", "read")} write_access={check_user_acces_right("client", "write")} />
|
||||
</div>
|
||||
}
|
||||
|
||||
{String(menu) === "config_document" && <div className="div_droite">
|
||||
|
||||
<Config_Documents />
|
||||
<Config_Documents conntected_employee_id={conntected_employee_id} read_access={check_user_acces_right("config_document", "read")} write_access={check_user_acces_right("config_document", "write")} />
|
||||
</div>
|
||||
}
|
||||
|
||||
{String(menu) === "config_technique" && <div className="div_droite">
|
||||
|
||||
<Configuration_Technique />
|
||||
<Configuration_Technique conntected_employee_id={conntected_employee_id} read_access={check_user_acces_right("config_document", "read")} write_access={check_user_acces_right("config_document", "write")} />
|
||||
</div>
|
||||
}
|
||||
|
||||
|
||||
{String(menu) === "config_session_steps" && <div className="div_droite">
|
||||
|
||||
<Partner_Configuration_Session_Steps />
|
||||
<Partner_Configuration_Session_Steps conntected_employee_id={conntected_employee_id} read_access={check_user_acces_right("config_document", "read")} write_access={check_user_acces_right("config_document", "write")} />
|
||||
</div>
|
||||
}
|
||||
|
||||
|
@ -1552,13 +1552,13 @@ const Partner = (props) => {
|
|||
|
||||
{String(menu) === "config_jours_heures" && <div className="div_droite">
|
||||
|
||||
<Partner_Configuration_Jours_Travail />
|
||||
<Partner_Configuration_Jours_Travail conntected_employee_id={conntected_employee_id} read_access={check_user_acces_right("config_document", "read")} write_access={check_user_acces_right("config_document", "write")} />
|
||||
</div>
|
||||
}
|
||||
|
||||
{String(menu) === "config_champ_specific" && <div className="div_droite">
|
||||
|
||||
<Config_Champs_Personnalise />
|
||||
<Config_Champs_Personnalise conntected_employee_id={conntected_employee_id} read_access={check_user_acces_right("config_document", "read")} write_access={check_user_acces_right("config_document", "write")} />
|
||||
</div>
|
||||
}
|
||||
|
||||
|
|
|
@ -2197,7 +2197,7 @@
|
|||
|
||||
.css-ny8qih-MuiTimelineItem-root{
|
||||
height: 50px !important;
|
||||
min-height: 40 px !important;
|
||||
min-height: 40px !important;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue