diff --git a/src/components/DisplayPartnerSession.js b/src/components/DisplayPartnerSession.js index 8bf3f6c..903a6be 100644 --- a/src/components/DisplayPartnerSession.js +++ b/src/components/DisplayPartnerSession.js @@ -45,6 +45,8 @@ import { AiTwotoneEdit, AiTwotoneSave } from "react-icons/ai"; import { confirmAlert } from 'react-confirm-alert'; import ToggleSwitch from "./ToggleSwitch"; + + const DisplayPartnerSession = (props) => { const history = useHistory(); const [submenu, setsubmenu] = useState(""); @@ -7284,6 +7286,8 @@ Update du 22/10/2023 - Gestion des champs spécifiques ajoutés par le partenair setLoading(false); fileDownload(res.data, nom_liste_emarge) }).catch((error) => { + setLoading(false); + alert(" Impossible de recuperer la liste d'émargement" ); console.error('Error:', error); }); diff --git a/src/components/Partner.js b/src/components/Partner.js index d7513cf..808033d 100644 --- a/src/components/Partner.js +++ b/src/components/Partner.js @@ -64,6 +64,9 @@ import DialogTitle from '@mui/material/DialogTitle'; import { ImWarning } from "react-icons/im"; //import { FcHome} from "react-icons/fc"; +import Dropdown from 'rsuite/Dropdown'; +import 'rsuite/dist/rsuite.min.css'; + const Partner = (props) => { const { commingmenu, commingpack } = useParams(); const [myApiResponse, setmyApiResponse] = useState(""); @@ -998,7 +1001,7 @@ const Partner = (props) => { MySy Warning - {Dialog_1_message} + {Dialog_1_message} @@ -1009,8 +1012,8 @@ const Partner = (props) => { -
-
+
+
@@ -1033,6 +1036,8 @@ const Partner = (props) => { {String(part_is_partner_admin_account) !== "1" &&
{parnter_user_employee} {!parntername && Utilisateur }
} + +
Mon Compte
{String(menu) !== "infopartner" &&
MES INFORMATIONS
} @@ -1133,6 +1138,7 @@ const Partner = (props) => {
Ma config
+ {/*

{String(menu) !== "config_document" &&
   MES DOCUMENTS
} @@ -1165,6 +1171,59 @@ const Partner = (props) => {

+ */} + + + + { + + + document.getElementById('div_gauche').style.height = "1500px"; + + //document.getElementById('div_gauche').height = "1500px"; + }} + + onClose={(event) => { + + document.getElementById('div_gauche').style.height = "auto"; + + // document.getElementById('div_gauche').height = "auto"; + }} + + > + + {String(menu) !== "config_document" &&
   MES DOCUMENTS
} + {String(menu) === "config_document" &&
   MES DOCUMENTS
} +
+ + + {String(menu) !== "config_champ_specific" &&
   CHAMP SPECIFIQUE
} + {String(menu) === "config_champ_specific" &&
    CHAMP SPECIFIQUE
} +
+ + {String(menu) !== "config_technique" &&
   TECHNIQUE
} + {String(menu) === "config_technique" &&
    TECHNIQUE
} + +
+ + + {String(menu) !== "config_session_steps" &&
   SESSION ETAPE
} + {String(menu) === "config_session_steps" &&
    SESSION ETAPE
} + +
+ + + {String(menu) !== "config_jours_heures" &&
   JOURS & HEURES
} + {String(menu) === "config_jours_heures" &&
    JOURS & HEURES
} + +
+ + + +
+ +
{String(firstConnexion) === "1" && String(part_is_partner_admin_account) === "1" && @@ -1467,7 +1526,7 @@ const Partner = (props) => {
-
+
) diff --git a/src/styles/components/_partner.scss b/src/styles/components/_partner.scss index 686a32b..3193436 100644 --- a/src/styles/components/_partner.scss +++ b/src/styles/components/_partner.scss @@ -24,12 +24,13 @@ background-color: red; color: black; } - .mysy_spinner{ + + .mysy_spinner { border-radius: 5px; border: 1px solid black; opacity: 100%; } - + .label { @@ -1965,14 +1966,58 @@ height: 1.5rem; } + + .rs-dropdown-menu{ + background: transparent !important; + background-color: #104277 !important; + color: white !important; + } + .rs-dropdown-item { + color: white !important; + } + + .rs-dropdown-item-focus { + color: white !important; + } + + .rs-dropdown-toggle.rs-btn{ + background: transparent !important; + color: white !important; + } + + .rs-dropdown-menu{ + width: 100% !important; + box-shadow :none !important + } + +/* + .rs-btn { + background: transparent !important; + } + + .rs-dropdown-open { + background: green !important; + } + + .rs-bnt-default { + background: yellow !important; + } + + .rs-dropdown-menu{ + //background: transparent !important; + background-color: #104277 !important; + color: white !important; + } + */ } + // end media .hebergement_icone { width: 10%; } - // end media + .css-1wgeduv-MuiFormControl-root-MuiTextField-root { padding-top: 5px; } @@ -2012,18 +2057,18 @@ text-align: center; margin-bottom: 0.5rem !important; } - + .separator::before, .separator::after { content: ''; flex: 1; border-bottom: 1px solid #e0e0e0; } - + .separator:not(:empty)::before { margin-right: .35em; } - + .separator:not(:empty)::after { margin-left: .35em; }