diff --git a/src/components/AddClassManual.js b/src/components/AddClassManual.js index 6b86a03..55e3b63 100644 --- a/src/components/AddClassManual.js +++ b/src/components/AddClassManual.js @@ -27,6 +27,19 @@ import GestionAdministrative from "./GestionAdministrative"; import img_loading_spin from "./../mysy_img/mysy_spin_loading.gif"; import Autocomplete from '@mui/material/Autocomplete'; import { Fab } from "@material-ui/core"; +import { CiTrash } from "react-icons/ci"; +import { gridClasses } from '@mui/x-data-grid'; +import Link from '@mui/material/Link'; +import { PiDotsThree } from "react-icons/pi"; +import { DataGrid, GridToolbar, frFR } from '@mui/x-data-grid'; +import { IoAddCircleOutline, IoCloseCircleOutline } from "react-icons/io5"; + +import Dialog from '@mui/material/Dialog'; +import DialogActions from '@mui/material/DialogActions'; +import DialogContent from '@mui/material/DialogContent'; +import DialogContentText from '@mui/material/DialogContentText'; +import DialogTitle from '@mui/material/DialogTitle'; + const AddClassManual = (props) => { const history = useHistory(); @@ -71,75 +84,314 @@ const AddClassManual = (props) => { const [mots_cle_enabled, setmots_cle_enabled] = useState(""); const [zone_diffusion_enabled, setzone_diffusion_enabled] = useState(""); + function ExpandableCell_50({ value }) { + const [expanded, setExpanded] = React.useState(false); - const handleChange = (event) => { - const name = event.target.name; - const value = event.target.value; - - setmydistance(value); - setdatamodification("1"); - setmyApiResponse(); - - } - - const handleChangeSupportTraining = (event) => { - const name = event.target.name; - const value = event.target.value; - - setmytrainingsupport(value); - setdatamodification("1"); - - } - - const handleChangeDurationUnit = (event) => { - const name = event.target.name; - const value = event.target.value; - - setmytrainingdurationunit(value); - setdatamodification("1"); - - } - - const handleChangecpf = (event) => { - const name = event.target.name; - const value = event.target.value; - - setmycpf(value); - setdatamodification("1"); - - } - - const handleChangecertif = (event) => { - const name = event.target.name; - const value = event.target.value; - - setmycertif(value); - setdatamodification("1"); - - } - - const handleChangePresentiel = (event) => { - const name = event.target.name; - const value = event.target.value; - setmypresence(value); - setdatamodification("1"); - } - - const handleChangePublished = (event) => { - const value = event.target.value; - setmypublished(value); - setdatamodification("1"); + return ( + + ); } + const [selectionModel_list_unite_enseignement, setselectionModel_list_unite_enseignement] = React.useState([]); - const handleSubmit = (event) => { - event.preventDefault(); - //console.log(inputs); + const columns_list_unite_enseignement = [ + { field: 'id', headerName: 'id', hide: true }, + { field: '_id', headerName: '_id', hide: true }, + { field: 'code', headerName: 'Code', minWidth: 150, flex: 1, renderCell: (params) => , }, + { field: 'titre', headerName: 'Titre', minWidth: 150, flex: 1, renderCell: (params) => , }, + { field: 'duration_concat', headerName: 'Durée', minWidth: 150, flex: 1, renderCell: (params) => , }, + { field: 'duration', headerName: 'Durée', minWidth: 150, hide: true, flex: 1, renderCell: (params) => , }, + { field: 'duration_unite', headerName: 'Unit.', minWidth: 150, hide: true, editable: false, renderCell: (params) => , }, + { + field: "delete", headerName: 'Supprimer', + renderCell: (cellValues) => { + return ( + + + + + } + modal + nested + position="center center" + > + {close => ( +
+ +
MySy Information
+
+ {' '} + + En confirmant cette opération, l'UE définitivement supprimée de cette formation .
+ +
+
+
+ + +
+
+ +
+
+
+ )} +
+ + + ); + } + }, + + ] + + + function handleClick_delete_UE_From_Class(event, cellValues){ + Delete_Given_UE_From_Class(cellValues.row._id); } + + const [Delete_Given_UE_From_Class_api, setDelete_Given_UE_From_Class_api] = useState(); + const [Delete_Given_UE_From_Class_message, setDelete_Given_UE_From_Class_message] = useState(); + const [Delete_Given_UE_From_Class_result, setDelete_Given_UE_From_Class_result] = useState(); + function Delete_Given_UE_From_Class(local_ue_id) { + + + var form = new FormData(); + + const stored_cookie = getCookie('tokenmysypart'); + form.append("token", stored_cookie); + form.append("class_id", props.mytrainingclass['class_id']); + form.append("ue_id", local_ue_id); + + + var myurl = process.env.REACT_APP_API_URL + "myclass/api/Delete_UE_From_Class/"; + + axios.post(myurl, form).then(res => { + //console.log(" In Delete_Given_UE_From_Class res.data.status = " + res.data.status); + //console.log(" In Delete_Given_UE_From_Class res.data.message r_class = " + res.data.message); + + if (String(res.data.status) === String("true")) { + setDelete_Given_UE_From_Class_api("true"); + setDelete_Given_UE_From_Class_result(res.data.message); + Getall_Class_List_UE(); + alert(res.data.message) + } + else { + setDelete_Given_UE_From_Class_api("false"); + setDelete_Given_UE_From_Class_message(res.data.message); + + alert(res.data.message); + + } + + }).catch((error) => { + + console.warn('Delete_Given_UE_From_Class : Not good man :( mysearchtext = ' + error); + setDelete_Given_UE_From_Class_api("false"); + alert(" Impossible de supprimer l'UE "); + }) + } + + const [ue_gridline_id, setue_gridline_id] = useState(""); + + const [New_Getall_Class_List_UE_result, setNew_Getall_Class_List_UE_result] = useState([]); + + const [Getall_Class_List_UE_api, setGetall_Class_List_UE_api] = useState(); + const [Getall_Class_List_UE_message, setGetall_Class_List_UE_message] = useState(); + const [Getall_Class_List_UE_result, setGetall_Class_List_UE_result] = useState(); + function Getall_Class_List_UE(event) { + + var form = new FormData(); + + + const stored_cookie = getCookie('tokenmysypart'); + form.append("token", stored_cookie); + form.append("class_id", props.mytrainingclass['class_id']); + + var myurl = process.env.REACT_APP_API_URL + "myclass/api/Get_List_Unite_Enseignement_Of_Given_Class/"; + + setLoading(true); + + axios.post(myurl, form).then(res => { + + + setLoading(false); + if (String(res.data.status) === String("true")) { + //console.log(" In Getall_Class_List_UE res.data.status = " + res.data.status); + //console.log(" In Getall_Class_List_UE res.data.message r_class = " + res.data.message); + setGetall_Class_List_UE_api("true"); + setGetall_Class_List_UE_result(res.data.message); + + var new_data2 = []; + const new_data = res.data.message.map((x) => { + + //--- + var localid = JSON.parse(x).id; + var local_id = JSON.parse(x)._id; + var local_code = JSON.parse(x).code; + var local_titre = JSON.parse(x).titre; + + + var local_credit = JSON.parse(x).credit; + var local_pres_dist_hyp = JSON.parse(x).pres_dist_hyp; + var local_is_noted = JSON.parse(x).is_noted; + + + + //--- + var node = { + "_id": local_id, + "id": localid, + "label": local_code, + "code": local_code, + "titre": local_titre, + "credit": local_credit, + "pres_dist_hyp": local_pres_dist_hyp, + "is_noted": local_is_noted, + + }; + new_data2.push(node); + }); + + if (new_data2.length > 0) + setNew_Getall_Class_List_UE_result(new_data2); + } + else { + setGetall_Class_List_UE_api("false"); + setGetall_Class_List_UE_message(res.data.message); + alert(res.data.message); + } + + }).catch((error) => { + + setLoading(false); + console.warn('Not good man :( Getall_Class_List_UE = ', error); + setGetall_Class_List_UE_api("false"); + alert(" Impossible de recuperer la liste des UE de la formation"); + //setmyApimyApiMessage("") + }) + } + + + const [New_Getall_Partner_List_UE_result, setNew_Getall_Partner_List_UE_result] = useState([]); + + const [Getall_Partner_List_UE_api, setGetall_Partner_List_UE_api] = useState(); + const [Getall_Partner_List_UE_message, setGetall_Partner_List_UE_message] = useState(); + const [Getall_Partner_List_UE_result, setGetall_Partner_List_UE_result] = useState(); + function Getall_Partner_List_UE(event) { + + var form = new FormData(); + + + const stored_cookie = getCookie('tokenmysypart'); + form.append("token", stored_cookie); + + var myurl = process.env.REACT_APP_API_URL + "myclass/api/Get_List_Unite_Enseignement_no_filter/"; + + setLoading(true); + + axios.post(myurl, form).then(res => { + + + setLoading(false); + if (String(res.data.status) === String("true")) { + //console.log(" In Getall_Partner_List_UE res.data.status = " + res.data.status); + //console.log(" In Getall_Partner_List_UE res.data.message r_class = " + res.data.message); + setGetall_Partner_List_UE_api("true"); + setGetall_Partner_List_UE_result(res.data.message); + + var new_data2 = []; + const new_data = res.data.message.map((x) => { + + //--- + var localid = JSON.parse(x).id; + var local_id = JSON.parse(x)._id; + var local_code = JSON.parse(x).code; + var local_titre = JSON.parse(x).titre; + + + var local_credit = JSON.parse(x).credit; + var local_pres_dist_hyp = JSON.parse(x).pres_dist_hyp; + var local_is_noted = JSON.parse(x).is_noted; + + + + //--- + var node = { + "_id": local_id, + "id": localid, + "label": local_code, + "code": local_code, + "titre": local_titre, + "credit": local_credit, + "pres_dist_hyp": local_pres_dist_hyp, + "is_noted": local_is_noted, + + }; + new_data2.push(node); + }); + + if (new_data2.length > 0) + setNew_Getall_Partner_List_UE_result(new_data2); + } + else { + setGetall_Partner_List_UE_api("false"); + setGetall_Partner_List_UE_message(res.data.message); + alert(res.data.message); + } + + }).catch((error) => { + + setLoading(false); + console.warn('Not good man :( Getall_Partner_List_UE = ', error); + setGetall_Partner_List_UE_api("false"); + alert(" Impossible de recuperer la liste des UE de la formation"); + //setmyApimyApiMessage("") + }) + } + + const presentiel = [ { value: '1', @@ -281,9 +533,6 @@ const AddClassManual = (props) => { function DeleteClass(event) { - - - var code = document.getElementsByName("external_code")[0].value; var server_address = "127.0.0.1"; //var server_address = "89.156.84.196"; @@ -457,6 +706,7 @@ const AddClassManual = (props) => { Get_List_Domaines(); Get_List_Metiers(); + fillfield(); if (props.mytrainingclass['class_external_code']) { getClassImage(); @@ -464,6 +714,8 @@ const AddClassManual = (props) => { setplus_produit_enabled(props.mytrainingclass['plus_produit']); setmots_cle_enabled(props.mytrainingclass['mots_cle']); setzone_diffusion_enabled(props.mytrainingclass['zone_diffusion']); + Getall_Class_List_UE(); + Getall_Partner_List_UE(); } setdatamodification("0"); @@ -473,6 +725,8 @@ const AddClassManual = (props) => { behavior: "smooth", }); + submenu_detail_formation(); + }, [props.mytrainingclass['ref'],]); @@ -536,13 +790,18 @@ const AddClassManual = (props) => { setdisplayedinternalurl(mylocaltraining.internal_url); + + if (mylocaltraining._id) { setselected_class_id(mylocaltraining._id); Get_List_Of_All_PJ(mylocaltraining._id); } - document.getElementsByName("external_code")[0].value = mylocaltraining.external_code; - document.getElementsByName("title")[0].value = mylocaltraining.title; + //document.getElementsByName("external_code")[0].value = mylocaltraining.external_code; + setp_detail_external_code(mylocaltraining.external_code); + setp_detail_title(mylocaltraining.title); + + //document.getElementsByName("title")[0].value = mylocaltraining.title; @@ -605,10 +864,14 @@ const AddClassManual = (props) => { } if (mylocaltraining.presentiel.distantiel) { + console.log(" ### distantiel distantiel distantiel = ", mylocaltraining.presentiel.distantiel); + setmydistance(mylocaltraining.presentiel.distantiel); var result2 = presentiel.filter((local_mymanager) => local_mymanager.value === String((mylocaltraining.presentiel.distantiel))) - if (result2[0]) + if (result2[0]){ setmydistance_label(result2[0].label); + console.log(" IN DISTANTIEL : result2[0].label = ", result2[0].label) + } } else { setmydistance("0"); setmydistance_label("Non"); @@ -616,10 +879,15 @@ const AddClassManual = (props) => { if (mylocaltraining.presentiel.presentiel) { - setmypresence(mylocaltraining.presentiel.distantiel); + + console.log(" ### presentiel presentiel presentiel = ", mylocaltraining.presentiel.presentiel); + setmypresence(mylocaltraining.presentiel.presentiel); var result2 = presentiel.filter((local_mymanager) => local_mymanager.value === String((mylocaltraining.presentiel.presentiel))) - if (result2[0]) + if (result2[0]){ setmypresence_label(result2[0].label); + + console.log(" IN PRESEINTIEL : result2[0].label = ", result2[0].label) + } } else { setmypresence("0"); setmypresence_label("Non"); @@ -701,10 +969,12 @@ const AddClassManual = (props) => { } - if (mylocaltraining.price) + if (mylocaltraining.price) { document.getElementsByName("price")[0].value = mylocaltraining.price; + setp_detail_price(mylocaltraining.price); + } else - document.getElementsByName("price")[0].value = ""; + setp_detail_price(""); if (mylocaltraining.domaine) { @@ -724,10 +994,13 @@ const AddClassManual = (props) => { - if (mylocaltraining.duration) - document.getElementsByName("duree")[0].value = mylocaltraining.duration; + if (mylocaltraining.duration) { + // document.getElementsByName("duree")[0].value = mylocaltraining.duration; + setp_detail_duree(mylocaltraining.note); + } else - document.getElementsByName("duree")[0].value = ""; + setp_detail_duree(""); + //document.getElementsByName("mots_cle")[0].value = ""; if (mylocaltraining.mots_cle) { @@ -739,8 +1012,12 @@ const AddClassManual = (props) => { document.getElementsByName("note")[0].value = ""; - if (mylocaltraining.note) - document.getElementsByName("note")[0].value = mylocaltraining.note; + if (mylocaltraining.note) { + //document.getElementsByName("note")[0].value = mylocaltraining.note; + setp_detail_note(mylocaltraining.note); + } else { + setp_detail_note(""); + } //document.getElementsByName("plus_produit")[0].value = ""; if (mylocaltraining.plus_produit) { @@ -749,21 +1026,37 @@ const AddClassManual = (props) => { } document.getElementsByName("url")[0].value = ""; - if (mylocaltraining.url) - document.getElementsByName("url")[0].value = mylocaltraining.url; + if (mylocaltraining.url) { + //document.getElementsByName("url")[0].value = mylocaltraining.url; + setp_detail_url(mylocaltraining.note); + } else { + setp_detail_url(""); + } document.getElementsByName("lms_class_code")[0].value = ""; - if (mylocaltraining.lms_class_code) - document.getElementsByName("lms_class_code")[0].value = mylocaltraining.lms_class_code; + if (mylocaltraining.lms_class_code) { + //document.getElementsByName("lms_class_code")[0].value = mylocaltraining.lms_class_code; + setp_detail_lms_class_code(mylocaltraining.note); + } else { + setp_detail_lms_class_code(""); + } document.getElementsByName("class_inscription_url")[0].value = ""; - if (mylocaltraining.class_inscription_url) - document.getElementsByName("class_inscription_url")[0].value = mylocaltraining.class_inscription_url; + if (mylocaltraining.class_inscription_url) { + //document.getElementsByName("class_inscription_url")[0].value = mylocaltraining.class_inscription_url; + setp_detail_class_inscription_url(mylocaltraining.note); + } else { + setp_detail_class_inscription_url(""); + } document.getElementsByName("class_banner_img_url")[0].value = ""; - if (mylocaltraining.img_banner_detail_class) - document.getElementsByName("class_banner_img_url")[0].value = mylocaltraining.img_banner_detail_class; + if (mylocaltraining.img_banner_detail_class) { + //document.getElementsByName("class_banner_img_url")[0].value = mylocaltraining.img_banner_detail_class; + setp_detail_class_banner_img_url(mylocaltraining.note); + } else { + setp_detail_class_banner_img_url(""); + } //document.getElementsByName("zone_diffusion")[0].value = ""; if (mylocaltraining.zone_diffusion_str) { @@ -1071,6 +1364,9 @@ const AddClassManual = (props) => { const stored_cookie = getCookie('tokenmysypart'); formData.append("token", stored_cookie); + formData.append("class_id", props.mytrainingclass['class_id']); + + formData.append('external_code', code); formData.append('title', title); @@ -1165,7 +1461,7 @@ const AddClassManual = (props) => { if (String(result['status']) === "true") { var myclass_id = String(result['class_id']); - console.log(" ####GRRRRR myclass_id = ", myclass_id); + if (String(userimgclassprofilchanged) === "1") sendClassImage(myclass_id); @@ -1218,7 +1514,7 @@ const AddClassManual = (props) => { .then((data) => data.json()) .then((data) => { setLoading(false); - console.log(' IN Get_List_Metiers Success:', data['message'], "data['status'] = ", data['status']); + // console.log(' IN Get_List_Metiers Success:', data['message'], "data['status'] = ", data['status']); if (String(data['status']) === String("true")) { setGet_List_Metiers_api("true"); @@ -2244,7 +2540,158 @@ const AddClassManual = (props) => { // -- end gestion pièces jointes + const [submenu, setsubmenu] = useState(""); + function submenu_color_management(current_menu) { + const list_sous_menu = ["detail_formation", "unite_enseignement", "admission", "piece_jointe",] + + for (let i = 0; i < list_sous_menu.length; i++) { + + var sous_menu = list_sous_menu[i]; + if (String(sous_menu) !== current_menu) { + if (document.getElementById(sous_menu)) { + document.getElementById(sous_menu).style.backgroundColor = "#d8edfc"; + document.getElementById(sous_menu).style.color = "black"; + document.getElementById(sous_menu).style.fontWeight = "normal"; + } + } + + } + + if (document.getElementById(current_menu)) { + document.getElementById(current_menu).style.backgroundColor = "#104277"; + document.getElementById(current_menu).style.color = "white"; + document.getElementById(current_menu).style.fontWeight = "bold"; + } + + } + + + function submenu_detail_formation() { + setsubmenu("detail_formation"); + submenu_color_management("detail_formation"); + } + + function submenu_unite_enseignement() { + setsubmenu("unite_enseignement"); + submenu_color_management("unite_enseignement"); + } + + function submenu_admission() { + setsubmenu("admission"); + submenu_color_management("admission"); + } + + + function submenu_piece_jointe() { + setsubmenu("piece_jointe"); + submenu_color_management("piece_jointe"); + } + + + const myRef = useRef(null) + + const [p_detail_external_code, setp_detail_external_code] = useState(""); + const [p_detail_title, setp_detail_title] = useState(""); + const [p_detail_duree, setp_detail_duree] = useState(""); + const [p_detail_url, setp_detail_url] = useState(""); + const [p_detail_lms_class_code, setp_detail_lms_class_code] = useState(""); + const [p_detail_class_inscription_url, setp_detail_class_inscription_url] = useState(""); + const [p_detail_class_banner_img_url, setp_detail_class_banner_img_url] = useState(""); + const [p_detail_note, setp_detail_note] = useState(""); + const [p_detail_price, setp_detail_price] = useState(""); + + const [selected_ue_id, setselected_ue_id] = useState(""); + const [selected_ue_credit, setselected_ue_credit] = useState(""); + + const [selected_ue_is_noted, setselected_ue_is_noted] = useState(""); + + const [selected_ue_pres_dist_hyp, setselected_ue_pres_dist_hyp] = useState(""); + + const New_Option_Is_Noted = [ + { "id": "1", "label": "Oui", "value": "1" }, + { "id": "0", "label": "Non", "value": "0" }, + { "id": "", "label": "", "value": "" }, + ] + + + const New_Option_pres_dist_hyp = [ + { "id": "1", "label": "Distanciel", "value": "1" }, + { "id": "2", "label": "Hybride", "value": "2" }, + { "id": "0", "label": "Présentiel", "value": "0" }, + { "id": "", "label": "", "value": "" }, + ] + + const [Dialog_Unite_Enseignement_open, setDialog_Unite_Enseignement_open] = React.useState(false); + const Dialog_Unite_Enseignement_handleClose = () => { + setDialog_Unite_Enseignement_open(false); + setselected_ue_id(""); + setselected_ue_credit(""); + setselected_ue_is_noted(""); + setselected_ue_pres_dist_hyp(""); + + }; + + const Dialog_Unite_Enseignement_handleClose_buton = () => { + setDialog_Unite_Enseignement_open(false); + setselected_ue_id(""); + setselected_ue_credit(""); + setselected_ue_is_noted(""); + setselected_ue_pres_dist_hyp(""); + }; + + const [Dialog_1_message, setDialog_1_message] = React.useState(false); + + const [Add_Update_UE_To_Class_api, setAdd_Update_UE_To_Class_api] = useState(); + const [Add_Update_UE_To_Class_message, setAdd_Update_UE_To_Class_message] = useState(); + const [Add_Update_UE_To_Class_result, setAdd_Update_UE_To_Class_result] = useState(); + function Add_Update_UE_To_Class() { + setLoading(true); + var form = new FormData(); + //form.append("token","K3cw63eKokKSbV4spjQ48SUNnfy80yrXfA"); + + + const stored_cookie = getCookie('tokenmysypart'); + form.append("token", stored_cookie); + + form.append("class_id", props.mytrainingclass['class_id']); + form.append("ue_id", selected_ue_id); + form.append("credit", selected_ue_credit); + form.append("pres_dist_hyp", selected_ue_pres_dist_hyp); + form.append("is_noted", selected_ue_is_noted); + + var myurl = process.env.REACT_APP_API_URL + "myclass/api/Add_Update_UE_To_Class/"; + + + axios.post(myurl, form).then(res => { + setLoading(false); + // console.log(" In Add_Update_UE_To_Class res.data.status = " + res.data.status); + //console.log(" In Add_Update_UE_To_Class res.data.message r_class = " + res.data.message); + + if (String(res.data.status) === String("true")) { + setAdd_Update_UE_To_Class_api("true"); + setAdd_Update_UE_To_Class_result(res.data.message); + Getall_Class_List_UE(); + Dialog_Unite_Enseignement_handleClose_buton(); + alert(res.data.message); + + + + } + else { + setAdd_Update_UE_To_Class_api("false"); + setAdd_Update_UE_To_Class_message(res.data.message); + alert(res.data.message); + } + + }).catch((error) => { + setLoading(false); + console.warn('Add_Update_UE_To_Class : Not good man :( mysearchtext = ' + error); + setAdd_Update_UE_To_Class_api("false"); + alert(" Impossible d'ajouter l'UE à la formation "); + + }) + } return (
@@ -2252,6 +2699,151 @@ const AddClassManual = (props) => {
} + {/* Dialog pour gerer les Unite_Enseignement */} + + + MySy Information + + + {Dialog_1_message} + + + +
Choisir une unité d'enseignement + { + if (value && value._id) { + + setselected_ue_id(value._id); + + } else { + setselected_ue_id(""); + } + }} + + renderInput={(params) => + } + /> + +
+ +
Crédits + { + setselected_ue_credit(e.target.value); + } + } + + /> + +
+ + +
Est Evalué
+ (data).value === String(p_detail_tuteur1_civilite))[0].label} + + fullWidth + + options={New_Option_Is_Noted} + onChange={(event, value) => { + if (value && value.value) { + setselected_ue_is_noted(value.value); + } else { + setselected_ue_is_noted(""); + } + }} + renderInput={(params) => + } + /> + + +
+ +
Mode d'animation
+ (data).value === String(p_detail_tuteur1_civilite))[0].label} + + fullWidth + + options={New_Option_pres_dist_hyp} + onChange={(event, value) => { + if (value && value.value) { + setselected_ue_pres_dist_hyp(value.value); + } else { + setselected_ue_pres_dist_hyp(""); + } + }} + renderInput={(params) => + } + /> + + +
+ +
+ + +
+
+ + + + + +
+ + + +
+ +
+
+ +
+ +
+ {/* FIN Dialog pour gerer les Unite_Enseignement */} + + {String(props.mytrainingclass.ref).trim() !== "" &&
@@ -2283,712 +2875,749 @@ const AddClassManual = (props) => { -
} +
+ +
-
- -
- -
- -
- - - {/*
- { - setp_formateur_id(e.target.value); - DataUpdated(); - - } - } - > - {Getall_Training_Employee_No_Filter_result && - Getall_Training_Employee_No_Filter_result.map((myclient) => ( - - {JSON.parse(myclient).nom}  {JSON.parse(myclient).prenom} - - - ))} - -
*/} - - -
- { - if (value && value._id) { - setp_formateur_id(value._id); - setp_formateur_label(value.label) - - DataUpdated(); - - } - }} - - renderInput={(params) => - } - /> - - - -
- - {/*String(datamodification) === "1" &&
- - -
*/} - - -
- - { - if (value && value.value) { - - setmycpf(value.value); - setmycpf_label(value.label); - setdatamodification("1"); - - } - }} - - renderInput={(params) => - } - /> - - {/* - {cpf.map((option) => ( - - {option.label}  
-
- ))} -
*/} -
- -
- - { - if (value && value.value) { - - setmycertif(value.value); - setmycertif_label(value.label); - setdatamodification("1"); - - } - }} - - renderInput={(params) => - } - /> - - {/* - - {certif.map((option) => ( - - {option.label}  
-
- ))} -
- */} -
- -
- { - if (value && value.code) { - setp_class_level(value.code); - setp_class_level_label(value.description) - DataUpdated(); - - } - }} - - renderInput={(params) => - } - /> -
- - -
- - { - if (value && value.value) { - console.log(" value = ", value); - setmypublished(value.value); - setmypublished_label(value.label); - setdatamodification("1"); - - } - }} - - renderInput={(params) => - } - /> - - -
- -
- - { - if (value && value.value) { - - setmydistance(value.value); - setmydistance_label(value.label); - setdatamodification("1"); - - } - }} - - renderInput={(params) => - } - /> - - {/* - {presentiel.map((option) => ( - - {option.label}  
-
- ))} -
*/} -
- -
- - { - if (value && value.value) { - - setmypresence(value.value); - setmypresence_label(value.label); - setdatamodification("1"); - - } - }} - - renderInput={(params) => - } - /> - {/* - {presentiel.map((option) => ( - - {option.label}  
-
- ))} -
**/} -
- - -
- - { - if (value && value.value) { - - setmytrainingsupport(value.value); - setdatamodification("1"); - setmytrainingsupport_label(value.label) - - } - }} - - renderInput={(params) => - } - /> - {/* - {support_training_list.map((option) => ( - - {option.label}   - - ))} - */} -
- - - {/*}
- - {Get_List_Domaines_result && Get_List_Domaines_result.map((option) => ( - - {option}  
-
- ))} -
- -
*/} - -
- { - if (value && value.domaine) { - setmytrainingdomaine(value.domaine); - setmytrainingmetier("-"); - setdatamodification("1"); - } else { - setmytrainingdomaine("-"); - setmytrainingmetier("-"); - } - }} - - renderInput={(params) => - } - /> - -
- - {mytrainingdomaine && String(mytrainingdomaine).trim() !== "-" &&
- local_mymanager.domaine === String(String(mytrainingdomaine).trim()))} - value={mytrainingmetier} - onChange={(event, value) => { - - - if (value && value.metier) { - - setmytrainingmetier(value.metier); - setdatamodification("1"); - } - }} - - renderInput={(params) => - } - /> - -
} - - {(!mytrainingdomaine || String(mytrainingdomaine).trim().length <= 0 || String(mytrainingdomaine).trim() === "-") &&
- { - - - if (value && value.metier) { - - setmytrainingmetier(value.metier); - setdatamodification("1"); - } - }} - - renderInput={(params) => - } - /> - -
} - - {/*
- - {Get_List_Metiers_result && Get_List_Metiers_result.map((option) => ( - - {option}  
-
- ))} -
-
*/} - -
- -
- -
- - -
- - -
- { - if (value && value.value) { - - setmytrainingdurationunit(value.value); - setdatamodification("1"); + {props.formation_initiale && String(props.formation_initiale) === "1" && +
+ + + + +
} +
+ + + {submenu && String(submenu) === "unite_enseignement" && +
+
+   + + { + setselectionModel_list_unite_enseignement(newSelectionModel); + /*if (newSelectionModel.length === 1) + handleClick_edit_session_From_Line(newSelectionModel);*/ + if (newSelectionModel.length !== 1) { + + } + }} + selectionModel={selectionModel_list_unite_enseignement} + + localeText={frFR.components.MuiDataGrid.defaultProps.localeText} + rows={Getall_Class_List_UE_result.map((item, index) => ( + { + id: index, + _id: JSON.parse(item)._id, + code: JSON.parse(item).code, + titre: JSON.parse(item).titre, + duration: JSON.parse(item).duration, + duration_unite: JSON.parse(item).duration_unite, + duration_concat: JSON.parse(item).duration_concat, + + } + ))} + + columns={columns_list_unite_enseignement} + pageSize={10} + className="datagridclass" + + /* onRowDoubleClick={(newSelectionModel) => { + setgridline_id(newSelectionModel.row.id); + + setsequence_gridline_id(""); + + setaddOneSession("0"); + setEdite_session("0"); + setsessionChanged(false); + //handleClick_edit_session_From_Line(newSelectionModel.row.id); + + setselected_session_id(newSelectionModel.row._id); + + setsession_selected_row_id(newSelectionModel.row.id); + + setDialog_2_message(String(JSON.parse(rowss[newSelectionModel.row.id]).title)); + setDialog_2_open(true); + + }}*/ + + + + rowsPerPageOptions={[10]} + disableSelectionOnClick + components={{ + Toolbar: GridToolbar, + }} + //sx={datagridSx} + getCellClassName={(params) => { + + + + + + // Pour la gestion de la couleur de zone double cliquée + if (String(params.row.id) === String(ue_gridline_id)) { + return 'line--statut--selected'; + } + else if (parseInt(String(params.row.id)) % 2 === 0) { + return 'line--statut--pair'; + } + else if (parseInt(String(params.row.id)) % 2 !== 0) { + return 'line--statut--impair'; + } + + }} + + getRowClassName={(params) => { + + // Pour la gestion de la couleur de zone double cliquée + if (String(params.row.id) === String(ue_gridline_id)) { + + return 'line--statut--selected'; + } + else if (parseInt(String(params.row.id)) % 2 === 0) { + return 'line--statut--pair'; + } + else if (parseInt(String(params.row.id)) % 2 !== 0) { + return 'line--statut--impair'; + } + + }} + getEstimatedRowHeight={() => 200} + getRowHeight={() => "auto"} + sx={{ + "& .MuiDataGrid-cellContent": { + minHeight: 50, + + }, + [`& .${gridClasses.cell}`]: { + py: 1, + }, + }} + + + /> + +
+
+ +
+ +
+
+
+
} + {submenu && String(submenu) === "admission" &&
admission
} + {submenu && String(submenu) === "piece_jointe" &&
piece_jointe
} + + {submenu && String(submenu) === "detail_formation" && +
+ +
+ { + setp_detail_title(e.target.value); + } + } + /> +
- + + + + +
+ + { + if (value && value.value) { + + setmycpf(value.value); + setmycpf_label(value.label); + setdatamodification("1"); + + } + }} + + renderInput={(params) => + } + /> + +
+ +
+ + { + if (value && value.value) { + + setmycertif(value.value); + setmycertif_label(value.label); + setdatamodification("1"); + + } + }} + + renderInput={(params) => + } + /> + + +
+ +
+ { + if (value && value.code) { + setp_class_level(value.code); + setp_class_level_label(value.description) + DataUpdated(); + + } + }} + + renderInput={(params) => + } + /> +
+ + +
+ + { + if (value && value.value) { + console.log(" value = ", value); + setmypublished(value.value); + setmypublished_label(value.label); + setdatamodification("1"); + + } + }} + + renderInput={(params) => + } + /> + + +
+ +
+ + { + if (value && value.value) { + + + + setmypresence(value.value); + setmypresence_label(value.label); + setdatamodification("1"); + } + }} + + renderInput={(params) => + } + /> + + +
+ +
+ + { + if (value && value.value) { + + setmydistance(value.value); + setmydistance_label(value.label); + setdatamodification("1"); + + + } + }} + + renderInput={(params) => + } + /> + +
+ + +
+ + { + if (value && value.value) { + + setmytrainingsupport(value.value); + setdatamodification("1"); + setmytrainingsupport_label(value.label) + + } + }} + + renderInput={(params) => + } + /> + +
+ + + + +
+ { + if (value && value.domaine) { + setmytrainingdomaine(value.domaine); + setmytrainingmetier("-"); + setdatamodification("1"); + } else { + setmytrainingdomaine("-"); + setmytrainingmetier("-"); + } + }} + + renderInput={(params) => + } + /> + +
+ + {mytrainingdomaine && String(mytrainingdomaine).trim() !== "-" &&
+ local_mymanager.domaine === String(String(mytrainingdomaine).trim()))} + value={mytrainingmetier} + onChange={(event, value) => { + + + if (value && value.metier) { + + setmytrainingmetier(value.metier); + setdatamodification("1"); + } + }} + + renderInput={(params) => + } + /> + +
} + + {(!mytrainingdomaine || String(mytrainingdomaine).trim().length <= 0 || String(mytrainingdomaine).trim() === "-") &&
+ { + + + if (value && value.metier) { + + setmytrainingmetier(value.metier); + setdatamodification("1"); + } + }} + + renderInput={(params) => + } + /> + +
} + + + +
+ { + setp_detail_price(e.target.value); + } + } + /> +
+ +
+ + { + setp_detail_duree(e.target.value); + } + } + /> +
+ +
+
+ { + if (value && value.value) { + + setmytrainingdurationunit(value.value); + setdatamodification("1"); + + } + }} + + renderInput={(params) => + } + /> + + +
+
+ +
+ { + setp_detail_url(e.target.value); + } + } + /> +
+ +
+ { + setp_detail_lms_class_code(e.target.value); + } + } + /> +
+ + +
+ { + setp_detail_class_inscription_url(e.target.value); + } + } + /> +
+ + + +
+ + - - -
- - -
- -
- - {/* -- début champs specifiques **/} -
-
-
-
Vos champs spécifiques
- - {rows_champs_specifics && - rows_champs_specifics.map((champ_spec) => ( - -
- {String(JSON.parse(champ_spec).field_type) === "float" && { - change_champs_spec_handle(e.target.value); - //setEmployee_data_changed("1"); - }} - />} - - {String(JSON.parse(champ_spec).field_type) === "string" && { - change_champs_spec_handle(e.target.value); - //setEmployee_data_changed("1"); - }} - />} + setp_detail_class_banner_img_url(e.target.value); + } + } + /> + +
-
- ))} -
+
+ { + setp_detail_note(e.target.value); + } + } + /> +
-
- {/* -- end champs specifiques **/} + {/* -- début champs specifiques **/} +
+
+
+
Vos champs spécifiques
+ + {rows_champs_specifics && + rows_champs_specifics.map((champ_spec) => ( + +
+ {String(JSON.parse(champ_spec).field_type) === "float" && { + change_champs_spec_handle(e.target.value); + //setEmployee_data_changed("1"); + }} + />} + + {String(JSON.parse(champ_spec).field_type) === "string" && { + change_champs_spec_handle(e.target.value); + //setEmployee_data_changed("1"); + }} + />} + +
+ ))} + +
+ +
+ {/* -- end champs specifiques **/} + +
} + +
{String(datamodification) === String("1") &&
/!\ Pensez à enregistrer les modifications
diff --git a/src/components/DisplayPartnerSession.js b/src/components/DisplayPartnerSession.js index bdfcae1..3e01c2a 100644 --- a/src/components/DisplayPartnerSession.js +++ b/src/components/DisplayPartnerSession.js @@ -1952,8 +1952,6 @@ const DisplayPartnerSession = (props) => { GetListePreinscrit(selected_session_id, selected_internal_url); submenu_color_management("preinscrit"); - - } function submenu_inscrit() { @@ -1996,8 +1994,7 @@ const DisplayPartnerSession = (props) => { setsubmenu("emargement"); submenu_color_management("emargement"); - - + } @@ -2070,8 +2067,6 @@ const DisplayPartnerSession = (props) => { submenu_color_management("attestation"); - - GetListeEvaluation(selected_session_id); } @@ -14522,31 +14517,7 @@ const DisplayPartnerSession = (props) => { } /> - {/* { - setp_one_detail_type_apprenant(e.target.value); - } - } - - > - Autre   - Salariés   - Apprentis   - Particuliers   - Rech. Emploi   - - */} +
{/* -- début champs specifiques **/} @@ -14797,7 +14768,8 @@ const DisplayPartnerSession = (props) => {
}
- {String(addOneParticipant) !== "1" && selected_code_session && selected_internal_url &&
+ {String(addOneParticipant) !== "1" && selected_code_session && selected_internal_url && +
@@ -15093,26 +15046,7 @@ const DisplayPartnerSession = (props) => { } /> - {/* setp_one_civilite_part(e.target.value)} - - > - Mme.   - M.   - Neutre   - - - */} +
@@ -16304,7 +16238,8 @@ const DisplayPartnerSession = (props) => {
- {String(participant_data_edit_mode) === "1" &&
+ {String(participant_data_edit_mode) === "1" && +
@@ -17022,7 +16957,15 @@ const DisplayPartnerSession = (props) => { + internal_url={selected_internal_url} + + submenu_emargement={submenu_emargement} + submenu_evaluation={submenu_evaluation} + submenu_attestation={submenu_attestation} + submenu_q_positionnement={submenu_q_positionnement} + + + />
} diff --git a/src/components/DisplayPartnerTrainingsPagination.js b/src/components/DisplayPartnerTrainingsPagination.js index f578c56..464140f 100644 --- a/src/components/DisplayPartnerTrainingsPagination.js +++ b/src/components/DisplayPartnerTrainingsPagination.js @@ -44,7 +44,7 @@ import { PiDotsThree } from "react-icons/pi"; import { IoAddCircleOutline, IoCloseCircleOutline } from "react-icons/io5"; const DistplayPartnerTraningsPage = (props) => { - + const history = useHistory(); const [myApiResponse, setmyApiResponse] = useState("false"); const filters = [ @@ -56,6 +56,10 @@ const DistplayPartnerTraningsPage = (props) => { const [selectedfilt2, setselectedfilt2] = useState(""); const [selectedfilt3, setselectedfilt3] = useState(""); const [reftrainingtoupdate, setreftrainingtoupdate] = useState(); + + const [classidtrainingtoupdate, setclassidtrainingtoupdate] = useState(); + + const [externalcodetraining_toupdate, setexternalcodetraining_toupdate] = useState(); const [updatetraining, setupdatetraining] = useState(false); const [createtraining, setcreatetraining] = useState(false); @@ -712,6 +716,9 @@ const DistplayPartnerTraningsPage = (props) => { function Edittraining(event, cellValues) { + + setclassidtrainingtoupdate(cellValues.row._id); + setreftrainingtoupdate(cellValues.row.internal_url); setexternalcodetraining_toupdate(cellValues.row.external_code); setupdatetraining(true); @@ -1615,8 +1622,14 @@ const DistplayPartnerTraningsPage = (props) => {
+ 'ref': reftrainingtoupdate, 'class_external_code': externalcodetraining_toupdate, + 'class_id':classidtrainingtoupdate + + }} ispending={props.ispending} currentpack={props.currentpack} closeTrainingForm={closeTrainingForm} + rows_champs_specifics={rows_champs_specifics} + formation_initiale={props.formation_initiale} + + />
@@ -2044,7 +2057,7 @@ const DistplayPartnerTraningsPage = (props) => { var al = JSON.parse(rowss[newSelectionModel.row.id]) setselected_row_data_json(JSON.parse(rowss[newSelectionModel.row.id])); - + setclassidtrainingtoupdate(newSelectionModel.row._id); setreftrainingtoupdate(newSelectionModel.row.internal_url); setexternalcodetraining_toupdate(newSelectionModel.row.external_code); diff --git a/src/components/DisplayPartnerUnite_Enseignement.js b/src/components/DisplayPartnerUnite_Enseignement.js new file mode 100644 index 0000000..76410ff --- /dev/null +++ b/src/components/DisplayPartnerUnite_Enseignement.js @@ -0,0 +1,1773 @@ +import React, { useRef, useState, useEffect } from "react"; +import TextField from '@mui/material/TextField'; +import MenuItem from '@mui/material/MenuItem'; +import 'react-confirm-alert/src/react-confirm-alert.css'; // Import css +import Button from '@mui/material/Button'; +import axios from "axios"; +import { getCookie, setCookie } from 'react-use-cookie'; +import { useHistory } from "react-router-dom"; +import CheckOut from "./CheckOut"; +import { DataGrid, GridToolbar, frFR } from '@mui/x-data-grid'; +import "react-draft-wysiwyg/dist/react-draft-wysiwyg.css"; +import { Editor } from '@tinymce/tinymce-react'; +import parse from 'html-react-parser'; +import { FcViewDetails, FcDisapprove } from "react-icons/fc"; +import 'react-tooltip/dist/react-tooltip.css' +import { Tooltip } from 'react-tooltip' +import add_plus from "../mysy_img/plus.png"; +import excel_icone from "../mysy_img/excel_icone.png"; +import participants from "../mysy_img/participants.png"; +import fileDownload from 'js-file-download' +import Popup from 'reactjs-popup'; +import Autocomplete from '@mui/material/Autocomplete'; +import 'reactjs-popup/dist/index.css'; +import { FcCancel, FcApproval, FcAcceptDatabase, FcPrint } from "react-icons/fc"; +import DatePicker from "react-datepicker"; +import "react-datepicker/dist/react-datepicker.css"; +import { format } from 'date-fns' +import moment from "moment"; +import InputAdornment from '@mui/material/InputAdornment'; +import { AiFillCloseCircle } from "react-icons/ai"; +import Box from '@mui/material/Box'; +import { Typography, LinearProgress, sliderClasses } from '@mui/material'; +import styled from 'styled-components'; +import { CiTrash } from "react-icons/ci"; +import { MdAddCircleOutline, MdRemoveCircleOutline } from "react-icons/md"; +import Dialog from '@mui/material/Dialog'; +import DialogActions from '@mui/material/DialogActions'; +import DialogContent from '@mui/material/DialogContent'; +import DialogContentText from '@mui/material/DialogContentText'; +import DialogTitle from '@mui/material/DialogTitle'; +import { TransitionProps } from '@mui/material/transitions'; +import img_loading_spin from "./../mysy_img/mysy_spin_loading.gif"; +import { IoAddCircleOutline, IoCloseCircleOutline } from "react-icons/io5"; +import { gridClasses } from '@mui/x-data-grid'; + +const DisplayPartnerUnite_Enseignement = (props) => { + const history = useHistory(); + const [submenu, setsubmenu] = useState(""); + const [rowss, setRows] = useState([]); + const [selectionModel, setSelectionModel] = React.useState([]); + + var date_today_90j = new Date(); + date_today_90j.setDate(date_today_90j.getDate() + 90); + + const [p_filtre1, setp_filtre1] = useState(); + const [p_filtre1_value, setp_filtre1_value] = useState(); + + const [p_filtre2, setp_filtre2] = useState(); + const [p_filtre2_value, setp_filtre2_value] = useState(); + + const [isLoading, setLoading] = useState(); + + const [gridline_id, setgridline_id] = useState(""); + + const columns = [ + { field: '_id', headerName: '_id', hide: true }, + { field: 'id', headerName: 'id', hide: true }, + { field: 'code', headerName: 'Code', flex: 1, hide: false, editable: false }, + { field: 'titre', headerName: 'Titre', flex: 1, hide: false, editable: false }, + { field: 'duration_concat', headerName: 'Durée', flex: 1, hide: true, editable: false }, + { field: 'duration', headerName: 'Durée', flex: 1, hide: true, editable: false }, + { field: 'duration_unite', headerName: 'Unit.', flex: 1, hide: true, editable: false }, + + + { + field: "delete", headerName: 'Supprimer', + renderCell: (cellValues) => { + return ( + + + + + } + modal + nested + position="center center" + > + {close => ( +
+ +
MySy Information
+
+ {' '} + + En confirmant cette opération, l'UE sera définitivement supprimée.
+ +
+
+
+ + +
+
+ +
+
+
+ )} +
+ + + ); + } + } + + ] + + function handleClick_delete(event, cellValues) { + + Delete_Given_UE(cellValues.row._id); + } + + const [Delete_Given_UE_api, setDelete_Given_UE_api] = useState(); + const [Delete_Given_UE_message, setDelete_Given_UE_message] = useState(); + const [Delete_Given_UE_result, setDelete_Given_UE_result] = useState(); + function Delete_Given_UE(local_ue_id) { + + + var form = new FormData(); + + const stored_cookie = getCookie('tokenmysypart'); + form.append("token", stored_cookie); + form.append("_id", local_ue_id); + + + var myurl = process.env.REACT_APP_API_URL + "myclass/api/Delete_Given_Unite_Enseignement/"; + + axios.post(myurl, form).then(res => { + //console.log(" In Delete_Given_UE res.data.status = " + res.data.status); + //console.log(" In Delete_Given_UE res.data.message r_class = " + res.data.message); + + if (String(res.data.status) === String("true")) { + setDelete_Given_UE_api("true"); + setDelete_Given_UE_result(res.data.message); + Getall_Parter_Unite_Enseignement(); + alert(" La mise à jour été correctement faite.") + } + else { + setDelete_Given_UE_api("false"); + setDelete_Given_UE_message(res.data.message); + + alert(res.data.message); + + } + + }).catch((error) => { + + console.warn('Delete_Given_UE : Not good man :( mysearchtext = ' + error); + setDelete_Given_UE_api("false"); + alert(" Impossible de supprimer l'UE "); + }) + } + + const myRef = useRef(null) + + + const myRef_head = useRef(null); + const [selected_id, setselected_id] = useState(""); + + const [add_one_ue, setadd_one_ue] = useState(""); + const [display_ue, setdisplay_ue] = useState(""); + let [ue_data_edit_mode, setue_data_edit_mode] = useState("0"); + + + const [Dialog_1_message, setDialog_1_message] = React.useState(false); + const [Dialog_1_open, setDialog_1_open] = React.useState(false); + function Dialog_1_handle_change_participant_session(message) { + setDialog_1_message(message); + setDialog_1_open(true); + } + + const Dialog_1_handleClose = () => { + //alert(" Utiliser le bouton 'fermer' "); + //setOpen(false); + }; + + const Dialog_1_handleClose_buton = () => { + setDialog_1_open(false); + }; + + + const [Getall_Parter_Unite_Enseignement_api, setGetall_Parter_Unite_Enseignement_api] = useState(); + const [Getall_Parter_Unite_Enseignement_message, setGetall_Parter_Unite_Enseignement_message] = useState(); + const [Getall_Parter_Unite_Enseignement_result, setGetall_Parter_Unite_Enseignement_result] = useState([]); + function Getall_Parter_Unite_Enseignement(event) { + + var form = new FormData(); + + + const stored_cookie = getCookie('tokenmysypart'); + form.append("token", stored_cookie); + + var myurl = process.env.REACT_APP_API_URL + "myclass/api/Get_List_Unite_Enseignement_no_filter/"; + + axios.post(myurl, form).then(res => { + + if (String(res.data.status) === String("true")) { + //console.log(" In Getall_Parter_Unite_Enseignement res.data.status = " + res.data.status); + //console.log(" In Getall_Parter_Unite_Enseignement res.data.message r_class = " + res.data.message); + setGetall_Parter_Unite_Enseignement_api("true"); + setGetall_Parter_Unite_Enseignement_result(res.data.message); + setRows(res.data.message); + } + else { + setGetall_Parter_Unite_Enseignement_api("false"); + setGetall_Parter_Unite_Enseignement_message(res.data.message); + alert(res.data.message); + } + + }).catch((error) => { + console.warn('Not good man :( Getall_Parter_Unite_Enseignement = ', error); + setGetall_Parter_Unite_Enseignement_api("false"); + alert(" Impossible de recuperer la liste des unités d'enseignement "); + //setmyApimyApiMessage("") + }) + } + + + const [Get_Given_Unite_Enseignement_api, setGet_Given_Unite_Enseignement_api] = useState(); + const [Get_Given_Unite_Enseignement_message, setGet_Given_Unite_Enseignement_message] = useState(); + const [Get_Given_Unite_Enseignement_result, setGet_Given_Unite_Enseignement_result] = useState([]); + function Get_Given_Unite_Enseignement(local_selected_id) { + + var form = new FormData(); + + + const stored_cookie = getCookie('tokenmysypart'); + form.append("token", stored_cookie); + form.append("_id", local_selected_id); + + var myurl = process.env.REACT_APP_API_URL + "myclass/api/Get_Given_Unite_Enseignement/"; + + axios.post(myurl, form).then(res => { + + if (String(res.data.status) === String("true")) { + //console.log(" In Get_Given_Unite_Enseignement res.data.status = " + res.data.status); + //console.log(" In Get_Given_Unite_Enseignement res.data.message r_class = " + res.data.message); + setGet_Given_Unite_Enseignement_api("true"); + setGet_Given_Unite_Enseignement_result(res.data.message); + + var local_ue = JSON.parse(res.data.message); + + if (local_ue.code) { + setp_detail_code(local_ue.code); + } else { + setp_detail_code(""); + } + + if (local_ue.titre) { + setp_detail_titre(local_ue.titre); + } else { + setp_detail_titre(""); + } + + if (local_ue.support) { + setp_detail_support(local_ue.support); + } else { + setp_detail_support(""); + } + + + + if (local_ue.duration) { + setp_detail_duration(local_ue.duration); + } else { + setp_detail_duration(""); + } + + if (local_ue.duration_unite) { + setp_detail_duration_unite(local_ue.duration_unite); + } else { + setp_detail_duration_unite(""); + } + + if (local_ue.programme) { + setfield_programme(local_ue.programme); + } else { + setfield_programme(""); + } + + + if (local_ue.prerequis) { + setfield_preprequis(local_ue.prerequis); + } else { + setfield_preprequis(""); + } + + + + if (local_ue.objectif) { + setfield_objectif(local_ue.objectif); + } else { + setfield_objectif(""); + } + + if (local_ue.methode_pedagogique) { + setfield_methode_pedago(local_ue.methode_pedagogique); + } else { + setfield_methode_pedago(""); + } + + + + + if (local_ue.description) { + setfield_description(local_ue.description); + } else { + setfield_description(""); + } + + + + desable_detail_fields(); + } + else { + setGet_Given_Unite_Enseignement_api("false"); + setGet_Given_Unite_Enseignement_message(res.data.message); + alert(res.data.message); + } + + }).catch((error) => { + console.warn('Not good man :( Get_Given_Unite_Enseignement = ', error); + setGet_Given_Unite_Enseignement_api("false"); + alert(" Impossible de recuperer les données de l'UE "); + //setmyApimyApiMessage("") + }) + } + + + const [eu_changed, seteu_changed] = useState(""); + function is_EU_changed() { + seteu_changed(true); + } + + const New_duration_unit_list = [ + { + value: 'heure', + label: 'Heures', + }, + + { + value: 'jour', + label: 'Jours', + }, + { + value: 'semaine', + label: 'Semaines', + }, + { + value: 'mois', + label: 'Mois', + }, + { + value: 'user_rythme', + label: 'Rythme stagiaire', + }, + { + value: '', + label: '', + } + ]; + + + + const [enable_editor, setenable_editor] = useState(0); + + function desable_detail_fields() { + + setue_data_edit_mode("0"); + + if (document.getElementsByName("code_session") && document.getElementsByName("code_session")[0]) { + document.getElementsByName("code_session")[0].disabled = true; + document.getElementsByName("code_session")[0].style.backgroundColor = "#ECEFF1"; + } + + if (document.getElementsByName("titre") && document.getElementsByName("code_session")[0]) { + document.getElementsByName("titre")[0].disabled = true; + document.getElementsByName("titre")[0].style.backgroundColor = "#ECEFF1"; + } + + if (document.getElementsByName("description") && document.getElementsByName("code_session")[0]) { + document.getElementsByName("description")[0].disabled = true; + document.getElementsByName("description")[0].style.backgroundColor = "#ECEFF1"; + } + + + if (document.getElementsByName("duree_01") && document.getElementsByName("duree_01")[0]) { + document.getElementsByName("duree_01")[0].disabled = true; + document.getElementsByName("duree_01")[0].style.backgroundColor = "#ECEFF1"; + } + + if (document.getElementsByName("unit_duree") && document.getElementsByName("unit_duree")[0]) { + document.getElementsByName("unit_duree")[0].disabled = true; + document.getElementsByName("unit_duree")[0].style.backgroundColor = "#ECEFF1"; + } + + } + + + function enable_detail_fields() { + + setue_data_edit_mode("1"); + + + if (document.getElementsByName("code_session") && document.getElementsByName("code_session")[0]) { + document.getElementsByName("code_session")[0].disabled = false; + document.getElementsByName("code_session")[0].style.backgroundColor = "#FFFFFF"; + } + + if (document.getElementsByName("titre") && document.getElementsByName("code_session")[0]) { + document.getElementsByName("titre")[0].disabled = false; + document.getElementsByName("titre")[0].style.backgroundColor = "#FFFFFF"; + } + + if (document.getElementsByName("description") && document.getElementsByName("code_session")[0]) { + document.getElementsByName("description")[0].disabled = false; + document.getElementsByName("description")[0].style.backgroundColor = "#FFFFFF"; + } + + + } + + + useEffect(() => { + + Getall_Parter_Unite_Enseignement(); + + if (document.getElementById('myRef_head')) { + var divh = document.getElementById('myRef_head').offsetTop; + window.scrollTo({ + top: divh, + behavior: "smooth", + }); + } + }, []); + + + + function clean_fields() { + setp_detail_code(""); + setp_detail_titre(""); + setp_detail_support(""); + setp_detail_duration(""); + setp_detail_duration_unite(""); + setfield_methode_pedago(""); + setfield_suivi_eval(""); + setfield_prerequis(""); + setfield_handicap(""); + setfield_description(""); + setfield_objectif(""); + setfield_programme(""); + setfield_preprequis(""); + + } + + const [Add_Update_UE_Data_api, setAdd_Update_UE_Data_api] = useState(); + const [Add_Update_UE_Data_message, setAdd_Update_UE_Data_message] = useState(); + const [Add_Update_UE_Data_result, setAdd_Update_UE_Data_result] = useState(); + function Add_Update_UE_Data() { + setLoading(true); + var form = new FormData(); + //form.append("token","K3cw63eKokKSbV4spjQ48SUNnfy80yrXfA"); + + + const stored_cookie = getCookie('tokenmysypart'); + form.append("token", stored_cookie); + + form.append("code", p_detail_code); + form.append("titre", p_detail_titre); + + form.append("duration", p_detail_duration); + form.append("duration_unite", p_detail_duration_unite); + + + + var description = ""; + if (editorRef_description.current) { + description = editorRef_description.current.getContent(); + + if (parse(description.replace(/(<([^>]+)>)/ig, '')).length > editorRef_description_limite) { + alert(" Champ 'Description', limite depassée !") + return; + } + } + + form.append("description", description); + + var objectif = ""; + if (editorRef_objectif.current) { + objectif = editorRef_objectif.current.getContent(); + + if (parse(objectif.replace(/(<([^>]+)>)/ig, '')).length > editorRef_objectif_limite) { + alert(" Champ 'Objectif', limite depassée !") + return; + } + } + form.append("objectif", objectif); + + + var prerequis = ""; + if (editorRef_prerequis.current) { + prerequis = editorRef_prerequis.current.getContent(); + + if (parse(prerequis.replace(/(<([^>]+)>)/ig, '')).length > editorRef_prerequis_limite) { + alert(" Champ 'Pré-requis', limite depassée !") + return; + } + } + form.append("prerequis", prerequis); + + + var programme = ""; + if (editorRef_programme.current) { + programme = editorRef_programme.current.getContent(); + + if (parse(programme.replace(/(<([^>]+)>)/ig, '')).length > editorRef_prerequis_limite) { + alert(" Champ 'Programme', limite depassée !") + return; + } + } + + form.append("programme", programme); + + + var methode_eval = ""; + if (editorRef_methode_eval.current) { + methode_eval = editorRef_methode_eval.current.getContent(); + + if (parse(methode_eval.replace(/(<([^>]+)>)/ig, '')).length > editorRef_methode_eval_limite) { + alert(" Champ 'Suivi & Evaluation', limite depassée !") + return; + } + } + + form.append("methode_evaluation", methode_eval); + + + var methode_pedago = ""; + if (editorRef_programme.current) { + methode_pedago = editorRef_methode_pedago.current.getContent(); + + if (parse(methode_pedago.replace(/(<([^>]+)>)/ig, '')).length > editorRef_methode_eval_limite) { + alert(" Champ 'Méhode Pédagogique', limite depassée !") + return; + } + } + + form.append("methode_pedagogique", methode_pedago); + var myurl = "" + + var is_update = 0; + + if (String(display_ue) === "1" && String(add_one_ue) !== "1") { + form.append("_id", selected_id); + myurl = process.env.REACT_APP_API_URL + "myclass/api/Update_Unite_Enseignement/"; + is_update = 1; + + } else if (String(display_ue) !== "1" && String(add_one_ue) === "1") { + myurl = process.env.REACT_APP_API_URL + "myclass/api/Add_Unite_Enseignement/"; + } + + + + axios.post(myurl, form).then(res => { + setLoading(false); + // console.log(" In Add_Update_UE_Data res.data.status = " + res.data.status); + //console.log(" In Add_Update_UE_Data res.data.message r_class = " + res.data.message); + + if (String(res.data.status) === String("true")) { + setAdd_Update_UE_Data_api("true"); + setAdd_Update_UE_Data_result(res.data.message); + Getall_Parter_Unite_Enseignement(); + setdisplay_ue(""); + clean_fields(); + alert(res.data.message); + + + + } + else { + setAdd_Update_UE_Data_api("false"); + setAdd_Update_UE_Data_message(res.data.message); + alert(res.data.message); + } + + }).catch((error) => { + setLoading(false); + console.warn('Add_Update_UE_Data : Not good man :( mysearchtext = ' + error); + setAdd_Update_UE_Data_api("false"); + alert(" Impossible d'ajouter ou mettre à jour l'UE "); + + }) + } + + + function submenu_add_one_UE() { + clean_fields(); + setdisplay_ue("0"); + setue_data_edit_mode(""); + setadd_one_ue("1"); + } + + const [p_detail_code, setp_detail_code] = useState(""); + const [p_detail_titre, setp_detail_titre] = useState(""); + const [p_detail_support, setp_detail_support] = useState(""); + const [p_detail_duration, setp_detail_duration] = useState(""); + const [p_detail_duration_unite, setp_detail_duration_unite] = useState(""); + + + const editorRef_description = useRef(null); + const [editorRef_description_limite, seteditorRef_description_limite] = useState(5000); + + + const editorRef_objectif = useRef(null); + const [editorRef_objectif_limite, seteditorRef_objectif_limite] = useState(5000); + + const editorRef_programme = useRef(null); + const [editorRef_programme_limite, seteditorRef_programme_limite] = useState(5000); + + const editorRef_prerequis = useRef(null); + const [editorRef_prerequis_limite, seteditorRef_prerequis_limite] = useState(5000); + + + + const editorRef_methode_pedago = useRef(null); + const [editorRef_methode_pedago_limite, seteditorRef_methode_pedago] = useState(2000); + + + const editorRef_methode_eval = useRef(null); + const [editorRef_methode_eval_limite, seteditorRef_methode_eval_limite] = useState(2000); + + + const [field_description, setfield_description] = useState(""); + const [field_objectif, setfield_objectif] = useState(""); + const [field_programme, setfield_programme] = useState(""); + const [field_preprequis, setfield_preprequis] = useState(""); + + const [field_methode_pedago, setfield_methode_pedago] = useState(""); + const [field_suivi_eval, setfield_suivi_eval] = useState(""); + + + const [field_prerequis, setfield_prerequis] = useState(""); + + const [field_handicap, setfield_handicap] = useState(""); + + + const [editor_tochange, seteditor_tochange] = useState(""); + function editor_keyup() { + seteditor_tochange("1"); + } + + + function Annule_change_data() { + Get_Given_Unite_Enseignement(selected_id); + desable_detail_fields(); + } + + function handleClick_edit_ue_From_Line(selected_row_id) { + + + var line = JSON.parse(Getall_Parter_Unite_Enseignement_result[selected_row_id]); + + setadd_one_ue("0"); + clean_fields(); + setue_data_edit_mode(""); + setdisplay_ue("1"); + + + var invoice_id = line._id; + setselected_id(invoice_id); + + Get_Given_Unite_Enseignement(line._id); + + if (document.getElementById('myRef')) { + var divh = document.getElementById('myRef').offsetTop; + window.scrollTo({ + top: divh, + behavior: "smooth", + }); + } + + } + + function Annule_add_new_UE() { + clean_fields(); + setdisplay_ue("0"); + setue_data_edit_mode(""); + setadd_one_ue(""); + } + + return ( +
+ {isLoading &&
+
+
} + + + + MySy Information + + + {Dialog_1_message} + + + + + + + + + + +

Gestion des Unités d'enseignement

+
+
Utilisez les filtres !
+
+
+ { + setp_filtre1(e.target.value); + + }} + > + Nom du point de configuration   + + + +
+ + + +
+ {p_filtre1 && + { setp_filtre1_value(e.target.value); }} + InputProps={{ + endAdornment: ( + + { + setp_filtre1_value(""); + }} /> + + ), + }} + + /> + + } +
+ {p_filtre1 && } + {p_filtre1 && } + + +
+ +
+ +
+ +
+ +
+ + +
+ +
+ +
+
+ + +
+
+
+ +
+   + + { + setSelectionModel(newSelectionModel); + /* if (newSelectionModel.length === 1) + handleClick_edit_config_From_Line(newSelectionModel); + if (newSelectionModel.length !== 1) { + setp_detail_config_valeur(); + setp_detail_config_point(); + setConfig_data_changed(); + setconfig_data_edit_mode(); + setdisplay_detail_config(); + + + }*/ + }} + selectionModel={selectionModel} + disableSelectionOnClick + localeText={frFR.components.MuiDataGrid.defaultProps.localeText} + rows={rowss.map((item, index) => ( + { + id: index, + _id: JSON.parse(item)._id, + code: JSON.parse(item).code, + titre: JSON.parse(item).titre, + duration_concat: JSON.parse(item).duration_concat, + duration: JSON.parse(item).duration_concat, + duration_unite: JSON.parse(item).duration_unite, + + } + ))} + + columns={columns} + pageSize={10} + className="datagridclass" + + onRowDoubleClick={(newSelectionModel) => { + // handleClick_edit_config_From_Line(newSelectionModel.row.id); + + setselected_id(newSelectionModel.row._id); + handleClick_edit_ue_From_Line(newSelectionModel.row.id); + + }} + + rowsPerPageOptions={[10]} + //disableSelectionOnClick + components={{ + Toolbar: GridToolbar, + }} + //sx={datagridSx} + getCellClassName={(params) => { + + + //field === "order_header_status" + if (params.field === "order_header_status" && String(params.value) == "0") { + return 'cell--status--brouillon'; + } + + if (params.field === "order_header_status" && String(params.value) == "1") { + + return 'cell--status--encours'; + } + + if (params.field === "order_header_status" && String(params.value) == "2") { + return 'cell--status--traite'; + } + + if (params.field === "order_header_status" && String(params.value) == "3") { + return 'cell--status--facture'; + } + + }} + getRowClassName={(params) => { + + // Pour la gestion de la couleur de zone double cliquée + if (String(params.row.id) === String(gridline_id)) { + + return 'line--statut--selected'; + } + else if (parseInt(String(params.row.id)) % 2 === 0) { + return 'line--statut--pair'; + } + else if (parseInt(String(params.row.id)) % 2 !== 0) { + return 'line--statut--impair'; + } + }} + + + /> + +
+ +
+ +
+ +
+
+ +
+ +
+
+ +
+ +
 
+ + + {/*** Affichage d'une UE */} + {display_ue && String(display_ue) === "1" && String(add_one_ue) !== "1" && +
+

Affichage d'une UE

+ +
Code
+ setp_detail_code(e.target.value)} + + /> +
+ +
Titre
+ setp_detail_titre(e.target.value)} + + /> +
+ + {ue_data_edit_mode && String(ue_data_edit_mode) !== "1" &&
+
Durée
+ +
+ +
Unité
+ +
+ + +
} + + {ue_data_edit_mode && String(ue_data_edit_mode) === "1" && + } + {ue_data_edit_mode && String(ue_data_edit_mode) === "1" && +
+ +
+ + +
+
+
Pré-requis * (max 1000 caractères)
+ editorRef_prerequis.current = editor} + initialValue={field_preprequis} + onKeyUp={editor_keyup} + onEditorChange={(newValue, editor) => { + + if (String(editor_tochange) === "1" && String(ue_data_edit_mode) === "1") { + //alert(" change"); + is_EU_changed() + seteditor_tochange(""); + } + }} + + init={{ + resize: false, + height: 300, + readonly: 1, + menubar: false, + plugins: [ + 'advlist autolink lists link image charmap print preview anchor', + 'searchreplace visualblocks code fullscreen', + 'insertdatetime media table paste code help wordcount' + ], + + content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px; }', + + + }} + /> + +
+
+ + +
+
+
Description * (max 1000 caractères)
+ editorRef_description.current = editor} + initialValue={field_description} + onKeyUp={editor_keyup} + onEditorChange={(newValue, editor) => { + + if (String(editor_tochange) === "1") { + //alert(" change"); + is_EU_changed() + seteditor_tochange(""); + } + }} + + init={{ + resize: false, + height: 300, + menubar: false, + plugins: [ + 'advlist autolink lists link image charmap print preview anchor', + 'searchreplace visualblocks code fullscreen', + 'insertdatetime media table paste code help wordcount' + ], + + content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px; }' + }} + /> + +
+
+ +
+
+
Objectif* (max 1000 caractères)
+ editorRef_objectif.current = editor} + initialValue={field_objectif} + onKeyUp={editor_keyup} + onEditorChange={(newValue, editor) => { + if (String(editor_tochange) === "1" && String(ue_data_edit_mode) === "1") { + //alert(" change"); + is_EU_changed(); + seteditor_tochange(""); + } + }} + init={{ + resize: false, + height: 300, + menubar: false, + plugins: [ + 'advlist autolink lists link image charmap print preview anchor', + 'searchreplace visualblocks code fullscreen', + 'insertdatetime media table paste code help wordcount' + ], + + content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px; }' + }} + /> + +
+
+ + +
+
+
Programme (max 1000 caractères)
+ editorRef_programme.current = editor} + + initialValue={field_programme} + onKeyUp={editor_keyup} + onEditorChange={(newValue, editor) => { + if (String(editor_tochange) === "1" && String(ue_data_edit_mode) === "1") { + //alert(" change"); + is_EU_changed(); + seteditor_tochange(""); + } + }} + init={{ + resize: false, + + height: 300, + menubar: false, + plugins: [ + 'advlist autolink lists link image charmap print preview anchor', + 'searchreplace visualblocks code fullscreen', + 'insertdatetime media table paste code help wordcount' + ], + + content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px; }', + + }} + /> + +
+
+ +
+
+
Suivi & Evaluation (max 1000 caractères)
+ editorRef_methode_eval.current = editor} + + initialValue={field_suivi_eval} + onKeyUp={editor_keyup} + onEditorChange={(newValue, editor) => { + if (String(editor_tochange) === "1" && String(ue_data_edit_mode) === "1") { + //alert(" change"); + is_EU_changed(); + seteditor_tochange(""); + } + }} + init={{ + resize: false, + + height: 300, + menubar: false, + plugins: [ + 'advlist autolink lists link image charmap print preview anchor', + 'searchreplace visualblocks code fullscreen', + 'insertdatetime media table paste code help wordcount' + ], + + content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px; }', + + }} + /> + +
+
+ + +
+
+
Méthode Pédagogique
+ editorRef_methode_pedago.current = editor} + + initialValue={field_methode_pedago} + onKeyUp={editor_keyup} + onEditorChange={(newValue, editor) => { + if (String(editor_tochange) === "1" && String(ue_data_edit_mode) === "1") { + //alert(" change"); + is_EU_changed(); + seteditor_tochange(""); + } + }} + init={{ + resize: false, + + height: 300, + menubar: false, + plugins: [ + 'advlist autolink lists link image charmap print preview anchor', + 'searchreplace visualblocks code fullscreen', + 'insertdatetime media table paste code help wordcount' + ], + + content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px; }', + + }} + /> + +
+
+
+ + +
+ } + + {String(ue_data_edit_mode) !== "1" && +
+ + +
+
+
Pré-requis :
+ {parse(field_preprequis.replace(/(<([^>]+)>)/ig, '')) } +
+
+
+ +
+
+
Desscription :
+ {parse(field_description.replace(/(<([^>]+)>)/ig, '')) } + +
+
+
+ +
+
+
Objectif :
+ {parse(field_objectif.replace(/(<([^>]+)>)/ig, '')) } + +
+
+
+ + +
+
+
Programme :
+ + {parse(field_programme.replace(/(<([^>]+)>)/ig, '')) } + +
+
+
+ +
+
+
Suivi & Evaluation :
+ {parse(field_suivi_eval.replace(/(<([^>]+)>)/ig, '')) } + +
+
+
+ + +
+
+
Méthode Pédagogique :
+ + {parse(field_methode_pedago.replace(/(<([^>]+)>)/ig, '')) } +
+
+
+ + +
} + + + {String(ue_data_edit_mode) === "1" &&
+ + {eu_changed === "1" && +
+
/!\ Pensez à enregistrer les modifications +
+
} + +
+ + + +
+ +
+ +
+ +
} + + + {String(ue_data_edit_mode) !== "1" &&
+ +
+ + +
+ +
} + +
+ } + + + + {/**** Ajout d'une UE */} + {display_ue && String(display_ue) !== "1" && String(add_one_ue) === "1" &&
+ +
Code
+ setp_detail_code(e.target.value)} + + /> +
+ +
Titre
+ setp_detail_titre(e.target.value)} + + /> +
+ + + + +
+ +
+ + +
+
+
Pré-requis * (max 1000 caractères)
+ editorRef_prerequis.current = editor} + initialValue={field_preprequis} + onKeyUp={editor_keyup} + onEditorChange={(newValue, editor) => { + + if (String(editor_tochange) === "1" && String(ue_data_edit_mode) === "1") { + //alert(" change"); + is_EU_changed() + seteditor_tochange(""); + } + }} + + init={{ + resize: false, + height: 300, + readonly: 1, + menubar: false, + plugins: [ + 'advlist autolink lists link image charmap print preview anchor', + 'searchreplace visualblocks code fullscreen', + 'insertdatetime media table paste code help wordcount' + ], + + content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px; }', + + + }} + /> + +
+
+ + +
+
+
Description * (max 1000 caractères)
+ editorRef_description.current = editor} + initialValue={field_description} + onKeyUp={editor_keyup} + onEditorChange={(newValue, editor) => { + + if (String(editor_tochange) === "1") { + //alert(" change"); + is_EU_changed() + seteditor_tochange(""); + } + }} + + init={{ + resize: false, + height: 300, + menubar: false, + plugins: [ + 'advlist autolink lists link image charmap print preview anchor', + 'searchreplace visualblocks code fullscreen', + 'insertdatetime media table paste code help wordcount' + ], + + content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px; }' + }} + /> + +
+
+ +
+
+
Objectif* (max 1000 caractères)
+ editorRef_objectif.current = editor} + initialValue={field_objectif} + onKeyUp={editor_keyup} + onEditorChange={(newValue, editor) => { + if (String(editor_tochange) === "1" && String(ue_data_edit_mode) === "1") { + //alert(" change"); + is_EU_changed(); + seteditor_tochange(""); + } + }} + init={{ + resize: false, + height: 300, + menubar: false, + plugins: [ + 'advlist autolink lists link image charmap print preview anchor', + 'searchreplace visualblocks code fullscreen', + 'insertdatetime media table paste code help wordcount' + ], + + content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px; }' + }} + /> + +
+
+ + +
+
+
Programme (max 1000 caractères)
+ editorRef_programme.current = editor} + + initialValue={field_programme} + onKeyUp={editor_keyup} + onEditorChange={(newValue, editor) => { + if (String(editor_tochange) === "1" && String(ue_data_edit_mode) === "1") { + //alert(" change"); + is_EU_changed(); + seteditor_tochange(""); + } + }} + init={{ + resize: false, + + height: 300, + menubar: false, + plugins: [ + 'advlist autolink lists link image charmap print preview anchor', + 'searchreplace visualblocks code fullscreen', + 'insertdatetime media table paste code help wordcount' + ], + + content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px; }', + + }} + /> + +
+
+ +
+
+
Suivi & Evaluation (max 1000 caractères)
+ editorRef_methode_eval.current = editor} + + initialValue={field_suivi_eval} + onKeyUp={editor_keyup} + onEditorChange={(newValue, editor) => { + if (String(editor_tochange) === "1" && String(ue_data_edit_mode) === "1") { + //alert(" change"); + is_EU_changed(); + seteditor_tochange(""); + } + }} + init={{ + resize: false, + + height: 300, + menubar: false, + plugins: [ + 'advlist autolink lists link image charmap print preview anchor', + 'searchreplace visualblocks code fullscreen', + 'insertdatetime media table paste code help wordcount' + ], + + content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px; }', + + }} + /> + +
+
+ + +
+
+
Méthode Pédagogique
+ editorRef_methode_pedago.current = editor} + + initialValue={field_methode_pedago} + onKeyUp={editor_keyup} + onEditorChange={(newValue, editor) => { + if (String(editor_tochange) === "1" && String(ue_data_edit_mode) === "1") { + //alert(" change"); + is_EU_changed(); + seteditor_tochange(""); + } + }} + init={{ + resize: false, + + height: 300, + menubar: false, + plugins: [ + 'advlist autolink lists link image charmap print preview anchor', + 'searchreplace visualblocks code fullscreen', + 'insertdatetime media table paste code help wordcount' + ], + + content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px; }', + + }} + /> + +
+
+
+ + +
+ + +
+ + +
+ + + +
+ +
+ +
+ +
+ + +
} + + +
+ ) +} + + +export default DisplayPartnerUnite_Enseignement; + diff --git a/src/components/Module_Editique.js b/src/components/Module_Editique.js index b6c9e32..c287825 100644 --- a/src/components/Module_Editique.js +++ b/src/components/Module_Editique.js @@ -51,6 +51,9 @@ import { alignPropType } from "react-bootstrap/esm/types"; import ToggleSwitch from "./ToggleSwitch"; import ToggleSwitch_v2_mysy from "./ToggleSwitch_v2_mysy"; +import ToggleSwitch_v3_mysy from "./ToggleSwitch_v3_mysy"; + + import Autocomplete from '@mui/material/Autocomplete'; import FullCalendar, { formatDate } from "@fullcalendar/react"; import dayGridPlugin from "@fullcalendar/daygrid"; @@ -196,6 +199,7 @@ const Module_Editique = (props) => { form.append("token", stored_cookie); form.append("related_collection", props.related_collection); form.append("related_collection_recid", props.related_collection_recid); + form.append("session_id", props.related_collection_recid); var myurl = process.env.REACT_APP_API_URL + "myclass/api/Get_Editable_Document_By_Partner_By_Collection/"; @@ -285,6 +289,46 @@ const Module_Editique = (props) => { } + const [Getall_Session_Document_Status_api, setGetall_Session_Document_Status_api] = useState(); + const [Getall_Session_Document_Status_message, setGetall_Session_Document_Status_message] = useState(); + const [Getall_Session_Document_Status_result, setGetall_Session_Document_Status_result] = useState([]); + function Getall_Session_Document_Status(event) { + var form = new FormData(); + + const stored_cookie = getCookie('tokenmysypart'); + form.append("token", stored_cookie); + form.append("session_id", props.related_collection_recid); + + + var myurl = process.env.REACT_APP_API_URL + "myclass/api/Get_Session_Action_Status_By_Document/"; + + setLoading(true); + axios.post(myurl, form).then(res => { + + setLoading(false); + + if (String(res.data.status) === String("true")) { + //console.log(" In Getall_Session_Document_Status res.data.status = " + res.data.status); + console.log(" In Getall_Session_Document_Status res.data.message r_class = " + res.data.message); + setGetall_Session_Document_Status_api("true"); + setGetall_Session_Document_Status_result(res.data.message); + + + + } + else { + setGetall_Session_Document_Status_api("false"); + setGetall_Session_Document_Status_message(res.data.message); + } + + }).catch((error) => { + setLoading(false); + console.warn('Not good man :( Getall_Session_Document_Status = ', error); + setGetall_Session_Document_Status_api("false"); + //setmyApimyApiMessage("") + }) + } + const [Action_Server_api, setAction_Server_api] = useState(); const [Action_Server_message, setAction_Server_message] = useState(); const [Action_Server_result, setAction_Server_result] = useState([]); @@ -384,7 +428,6 @@ const Module_Editique = (props) => { Getall_Audit_Document_By_Partner_By_Collection(); Get_related_collection_Data(); - }, []) @@ -1877,7 +1920,7 @@ const Module_Editique = (props) => {
} - + {String(selected_convention_type) === "email" &&
@@ -1917,7 +1960,7 @@ const Module_Editique = (props) => {
} - + {String(selected_convention_type) === "email" && String(actionmass_ftion_val) !== String("convention") &&
Email destinaitaire @@ -2208,11 +2251,13 @@ const Module_Editique = (props) => { } } else if (String(JSON.parse(document).courrier_template_ref_interne) === "EMARGEMENT_FORMATION") { - setDialog_EMARGEMENT_FORMATION_open(true); + // setDialog_EMARGEMENT_FORMATION_open(true); + props.submenu_emargement(); } else if (String(JSON.parse(document).courrier_template_ref_interne) === "ATTESTATION_FORMATION") { - setDialog_ATTESTATION_FORMATION_open(true); + //setDialog_ATTESTATION_FORMATION_open(true); + props.submenu_attestation(); } else if (String(JSON.parse(document).courrier_template_ref_interne) === "CONVOCATION_STAGIAIRE") { @@ -2252,11 +2297,13 @@ const Module_Editique = (props) => { } else if (String(JSON.parse(document).courrier_template_ref_interne) === "EVAL_FORMATION") { - setDialog_EVALUATION_FORMATION_open(true); + //setDialog_EVALUATION_FORMATION_open(true); + props.submenu_evaluation(); } else if (String(JSON.parse(document).courrier_template_ref_interne) === "QUESTION_POSITIONNEMENT") { - setDialog_Q_POSITIONNEMENT_open(true); + //setDialog_Q_POSITIONNEMENT_open(true); + props.submenu_q_positionnement(); } @@ -2268,24 +2315,26 @@ const Module_Editique = (props) => { }}> - {(JSON.parse(document).courrier_template_nom)} + {(JSON.parse(document).courrier_template_nom)} - {(JSON.parse(document).statut_completude)}
- {String(JSON.parse(document).has_history_event) === "1" && + {/*String(JSON.parse(document).has_history_event) === "1" &&
-
} {String(JSON.parse(document).has_history_event) !== "1" &&
- -
} +
*/} +
+ + +
diff --git a/src/components/Partner.js b/src/components/Partner.js index 7c6469e..bd71562 100644 --- a/src/components/Partner.js +++ b/src/components/Partner.js @@ -35,7 +35,7 @@ import { FcList, FcCurrencyExchange, FcFeedback, FcKey, FcVideoCall, FcSettings, FcBusinesswoman, FcServices, FcCollect, FcCandleSticks, FcKindle, - FcFlowChart, FcReading, FcFinePrint, FcCancel, FcCalendar, + FcFlowChart, FcReading, FcFinePrint, FcCancel, FcCalendar, FcOrgUnit } from "react-icons/fc"; import { PiStudent } from "react-icons/pi"; @@ -103,6 +103,7 @@ import AccountBalanceIcon from '@mui/icons-material/AccountBalance'; import CalendarMonthIcon from '@mui/icons-material/CalendarMonth'; import CoPresentIcon from '@mui/icons-material/CoPresent'; import LocalOfferIcon from '@mui/icons-material/LocalOffer'; +import DisplayPartnerUnite_Enseignement from "./DisplayPartnerUnite_Enseignement"; const Partner = (props) => { const { commingmenu, commingpack } = useParams(); @@ -411,7 +412,7 @@ const Partner = (props) => { 'mes_stagiaires', 'mes_employes', 'mon_materiel', 'config_document', 'factures_client', "setuplms", "config_technique", "config_champ_specific", "module_agenda", "config_session_steps", "config_jours_heures", "dashbord_formation", "dashbord_session", "mon_tableau_de_bord", "prix_achat", "mes_apprenants", "dashbord_ressources_humaines", - "dashbord_inscriptions", "mes_salles", "mes_opportunites", "config_formulaires", "dashbord_factures"] + "dashbord_inscriptions", "mes_salles", "mes_opportunites", "config_formulaires", "dashbord_factures", "mes_ue"] if (action && list_menu.includes(action)) { @@ -445,7 +446,7 @@ const Partner = (props) => { // Cette fontion desactive tous les menu header et reactive just le menu_header concerné function inactive_active_menu_header(current_menu_header) { const list_menu_header_names = ['my_account', 'my_class', 'my_session', 'my_apprenant', 'my_ressource', 'my_planning', - 'my_partners', 'my_invoices', 'my_prix_achat', 'my_e_learning', 'my_configuration', 'my_tbd'] + 'my_partners', 'my_invoices', 'my_prix_achat', 'my_e_learning', 'my_configuration', 'my_tbd', 'my_ue'] for (let i = 0; i < list_menu_header_names.length; i++) { if (document.getElementsByName(String(list_menu_header_names[i])) && document.getElementsByName(String(list_menu_header_names[i]))[0]) { document.getElementsByName(String(list_menu_header_names[i]))[0].style.fontWeight = "400"; @@ -460,7 +461,7 @@ const Partner = (props) => { function inactive_active_menu_header_from_url_action(url_action) { const list_menu_header_names = ['my_account', 'my_class', 'my_session', 'my_apprenant', 'my_ressource', 'my_planning', - 'my_partners', 'my_invoices', 'my_prix_achat', 'my_e_learning', 'my_configuration', 'my_tbd'] + 'my_partners', 'my_invoices', 'my_prix_achat', 'my_e_learning', 'my_configuration', 'my_tbd', 'my_ue'] for (let i = 0; i < list_menu_header_names.length; i++) { if (document.getElementsByName(String(list_menu_header_names[i])) && document.getElementsByName(String(list_menu_header_names[i]))[0]) { document.getElementsByName(String(list_menu_header_names[i]))[0].style.fontWeight = "400"; @@ -756,6 +757,24 @@ const Partner = (props) => { } + function DiplayPartner_UE(event) { + var security_retval = check_user_acces_right("session", "read"); + + + if (security_retval === 1) { + setmenu("mes_ue"); + setapiexcelimportmessage(); + setformation_file_name(); + history.push("/Partner/mes_ue"); + document.body.style.backgroundColor = "#ffffff"; + + inactive_active_menu_header("my_ue"); + } else { + Dialog_1_handle_acces_insuffisant("Vos droits ne sont pas suffisants pour acceder à la gestion des sessions"); + } + } + + function DiplaySessionList(event) { var security_retval = check_user_acces_right("session", "read"); @@ -1055,6 +1074,8 @@ const Partner = (props) => { }; + const [formation_initiale, setformation_initiale] = useState(""); + const [conntected_employee_id, setconntected_employee_id] = useState(""); function GetPartnerNameFromToken(event) { @@ -1096,6 +1117,14 @@ const Partner = (props) => { } + if (JSON.parse(res.data.message).formation_initiale) { + setformation_initiale(JSON.parse(res.data.message).formation_initiale); + } else { + setformation_initiale(""); + } + + + var partner_employee_user_name = "Inconnu"; if (JSON.parse(res.data.message).contact_nom) { @@ -1402,6 +1431,11 @@ const Partner = (props) => { {String(part_is_partner_admin_account) !== "1" &&
{parnter_user_employee} {!parntername && Utilisateur }
} + {String(formation_initiale) === "1" &&
Ftion Initiale + + +
} +
@@ -1436,12 +1470,18 @@ const Partner = (props) => {
- } style={{ overflow: 'hidden' }}> - {String(menu) !== "affichage" && }> MON CATALOGUE } - {String(menu) === "affichage" && }> MON CATALOGUE } + } style={{ overflow: 'hidden' }}> + {String(menu) !== "affichage" && }> CATALOGUE } + {String(menu) === "affichage" && }> CATALOGUE } + + {String(menu) !== "mes_ue" && }> UNIT. ENSEI. } + {String(menu) === "mes_ue" && }> UNIT. ENSEI. } + + + @@ -1451,8 +1491,10 @@ const Partner = (props) => {
- {String(menu) !== "mes_sessions" &&    MES SESSIONS } - {String(menu) === "mes_sessions" &&    MES SESSIONS } + {String(menu) !== "mes_sessions" &&   SESSIONS } + {String(menu) === "mes_sessions" &&  SESSIONS } + + @@ -1464,7 +1506,7 @@ const Partner = (props) => {
- } style={{ overflow: 'hidden' }}> + } style={{ overflow: 'hidden' }}> {String(menu) !== "mes_stagiaires" && }> FICHE APPRENANTS } {String(menu) === "mes_stagiaires" && }> FICHE APPRENANTS } @@ -1480,12 +1522,12 @@ const Partner = (props) => {
- } style={{ overflow: 'hidden' }}> - {String(menu) !== "mes_employes" && }> MES EMPLOYES } - {String(menu) === "mes_employes" && }> MES EMPLOYES } + } style={{ overflow: 'hidden' }}> + {String(menu) !== "mes_employes" && }> EMPLOYES } + {String(menu) === "mes_employes" && }> EMPLOYES } - {String(menu) !== "mes_salles" && }> MES SALLES } - {String(menu) === "mes_salles" && }> MES SALLES } + {String(menu) !== "mes_salles" && }> SALLES } + {String(menu) === "mes_salles" && }> SALLES } {String(menu) !== "mon_materiel" && }> MON MATERIEL } {String(menu) === "mon_materiel" && }> MON MATERIEL } @@ -1507,79 +1549,13 @@ const Partner = (props) => {
- {/*
-
Mes Formations
- {/* - {String(menu) !== "creation" &&
CREER FORMATION
} - {String(menu) === "creation" &&
CREER FORMATION
} -
- * / } - - {String(menu) !== "affichage" &&
MES FORMATIONS
} - {String(menu) === "affichage" &&
MES FORMATIONS
} -
- - {String(menu) !== "mes_sessions" &&
MES SESSIONS
} - {String(menu) === "mes_sessions" &&
MES SESSIONS
} -
- - {String(menu) !== "mes_stagiaires" &&
MES STAGIAIRES
} - {String(menu) === "mes_stagiaires" &&
MES STAGIAIRES
} -
- - {String(menu) !== "mes_apprenants" &&
MES APPRENANTS
} - {String(menu) === "mes_apprenants" &&
MES APPRENANTS
} -
- - - - - - {String(menu) !== "statistique" &&
STATISTIQUES
} - {String(menu) === "statistique" &&
STATISTIQUES
} -
- -
*/}
- } style={{ overflow: 'hidden' }}> + } style={{ overflow: 'hidden' }}> {String(menu) !== "mes_clients" && }> CLIENTS / FINANCEURS} {String(menu) === "mes_clients" && }>CLIENTS / FINANCEURS } @@ -1685,8 +1661,8 @@ const Partner = (props) => { } style={{ overflow: 'hidden' }}> - {String(menu) !== "config_document" && }> MES DOCUMENTS & MAILS} - {String(menu) === "config_document" && }> MES DOCUMENTS & MAILS } + {String(menu) !== "config_document" && }> DOCUMENTS & MAILS} + {String(menu) === "config_document" && }> DOCUMENTS & MAILS } {String(menu) !== "config_champ_specific" && }> CHAMP SPECIFIQUE } {String(menu) === "config_champ_specific" && }> CHAMP SPECIFIQUE } @@ -1751,12 +1727,23 @@ const Partner = (props) => { {String(menu) === "affichage" &&
+ + class_external_code={orderid} class_internal_url={packs} formation_initiale={formation_initiale} />
} + {String(menu) === "mes_ue" && +
+ + +
+ } + + + {String(menu) === "checkout" &&
@@ -1979,14 +1966,14 @@ const Partner = (props) => { {String(menu) === "mes_stagiaires" &&
-
} {String(menu) === "mes_apprenants" &&
-
} @@ -2123,7 +2110,7 @@ const Partner = (props) => {

- + {String(menu) !== "infopartner" &&
 
} {String(menu) === "infopartner" &&
 
}
@@ -2167,28 +2154,36 @@ const Partner = (props) => {
*/} - + {String(menu) !== "affichage" &&
 
} {String(menu) === "affichage" &&
 
}

+ + + {String(menu) !== "mes_ue" &&
 
} + {String(menu) === "mes_ue" &&
 
} +
+
+ + - + {String(menu) !== "mes_sessions" &&
 
} {String(menu) === "mes_sessions" &&
 
}

- + {String(menu) !== "mes_stagiaires" &&
 
} {String(menu) === "mes_stagiaires" &&
 
}

- + {String(menu) !== "mes_apprenants" &&
 
} {String(menu) === "mes_apprenants" &&
 
}
@@ -2197,7 +2192,7 @@ const Partner = (props) => { - + {String(menu) !== "mes_employes" &&
 
} {String(menu) === "mes_employes" &&
 
}
@@ -2224,7 +2219,7 @@ const Partner = (props) => {

- + {String(menu) !== "mes_clients" &&
 
} {String(menu) === "mes_clients" &&
 
}
@@ -2233,7 +2228,7 @@ const Partner = (props) => {

- + {String(menu) !== "mes_opportunites" &&
 
} {String(menu) === "mes_opportunites" &&
 
}
@@ -2242,7 +2237,7 @@ const Partner = (props) => {

- + {String(menu) !== "pricing" &&
 
} {String(menu) === "pricing" &&
 
}
@@ -2251,7 +2246,7 @@ const Partner = (props) => {

- + {String(menu) !== "mes_cmd" &&
 
} {String(menu) === "mes_cmd" &&
 
}
@@ -2260,7 +2255,7 @@ const Partner = (props) => {

- + {String(menu) !== "factures_client" &&
 
} {String(menu) === "factures_client" &&
 
}
@@ -2269,7 +2264,7 @@ const Partner = (props) => {

- + {String(menu) !== "prix_achat" &&
 
} {String(menu) === "prix_achat" &&
 
}
@@ -2342,8 +2337,17 @@ const Partner = (props) => { {String(menu) === "affichage" &&
+ + + class_external_code={orderid} class_internal_url={packs} formation_initiale={formation_initiale} /> +
+ } + + {String(menu) === "mes_ue" && +
+
} @@ -2568,14 +2572,14 @@ const Partner = (props) => { {String(menu) === "mes_stagiaires" &&
-
} {String(menu) === "mes_apprenants" &&
-
} diff --git a/src/components/ToggleSwitch_v2_mysy.js b/src/components/ToggleSwitch_v2_mysy.js index c99ecb7..191a5c0 100644 --- a/src/components/ToggleSwitch_v2_mysy.js +++ b/src/components/ToggleSwitch_v2_mysy.js @@ -17,7 +17,7 @@ const ToggleSwitch_v2_mysy = ({ label, checked }) => {
- +
); diff --git a/src/components/ToggleSwitch_v3_mysy.js b/src/components/ToggleSwitch_v3_mysy.js new file mode 100644 index 0000000..d41dc6e --- /dev/null +++ b/src/components/ToggleSwitch_v3_mysy.js @@ -0,0 +1,42 @@ +import React from "react"; + +import Stack from '@mui/material/Stack'; +import Button from '@mui/material/Button'; + +const ToggleSwitch_v3_mysy = ({ label, checked, mysy_type }) => { + return ( +
+
+ + +
+
+ ); +}; + +export default ToggleSwitch_v3_mysy; \ No newline at end of file diff --git a/src/styles/components/_addclassmanual.scss b/src/styles/components/_addclassmanual.scss index 47abd20..6db812b 100644 --- a/src/styles/components/_addclassmanual.scss +++ b/src/styles/components/_addclassmanual.scss @@ -372,14 +372,38 @@ padding-left: 5px; } - + .div_row_list_pj { width: 100%; border-left: 3mm ridge rgba(211, 220, 50, .6); float: left; + } + + .detail_class_submenu { + background: #d8edfc; + border-radius: 15px; + margin-right: 1rem; + padding: 0.3rem; + margin-bottom: 0.5rem; + width: 10.5rem; + text-align: center; + border: 1px solid #9cf; + color: #3b3e40; + font-family: "verdana", "Quicksand", "Signika", sans-serif; + font-size: small; + letter-spacing: 0.1rem; + font-weight: normal; + width: 100%; + height: 2rem !important; } - + .detail_class_submenu:hover:active, + .detail_class_submenu:hover { + background-color: #104277; + color: white; + } + + } @media only screen and (min-width: 601px) and (max-width: 991px) { @@ -802,6 +826,31 @@ width: 50%; border-left: 3mm ridge rgba(211, 220, 50, .6); float: left; + } + + .detail_class_submenu { + background: #d8edfc; + border-radius: 15px; + margin-right: 1rem; + padding: 0.3rem; + margin-bottom: 0.5rem; + //width: 11rem; + text-align: center; + border: 1px solid #9cf; + color: #3b3e40; + font-family: "verdana", "Quicksand", "Signika", sans-serif; + //font-size: small; + letter-spacing: 0.1rem; + font-weight: normal; + height: 2rem !important; + font-size: 11px; + min-width: 12rem; + } + + .detail_class_submenu:hover:active, + .detail_class_submenu:hover { + background-color: #104277; + color: white; } } @@ -1226,7 +1275,32 @@ width: 30%; border-left: 3mm ridge rgba(211, 220, 50, .6); float: left; - } + } + + .detail_class_submenu { + background: #d8edfc; + border-radius: 15px; + margin-right: 1rem; + padding: 0.3rem; + margin-bottom: 0.5rem; + // width: 11rem; + text-align: center; + border: 1px solid #9cf; + color: #3b3e40; + font-family: "verdana", "Quicksand", "Signika", sans-serif; + //font-size: small; + letter-spacing: 0.1rem; + font-weight: normal; + height: 2rem !important; + font-size: 11px; + min-width: 15rem; + } + + .detail_class_submenu:hover:active, + .detail_class_submenu:hover { + background-color: #104277; + color: white; + } } @@ -1666,7 +1740,32 @@ width: 30%; border-left: 3mm ridge rgba(211, 220, 50, .6); float: left; -} + } + + .detail_class_submenu { + background: #d8edfc; + border-radius: 15px; + margin-right: 1rem; + padding: 0.3rem; + margin-bottom: 0.5rem; + //min-width: 12rem; + text-align: center; + border: 1px solid #9cf; + color: #3b3e40; + font-family: "verdana", "Quicksand", "Signika", sans-serif; + //font-size: small; + letter-spacing: 0.1rem; + font-weight: normal; + height: 2rem !important; + font-size: 11px; + min-width: 15rem; + } + + .detail_class_submenu:hover:active, + .detail_class_submenu:hover { + background-color: #104277; + color: white; + } // - end media } diff --git a/src/styles/components/_displayPartnerunite_enseignement.scss b/src/styles/components/_displayPartnerunite_enseignement.scss new file mode 100644 index 0000000..8007d69 --- /dev/null +++ b/src/styles/components/_displayPartnerunite_enseignement.scss @@ -0,0 +1,2833 @@ +.displayPartnerunite_enseignement { + + .tooltip_css { + background: #81BC3A; + z-index: 9999; + } + + + .css-1bp1ao6{ + height: 3.5rem !important; + } + + .loader-container { + width: 100%; + height: 100vh; + display: flex; + justify-content: center; + align-items: center; + position: fixed; + background: white; + background-color: transparent; + z-index: 1; + top: 0px; + opacity: 80%; + left: 0px; + } + + .spinner { + width: 20rem; + height: 10rem; + border: 8px solid; + border-color: #3d5af1 transparent #3d5af1 transparent; + border-radius: 50%; + animation: spin-anim 1.2s linear infinite; + background-color: red; + color: black; + } + + .mysy_spinner { + border-radius: 5px; + //border: 1px solid black; + opacity: 100%; + } + + + + .Mui-disabled { + font-size: small !important; + padding: 0px !important; + padding-left: 5px !important; + } + + + + @media screen and (max-width: 600px) { + .okUpdateData { + font-size: small; + color: green; + font-style: italic; + } + + .koUpdateData { + font-size: small; + color: red; + font-style: italic; + } + + .div_row { + float: left; + //border: 1px solid black; + border-width: 0.01rem; + width: 100%; + margin-bottom: 1rem; + border-radius: 1rem; + } + + .div_row_dialog { + float: left; + //border: 1px solid black; + border-width: 0.01rem; + width: 100%; + margin-bottom: 1rem; + border-radius: 1rem; + } + + .div_row_gauche { + + width: 100%; + border-radius: 10rem !important; + text-align: left; + + margin: 0px !important; + margin-bottom: 0.5rem !important; + margin-top: 0.5rem !important; + } + + .div_row_droite { + width: 100%; + border-radius: 10rem !important; + text-align: left; + + margin: 0px !important; + margin-bottom: 0.5rem !important; + margin-top: 0.5rem !important; + } + + .selectsession { + width: 90%; + height: 3rem; + font-size: small; + border-radius: 0px !important; + } + + .titre1_aide_finance { + margin-top: 1rem; + font-family: "Quicksand", "Signika", sans-serif; + font-size: medium; + text-align: center; + margin-bottom: 0.8rem; + color: white; + cursor: pointer; + font-style: italic; + background-color: gray; + font-weight: normal; + } + + .pieddepage { + z-index: 50; + width: 100%; + float: left; + margin-top: 12rem; + } + + .div_mobile { + position: absolute; + top: 8rem; + z-index: 1; + width: 100%; + } + + .zone_data { + width: 95%; + margin-left: auto; + margin-right: auto; + } + + .detail_class_submenu { + background: #d8edfc; + border-radius: 15px; + margin-right: 1rem; + padding: 0.3rem; + margin-bottom: 0.5rem; + width: 10.5rem; + text-align: center; + border: 1px solid #9cf; + color: #3b3e40; + font-family: "verdana", "Quicksand", "Signika", sans-serif; + font-size: small; + letter-spacing: 0.1rem; + font-weight: normal; + width: 100%; + height: 2rem !important; + } + + .detail_class_submenu:hover:active, + .detail_class_submenu:hover { + background-color: #104277; + color: white; + } + + .detail_class_submenu:focus { + //border: 3px dotted green; + background-color: #104277; + color: white; + } + + .detail_class_submenu_data { + width: 100%; + min-height: 10rem; + background-color: #d8edfc; + padding-left: 5px; + text-align: left; + padding: 0; + border: 0px; + color: #3b3e40; + padding-left: 5px; + font-family: "verdana", "Quicksand", "Signika", sans-serif; + font-size: small; + border-radius: 10px; + border: 1px solid; + } + + + .training_caract { + width: 100%; + padding: 5px; + float: left; + } + + .css-1t8l2tu-MuiInputBase-input-MuiOutlinedInput-input .Mui-disabled { + font: inherit; + letter-spacing: inherit; + color: currentColor; + border: 0; + box-sizing: content-box; + background: none; + background-color: rgba(0, 0, 0, 0); + margin: 0; + -webkit-tap-highlight-color: transparent; + display: block; + min-width: 0; + width: 100%; + -webkit-animation-name: mui-auto-fill-cancel; + animation-name: mui-auto-fill-cancel; + -webkit-animation-duration: 10ms; + animation-duration: 10ms; + height: 3rem !important; + padding: 0 !important; + padding-left: 5px !important; + } + + .css-11u53oe-MuiSelect-select-MuiInputBase-input-MuiOutlinedInput-input { + padding: 1px !important; + } + + .selectsession { + width: 100%; + height: 3rem; + font-size: small; + border-radius: 0px !important; + } + + .session_data { + float: left; + width: 100%; + box-shadow: 1px 1px 10px 1px rgba(0, 0, 0, 0.5); + -webkit-box-shadow: 1px 1px 10px 1px rgba(0, 0, 0, 0.5); + border-radius: 10px; + margin-top: 10px; + margin-bottom: 10px; + } + + .session_caract { + width: 100%; + padding: 5px; + float: left; + text-align: left; + font-size: small; + } + + .session_style { + //background-color: #ECEFF1; + font-size: small !important; + color: black; + width: 100% !important; + height: 2rem !important; + margin: 5px !important; + } + + .css-1x5jdm { + padding: 5px; + } + + .css-1x5jdmq { + padding: 6px !important; + } + + .css-qiwgdb { + padding: 6px !important; + } + + .preview_certif { + display: block; + width: 100%; + height: 180px; + border-radius: 1rem !important; + margin-top: 1rem !important; + } + + .hr_break { + border: 2px solid grey; + } + + .icon_plus { + width: 6%; + } + + .bton_add_session { + background: #c8cfd5; + color: black; + width: 100%; + height: 2rem !important; + } + + .bton_import_excel { + background: #c8cfd5; + color: black; + width: 100% !important; + height: 2rem !important; + } + + .div_row_gauche_etendu { + width: 100%; + } + + .icon_excel { + width: 6%; + } + + + .bton_suppr { + background: transparent; + color: red; + border-radius: 5rem; + font-size: small; + text-align: center; + height: 2.5rem; + width: 100%; + margin-left: 10px; + margin-right: 10px; + } + + .bton_enreg { + border-radius: 5rem; + font-size: small; + background: #81BC3A !important; + text-align: center; + height: 2.5rem; + width: 100%; + color: white; + margin-left: 10px; + margin-right: 10px; + } + + .bton_edit { + border-radius: 5rem; + font-size: small; + background: black !important; + text-align: right; + height: 2.5rem; + width: 100%; + color: white; + margin-left: 10px; + margin-right: 10px; + } + + .bton_annule { + border-radius: 5rem; + font-size: small; + background: lightgray !important; + text-align: right; + height: 2.5rem; + width: 100%; + color: black; + margin-left: 10px; + margin-right: 10px; + } + + .div_row_gauche_image { + float: left; + //border:0px solid black; + border-width: 0.01rem; + border-radius: 1rem; + text-align: left; + } + + .div_row_droite_image { + float: left; + //border:0px solid black; + border-width: 0.01rem; + border-radius: 1rem; + text-align: left; + font-family: "verdana", "Quicksand", "Signika", sans-serif; + font-size: small; + padding-left: 0.2rem; + } + + .tips_img_class { + font-size: smaller; + font-style: italic; + margin-left: 1rem !important; + text-align: left; + float: left; + width: 100%; + padding-right: 10px; + } + + .img_class_logo { + display: block; + width: 128px; + height: 128px; + border-radius: 10px !important; + border: 1px solid black; + float: left; + } + + .bton_supprime_image_class { + font-size: small; + text-align: center; + margin-left: 0px; + box-shadow: 1px 1px 10px 1px rgb(0 0 0 / 15%); + padding: 5px; + padding-left: 10px; + padding-right: 10px; + border: 1px solid rgb(194, 186, 186); + border-radius: 10px; + background: white; + color: red; + margin-top: 0.5rem; + width: 10rem; + cursor: pointer; + } + + .bton_supprime_image_class:hover { + box-shadow: 5px 1px 5px 1px rgb(0 0 0 / 25%); + } + + .bton_image_class { + font-size: small; + text-align: center; + margin-left: 0px; + box-shadow: 1px 1px 10px 1px rgb(0 0 0 / 15%); + padding: 5px; + padding-left: 10px; + padding-right: 10px; + border: 1px solid rgb(194, 186, 186); + border-radius: 10px; + width: 10rem; + cursor: pointer; + } + + .bton_image_class:hover { + box-shadow: 5px 1px 5px 1px rgb(0 0 0 / 25%); + } + + .tick_ok_ko { + max-width: 3%; + cursor: pointer; + padding-top: 4px; + } + + .texte_area { + float: left; + width: 47% !important; + font-size: x-small !important; + font-family: "verdana", "Quicksand", "Signika", sans-serif; + margin: 0.4rem !important; + margin-top: 0px !important; + margin-bottom: 1.5rem !important; + } + + .texte_area_filter { + float: left; + width: 100% !important; + font-size: x-small !important; + font-family: "verdana", "Quicksand", "Signika", sans-serif; + margin-top: 0px !important; + margin-bottom: 2px !important; + } + + .texte_area_filter_value { + float: left !important; + width: 100% !important; + font-size: x-small !important; + font-family: "verdana", "Quicksand", "Signika", sans-serif; + margin: 0.4rem !important; + margin-top: 0px !important; + margin-bottom: 2px !important; + + } + + + .filter_bton_add { + float: left; + width: 40% !important; + font-size: xx-large !important; + margin: 0.4rem !important; + margin-top: 0px !important; + margin-bottom: 2px !important; + text-align: right; + cursor: pointer; + } + + + .div_row { + float: left; + border-width: 0.01rem; + width: 100%; + + border-radius: 1rem; + } + + .div_row_dialog { + float: left; + border-width: 0.01rem; + width: 100%; + margin-bottom: 0.5rem; + border-radius: 1rem; + } + + .div_row_gauche { + float: left; + width: 100%; + border-radius: 1rem; + text-align: left; + } + + .div_row_droite { + float: left; + width: 100%; + border-radius: 1rem; + text-align: left; + + } + + .bton_suppr { + background: transparent; + color: red; + border-radius: 5rem; + font-size: small; + text-align: center; + height: 2.5rem; + width: 100%; + margin-left: 10px; + margin-right: 10px; + margin-bottom: 1rem !important; + } + + .bton_enreg { + border-radius: 5rem; + font-size: small; + background: #81BC3A !important; + text-align: center; + height: 2.5rem; + width: 100%; + color: white; + margin-bottom: 1rem !important; + } + + .bton_edit { + border-radius: 5rem; + font-size: small; + background: black !important; + text-align: right; + height: 2.5rem; + width: 100%; + color: white; + margin-bottom: 1rem !important; + } + + .bton_annule { + border-radius: 5rem; + font-size: small; + background: lightgray !important; + text-align: right; + height: 2.5rem; + width: 100%; + color: black; + margin-bottom: 1rem !important; + } + + + .css-1t10bd6-MuiFormControl-root-MuiTextField-root fieldset { + border-color: transparent !important; + border-radius: 20px !important; + } + + .disabled_style { + //background-color: #ECEFF1; + font-size: small !important; + color: black; + width: 100% !important; + height: 3.5rem !important; + + //border: none !important; + border-radius: 5px; + background: white; + border: solid gainsboro 1px; + + } + + .training_caract { + width: 100%; + + float: left; + } + + .training_text { + width: 100%; + padding: 5px; + float: left; + height: 320px !important; + min-height: 320px !important; + max-height: 320px !important; + margin-bottom: 10px; + } + + .titre_training_text { + font-size: small; + padding-left: 5px; + } + + .css-1t8l2tu-MuiInputBase-input-MuiOutlinedInput-input .Mui-disabled { + font: inherit; + letter-spacing: inherit; + color: currentColor; + border: 0; + box-sizing: content-box; + background: none; + background-color: rgba(0, 0, 0, 0); + margin: 0; + -webkit-tap-highlight-color: transparent; + display: block; + min-width: 0; + width: 100%; + -webkit-animation-name: mui-auto-fill-cancel; + animation-name: mui-auto-fill-cancel; + -webkit-animation-duration: 10ms; + animation-duration: 10ms; + height: 3rem !important; + padding: 0 !important; + padding-left: 5px !important; + } + + .css-11u53oe-MuiSelect-select-MuiInputBase-input-MuiOutlinedInput-input { + padding: 1px !important; + } + + + .block_detail_inscrit { + border: none; + background: #F8F9F9; + padding: 5px; + margin-top: 11rem; + + } + + .div_row_list_pj { + width: 100%; + border-left: 3mm ridge rgba(211, 220, 50, .6); + float: left; + } + + .div_row_list_pj_convention { + width: 100%; + border-left: 3mm ridge rgba(211, 220, 50, .6); + float: left; + } + + .block_en_mass { + width: 100%; + float: left; + margin-bottom: 1rem; + margin-top: 15px; + margin-left: 0px; + } + + .block_en_mass_select { + width: 100%; + float: left; + margin-bottom: 1rem; + } + + .block_en_mass_bton_action { + width: 100%; + float: left; + margin-bottom: 1rem; + padding-top: 0.5rem !important; + } + + + .bton_enreg_dialog { + border-radius: 5rem; + font-size: small; + background: #81BC3A !important; + text-align: center; + height: 2.5rem; + width: 100%; + color: white; + margin-left: 10px; + margin-right: 10px; + } + + + .bton_annule_dialog { + border-radius: 5rem; + font-size: small; + background: lightgray !important; + text-align: right; + height: 2.5rem; + width: 100%; + color: black; + margin-left: 10px; + margin-right: 10px; + } + + + .bton_supprime_dialog { + border-radius: 5rem; + font-size: small; + background: rgb(224, 89, 89) !important; + text-align: right; + height: 2.5rem; + width: auto; + color: white; + margin-left: 10px; + margin-right: 10px; + padding-right: 5px; + padding-left: 5px; + } + + .DialogContent_width { + width: 200px !important; + } + + .img_class_logo_mini { + display: block; + width: 64px; + height: 64px; + border-radius: 10px !important; + border: 1px solid black; + float: left; + } + + } + + @media only screen and (min-width: 601px) and (max-width: 991px) { + .okUpdateData { + font-size: small; + color: green; + font-style: italic; + } + + .koUpdateData { + font-size: small; + color: red; + font-style: italic; + } + + .selectsession { + width: 90%; + height: 3rem; + font-size: small; + border-radius: 0px !important; + } + + .titre1_aide_finance { + margin-top: 1rem; + font-family: "Quicksand", "Signika", sans-serif; + font-size: medium; + text-align: center; + margin-bottom: 0.8rem; + color: white; + cursor: pointer; + font-style: italic; + background-color: gray; + font-weight: normal; + } + + .pieddepage { + z-index: 50; + width: 100%; + float: left; + margin-top: 12rem; + } + + .div_mobile { + position: absolute; + top: 8rem; + z-index: 1; + width: 100%; + } + + .zone_data { + width: 95%; + margin-left: auto; + margin-right: auto; + } + + .detail_class_submenu { + background: #d8edfc; + border-radius: 15px; + margin-right: 1rem; + padding: 0.3rem; + margin-bottom: 0.5rem; + //width: 11rem; + text-align: center; + border: 1px solid #9cf; + color: #3b3e40; + font-family: "verdana", "Quicksand", "Signika", sans-serif; + //font-size: small; + letter-spacing: 0.1rem; + font-weight: normal; + height: 2rem !important; + font-size: 11px; + min-width: 10rem; + } + + .detail_class_submenu:hover:active, + .detail_class_submenu:hover { + background-color: #104277; + color: white; + } + + .detail_class_submenu:focus { + //border: 3px dotted green; + background-color: #104277; + color: white; + } + + .detail_class_submenu_data { + width: 100%; + min-height: 10rem; + background-color: #d8edfc; + padding-left: 5px; + text-align: left; + padding: 0; + border: 0px; + color: #3b3e40; + padding-left: 5px; + font-family: "verdana", "Quicksand", "Signika", sans-serif; + font-size: small; + border-radius: 10px; + border: 1px solid; + } + + .disabled_style { + //background-color: #ECEFF1; + font-size: small !important; + color: black; + width: 90% !important; + height: 3.5rem !important; + margin: 5px !important; + //border: none !important; + border-radius: 5px; + background: white; + border: solid gainsboro 1px; + } + + + .css-1t8l2tu-MuiInputBase-input-MuiOutlinedInput-input .Mui-disabled { + font: inherit; + letter-spacing: inherit; + color: currentColor; + border: 0; + box-sizing: content-box; + background: none; + background-color: rgba(0, 0, 0, 0); + margin: 0; + -webkit-tap-highlight-color: transparent; + display: block; + min-width: 0; + width: 100%; + -webkit-animation-name: mui-auto-fill-cancel; + animation-name: mui-auto-fill-cancel; + -webkit-animation-duration: 10ms; + animation-duration: 10ms; + height: 3rem !important; + padding: 0 !important; + padding-left: 5px !important; + } + + .css-11u53oe-MuiSelect-select-MuiInputBase-input-MuiOutlinedInput-input { + padding: 1px !important; + } + + .selectsession { + width: 90%; + height: 3rem; + font-size: small; + border-radius: 0px !important; + } + + .session_data { + float: left; + width: 100%; + box-shadow: 1px 1px 10px 1px rgba(0, 0, 0, 0.5); + -webkit-box-shadow: 1px 1px 10px 1px rgba(0, 0, 0, 0.5); + border-radius: 10px; + margin-top: 10px; + margin-bottom: 10px; + + } + + .session_caract { + width: 50%; + padding: 5px; + float: left; + text-align: left; + font-size: small; + } + + .session_style { + //background-color: #ECEFF1; + font-size: small !important; + color: black; + width: 100% !important; + height: 2rem !important; + margin: 5px !important; + } + + .css-1x5jdm { + padding: 5px; + } + + + .css-1x5jdmq { + padding: 6px !important; + padding-bottom: 0px !important; + } + + .css-qiwgdb { + padding: 6px !important; + } + + .preview_certif { + display: block; + width: 90%; + height: 200px; + border-radius: 1rem !important; + margin-top: 1rem !important; + } + + .preview_certif:hover { + transform: scale(1.3); + margin-left: 5rem; + } + + .hr_break { + border: 3px solid grey; + } + + .icon_plus { + width: 6%; + } + + .bton_add_session { + background: #c8cfd5; + color: black; + width: 50%; + height: 2rem !important; + } + + + + .bton_import_excel { + background: #c8cfd5; + color: black; + width: 65% !important; + height: 2rem !important; + } + + .div_row_gauche_etendu { + width: 80% !important; + } + + .icon_excel { + width: 5%; + } + + + .bton_suppr { + background: transparent; + color: red; + border-radius: 5rem; + font-size: small; + text-align: center; + height: 2.5rem; + width: 80%; + margin-left: 10px; + margin-right: 10px; + } + + .bton_enreg { + border-radius: 5rem; + font-size: small; + background: #81BC3A !important; + text-align: center; + height: 2.5rem; + width: 80%; + color: white; + margin-left: 10px; + margin-right: 10px; + } + + .bton_edit { + border-radius: 5rem; + font-size: small; + background: black !important; + text-align: right; + height: 2.5rem; + width: 80%; + color: white; + margin-left: 10px; + margin-right: 10px; + } + + .bton_annule { + border-radius: 5rem; + font-size: small; + background: lightgray !important; + text-align: right; + height: 2.5rem; + width: 80%; + color: black; + margin-left: 10px; + margin-right: 10px; + } + + .div_row_gauche_image { + float: left; + //border:0px solid black; + border-width: 0.01rem; + border-radius: 1rem; + text-align: left; + } + + .div_row_droite_image { + float: left; + //border:0px solid black; + border-width: 0.01rem; + border-radius: 1rem; + text-align: left; + font-family: "verdana", "Quicksand", "Signika", sans-serif; + font-size: small; + padding-left: 0.2rem; + } + + .tips_img_class { + font-size: small; + font-style: italic; + margin-left: 1rem !important; + text-align: left; + float: left; + width: 100%; + } + + .img_class_logo { + display: block; + width: 168px; + height: 168px; + border-radius: 10px !important; + border: 1px solid black; + float: left; + } + + .bton_supprime_image_class { + font-size: small; + text-align: center; + margin-left: 0px; + box-shadow: 1px 1px 10px 1px rgb(0 0 0 / 15%); + padding: 5px; + padding-left: 10px; + padding-right: 10px; + border: 1px solid rgb(194, 186, 186); + border-radius: 10px; + background: white; + color: red; + margin-top: 0.5rem; + width: 15rem; + cursor: pointer; + } + + .bton_supprime_image_class:hover { + box-shadow: 5px 1px 5px 1px rgb(0 0 0 / 25%); + } + + .bton_image_class { + font-size: small; + text-align: center; + margin-left: 0px; + box-shadow: 1px 1px 10px 1px rgb(0 0 0 / 15%); + padding: 5px; + padding-left: 10px; + padding-right: 10px; + border: 1px solid rgb(194, 186, 186); + border-radius: 10px; + width: 15rem; + cursor: pointer; + } + + .bton_image_class:hover { + box-shadow: 5px 1px 5px 1px rgb(0 0 0 / 25%); + } + + .tick_ok_ko { + max-width: 3%; + cursor: pointer; + padding-top: 4px; + } + + .texte_area { + float: left; + width: 47% !important; + font-size: x-small !important; + font-family: "verdana", "Quicksand", "Signika", sans-serif; + margin: 0.4rem !important; + margin-top: 0px !important; + margin-bottom: 1.5rem !important; + } + + .texte_area_filter { + float: left; + width: 40% !important; + font-size: x-small !important; + font-family: "verdana", "Quicksand", "Signika", sans-serif; + margin: 0.4rem !important; + margin-top: 0px !important; + margin-bottom: 2px !important; + } + + .texte_area_filter_value { + float: left !important; + width: 40% !important; + font-size: x-small !important; + font-family: "verdana", "Quicksand", "Signika", sans-serif; + margin: 0.4rem !important; + margin-top: 0px !important; + margin-bottom: 2px !important; + + } + + + .filter_bton_add { + float: left; + width: 5% !important; + font-size: large !important; + margin: 0.4rem !important; + margin-top: 0px !important; + margin-bottom: 2px !important; + text-align: right; + cursor: pointer; + margin-top: 1rem !important; + } + + .div_row { + float: left; + //border: 1px solid black; + border-width: 0.01rem; + width: 100%; + //margin-bottom: 1rem; + border-radius: 1rem; + } + + .div_row_dialog { + float: left; + //border: 1px solid black; + border-width: 0.01rem; + width: 100%; + margin-bottom: 0.5rem; + border-radius: 1rem; + } + + .div_row_gauche { + float: left; + // border:1px solid black; + // border-width:0.01rem; + width: 45%; + border-radius: 1rem; + text-align: left; + } + + .div_row_droite { + float: right; + //border:1px solid black; + //border-width:0.01rem; + width: 45%; + border-radius: 1rem; + text-align: right; + } + + .bton_suppr { + background: transparent; + color: red; + border-radius: 5rem; + font-size: small; + text-align: center; + height: 2.5rem; + width: 40%; + margin-left: 10px; + margin-right: 10px; + min-width: 15rem; + } + + .bton_enreg { + border-radius: 5rem; + font-size: small; + background: #81BC3A !important; + text-align: center; + height: 2.5rem; + width: 40%; + color: white; + margin-left: 10px; + margin-right: 10px; + min-width: 15rem; + } + + .bton_edit { + border-radius: 5rem; + font-size: small; + background: black !important; + text-align: right; + height: 2.5rem; + width: 40%; + color: white; + margin-left: 10px; + margin-right: 10px; + min-width: 15rem; + } + + .bton_annule { + border-radius: 5rem; + font-size: small; + background: lightgray !important; + text-align: right; + height: 2.5rem; + width: 40%; + color: black; + margin-left: 10px; + margin-right: 10px; + min-width: 15rem; + } + + + .css-1t10bd6-MuiFormControl-root-MuiTextField-root fieldset { + border-color: transparent !important; + border-radius: 20px !important; + } + + + .training_caract { + width: 30%; + padding: 5px; + float: left; + } + + .training_text { + width: 50%; + padding: 5px; + float: left; + height: 320px !important; + min-height: 320px !important; + max-height: 320px !important; + margin-bottom: 10px; + } + + .titre_training_text { + font-size: small; + padding-left: 5px; + } + + .css-1t8l2tu-MuiInputBase-input-MuiOutlinedInput-input .Mui-disabled { + font: inherit; + letter-spacing: inherit; + color: currentColor; + border: 0; + box-sizing: content-box; + background: none; + background-color: rgba(0, 0, 0, 0); + margin: 0; + -webkit-tap-highlight-color: transparent; + display: block; + min-width: 0; + width: 100%; + -webkit-animation-name: mui-auto-fill-cancel; + animation-name: mui-auto-fill-cancel; + -webkit-animation-duration: 10ms; + animation-duration: 10ms; + height: 3rem !important; + padding: 0 !important; + padding-left: 5px !important; + } + + .css-11u53oe-MuiSelect-select-MuiInputBase-input-MuiOutlinedInput-input { + padding: 1px !important; + } + + .block_detail_inscrit { + border: none; + background: #F8F9F9; + padding: 5px; + margin-top: 11rem; + + } + + .div_row_list_pj { + width: 50%; + border-left: 3mm ridge rgba(211, 220, 50, .6); + float: left; + } + + .div_row_list_pj_convention { + width: 100%; + border-left: 3mm ridge rgba(211, 220, 50, .6); + float: left; + } + + .block_en_mass { + width: 50%; + float: left; + margin-bottom: 1rem; + margin-top: 15px; + margin-left: 0px; + } + + .block_en_mass_select { + width: 45%; + float: left; + margin-bottom: 1rem; + } + + .block_en_mass_bton_action { + width: 45%; + float: left; + margin-bottom: 1rem; + padding-top: 0.5rem !important; + } + + + .bton_enreg_dialog { + border-radius: 5rem; + font-size: small; + background: #81BC3A !important; + text-align: center; + height: 2.5rem; + width: 80%; + color: white; + margin-left: 10px; + margin-right: 10px; + } + + + .bton_annule_dialog { + border-radius: 5rem; + font-size: small; + background: lightgray !important; + text-align: right; + height: 2.5rem; + width: 80%; + color: black; + margin-left: 10px; + margin-right: 10px; + } + + + .bton_supprime_dialog { + border-radius: 5rem; + font-size: small; + background: rgb(224, 89, 89) !important; + text-align: right; + height: 2.5rem; + width: auto; + color: white; + margin-left: 10px; + margin-right: 10px; + padding-right: 5px; + padding-left: 5px; + } + + .DialogContent_width { + width: 500px !important; + } + + .img_class_logo_mini { + display: block; + width: 64px; + height: 64px; + border-radius: 10px !important; + border: 1px solid black; + float: left; + } + + } + + @media only screen and (min-width: 992px) and (max-width: 1199px) { + .okUpdateData { + font-size: small; + color: green; + font-style: italic; + } + + .koUpdateData { + font-size: small; + color: red; + font-style: italic; + } + + .div_row { + float: left; + //border: 1px solid black; + border-width: 0.01rem; + width: 100%; + margin-bottom: 1rem; + border-radius: 1rem; + } + + + .div_row_dialog { + float: left; + //border: 1px solid black; + border-width: 0.01rem; + width: 100%; + margin-bottom: 1rem; + border-radius: 1rem; + } + + .div_row_gauche { + float: left; + // border:1px solid black; + // border-width:0.01rem; + width: 45%; + border-radius: 1rem; + } + + .div_row_droite { + float: right; + //border:1px solid black; + //border-width:0.01rem; + width: 45%; + border-radius: 1rem; + text-align: right; + } + + .selectsession { + width: 90%; + height: 3rem; + font-size: small; + border-radius: 0px !important; + } + + .titre1_aide_finance { + margin-top: 1rem; + font-family: "Quicksand", "Signika", sans-serif; + font-size: medium; + text-align: center; + margin-bottom: 0.8rem; + color: white; + cursor: pointer; + font-style: italic; + background-color: gray; + font-weight: normal; + } + + .pieddepage { + z-index: 50; + width: 100%; + float: left; + margin-top: 12rem; + } + + .div_mobile { + position: absolute; + top: 8rem; + z-index: 1; + width: 100%; + } + + .zone_data { + width: 95%; + margin-left: auto; + margin-right: auto; + } + + .detail_class_submenu { + background: #d8edfc; + border-radius: 15px; + margin-right: 1rem; + padding: 0.3rem; + margin-bottom: 0.5rem; + // width: 11rem; + text-align: center; + border: 1px solid #9cf; + color: #3b3e40; + font-family: "verdana", "Quicksand", "Signika", sans-serif; + //font-size: small; + letter-spacing: 0.1rem; + font-weight: normal; + height: 2rem !important; + font-size: 11px; + min-width: 10rem; + } + + .detail_class_submenu:hover:active, + .detail_class_submenu:hover { + background-color: #104277; + color: white; + } + + .detail_class_submenu:focus { + //border: 3px dotted green; + background-color: #104277; + color: white; + } + + .detail_class_submenu_data { + width: 100%; + min-height: 10rem; + background-color: #d8edfc; + padding-left: 5px; + text-align: left; + padding: 0; + border: 0px; + color: #3b3e40; + padding-left: 5px; + font-family: "verdana", "Quicksand", "Signika", sans-serif; + font-size: small; + border-radius: 10px; + border: 1px solid; + } + + .disabled_style { + //background-color: #ECEFF1; + font-size: small !important; + color: black; + width: 90% !important; + height: 3.5rem !important; + margin: 5px !important; + //border: none !important; + border-radius: 5px; + background: white; + border: solid gainsboro 1px; + } + + .training_caract { + width: 30%; + padding: 5px; + float: left; + } + + .training_text { + width: 50%; + padding: 5px; + float: left; + height: 320px !important; + min-height: 320px !important; + max-height: 320px !important; + margin-bottom: 10px; + } + + .titre_training_text { + font-size: small; + padding-left: 5px; + } + + .css-1t8l2tu-MuiInputBase-input-MuiOutlinedInput-input .Mui-disabled { + font: inherit; + letter-spacing: inherit; + color: currentColor; + border: 0; + box-sizing: content-box; + background: none; + background-color: rgba(0, 0, 0, 0); + margin: 0; + -webkit-tap-highlight-color: transparent; + display: block; + min-width: 0; + width: 100%; + -webkit-animation-name: mui-auto-fill-cancel; + animation-name: mui-auto-fill-cancel; + -webkit-animation-duration: 10ms; + animation-duration: 10ms; + height: 3rem !important; + padding: 0 !important; + padding-left: 5x !important; + } + + .css-11u53oe-MuiSelect-select-MuiInputBase-input-MuiOutlinedInput-input { + padding: 1px !important; + } + + .selectsession { + width: 90%; + height: 3rem; + font-size: small; + border-radius: 0px !important; + } + + .session_data { + float: left; + width: 100%; + box-shadow: 1px 1px 10px 1px rgba(0, 0, 0, 0.5); + -webkit-box-shadow: 1px 1px 10px 1px rgba(0, 0, 0, 0.5); + border-radius: 10px; + margin-top: 10px; + margin-bottom: 10px; + } + + .session_caract { + width: 33%; + padding: 5px; + float: left; + text-align: left; + font-size: small; + } + + .session_style { + //background-color: #ECEFF1; + font-size: small !important; + color: black; + width: 100% !important; + height: 2rem !important; + margin: 5px !important; + } + + .css-1x5jdm { + padding: 5px; + } + + .css-1x5jdmq { + padding: 6px !important; + padding-bottom: 0px !important; + } + + .css-qiwgdb { + padding: 6px !important; + } + + .preview_certif { + display: block; + width: 90%; + height: 180px; + border-radius: 1rem !important; + margin-top: 1rem !important; + } + + .preview_certif:hover { + transform: scale(1.3); + margin-left: 5rem; + } + + .hr_break { + border: 3px solid grey; + } + + .icon_plus { + width: 8%; + } + + .bton_add_session { + background: #c8cfd5; + color: black; + width: 40%; + height: 2rem !important; + } + .bton_add_session_create_automatic { + background: #c8cfd5; + color: black; + width:60% !important; + height: 2rem !important; + } + + .bton_import_excel { + background: #c8cfd5; + color: black; + width: 50% !important; + height: 2rem !important; + } + + .div_row_gauche_etendu { + width: 80%; + } + + .icon_excel { + width: 5%; + } + + + .bton_suppr { + background: transparent; + color: red; + border-radius: 5rem; + font-size: small; + text-align: center; + height: 2.5rem; + width: 65%; + margin-left: 10px; + margin-right: 10px; + } + + .bton_enreg { + border-radius: 5rem; + font-size: small; + background: #81BC3A !important; + text-align: center; + height: 2.5rem; + width: 65%; + color: white; + margin-left: 10px; + margin-right: 10px; + } + + .bton_edit { + border-radius: 5rem; + font-size: small; + background: black !important; + text-align: right; + height: 2.5rem; + width: 65%; + color: white; + margin-left: 10px; + margin-right: 10px; + } + + .bton_annule { + border-radius: 5rem; + font-size: small; + background: lightgray !important; + text-align: right; + height: 2.5rem; + width: 65%; + color: black; + margin-left: 10px; + margin-right: 10px; + } + + + .div_row_gauche_image { + float: left; + //border:0px solid black; + border-width: 0.01rem; + border-radius: 1rem; + text-align: left; + } + + .div_row_droite_image { + float: left; + //border:0px solid black; + border-width: 0.01rem; + border-radius: 1rem; + text-align: left; + font-family: "verdana", "Quicksand", "Signika", sans-serif; + font-size: small; + padding-left: 0.2rem; + } + + .tips_img_class { + font-size: small; + font-style: italic; + margin-left: 1rem !important; + text-align: left; + float: left; + width: 100%; + } + + .img_class_logo { + display: block; + width: 168px; + height: 168px; + border-radius: 10px !important; + border: 1px solid black; + float: left; + } + + .bton_supprime_image_class { + font-size: small; + text-align: center; + margin-left: 0px; + box-shadow: 1px 1px 10px 1px rgb(0 0 0 / 15%); + padding: 5px; + padding-left: 10px; + padding-right: 10px; + border: 1px solid rgb(194, 186, 186); + border-radius: 10px; + background: white; + color: red; + margin-top: 0.5rem; + width: 15rem; + cursor: pointer; + } + + .bton_supprime_image_class:hover { + box-shadow: 5px 1px 5px 1px rgb(0 0 0 / 25%); + } + + .bton_image_class { + font-size: small; + text-align: center; + margin-left: 0px; + box-shadow: 1px 1px 10px 1px rgb(0 0 0 / 15%); + padding: 5px; + padding-left: 10px; + padding-right: 10px; + border: 1px solid rgb(194, 186, 186); + border-radius: 10px; + width: 15rem; + cursor: pointer; + } + + .bton_image_class:hover { + box-shadow: 5px 1px 5px 1px rgb(0 0 0 / 25%); + } + + .tick_ok_ko { + max-width: 3%; + cursor: pointer; + padding-top: 4px; + } + + .texte_area { + float: left; + width: 47% !important; + font-size: x-small !important; + font-family: "verdana", "Quicksand", "Signika", sans-serif; + margin: 0.4rem !important; + margin-top: 0px !important; + margin-bottom: 1.5rem !important; + } + + .texte_area_filter { + float: left; + width: 40% !important; + font-size: x-small !important; + font-family: "verdana", "Quicksand", "Signika", sans-serif; + margin: 0.4rem !important; + margin-top: 0px !important; + margin-bottom: 2px !important; + } + + .texte_area_filter_value { + float: left !important; + width: 40% !important; + font-size: x-small !important; + font-family: "verdana", "Quicksand", "Signika", sans-serif; + margin: 0.4rem !important; + margin-top: 0px !important; + margin-bottom: 2px !important; + + } + + + .filter_bton_add { + float: left; + width: 5% !important; + font-size: xx-large !important; + margin: 0.4rem !important; + margin-top: 0px !important; + margin-bottom: 2px !important; + text-align: right; + cursor: pointer; + } + + + .titre1 { + font-family: "Quicksand", "Signika", sans-serif; + font-size: medium; + text-align: center; + margin-bottom: 0.8rem; + color: white; + cursor: pointer; + font-style: italic; + background-color: gray; + font-weight: normal; + } + + .block_detail_inscrit { + border: none; + background: #F8F9F9; + padding: 5px; + margin-top: 6rem; + + } + + .div_row_list_pj { + width: 30%; + border-left: 3mm ridge rgba(211, 220, 50, .6); + float: left; + } + + .div_row_list_pj_convention { + width: 100%; + border-left: 3mm ridge rgba(211, 220, 50, .6); + float: left; + } + + .block_en_mass { + width: 50%; + float: left; + margin-bottom: 1rem; + margin-top: 15px; + margin-left: 0px; + } + + .block_en_mass_select { + width: 45%; + float: left; + margin-bottom: 1rem; + } + + .block_en_mass_bton_action { + width: 45%; + float: left; + margin-bottom: 1rem; + padding-top: 0.5rem !important; + } + + + .bton_enreg_dialog { + border-radius: 5rem; + font-size: small; + background: #81BC3A !important; + text-align: center; + height: 2.5rem; + width: 80%; + color: white; + margin-left: 10px; + margin-right: 10px; + } + + + .bton_annule_dialog { + border-radius: 5rem; + font-size: small; + background: lightgray !important; + text-align: right; + height: 2.5rem; + width: 80%; + color: black; + margin-left: 10px; + margin-right: 10px; + } + + + .bton_supprime_dialog { + border-radius: 5rem; + font-size: small; + background: rgb(224, 89, 89) !important; + text-align: right; + height: 2.5rem; + width: auto; + color: white; + margin-left: 10px; + margin-right: 10px; + padding-right: 5px; + padding-left: 5px; + } + + .DialogContent_width { + width: 500px !important; + } + + .img_class_logo_mini { + display: block; + width: 112px; + height: 112px; + border-radius: 10px !important; + border: 1px solid black; + float: left; + } + + } + + @media only screen and (min-width: 1200px) { + .okUpdateData { + font-size: small; + color: green; + font-style: italic; + } + + .koUpdateData { + font-size: small; + color: red; + font-style: italic; + } + + .div_row { + float: left; + //border: 1px solid black; + border-width: 0.01rem; + width: 100%; + //margin-bottom: 1rem; + border-radius: 1rem; + } + + .div_row_dialog { + float: left; + //border: 1px solid black; + border-width: 0.01rem; + width: 100%; + margin-bottom: 0.5rem; + border-radius: 2rem; + } + + .div_row_gauche { + float: left; + // border:1px solid black; + // border-width:0.01rem; + width: 45%; + border-radius: 1rem; + } + + .div_row_droite { + float: right; + //border:1px solid black; + //border-width:0.01rem; + width: 45%; + border-radius: 1rem; + text-align: right; + } + + .selectsession { + width: 90%; + height: 3rem; + font-size: small; + border-radius: 0px !important; + } + + .titre1_aide_finance { + margin-top: 1rem; + font-family: "Quicksand", "Signika", sans-serif; + font-size: medium; + text-align: center; + margin-bottom: 0.8rem; + color: white; + cursor: pointer; + font-style: italic; + background-color: gray; + font-weight: normal; + } + + .pieddepage { + z-index: 50; + width: 100%; + float: left; + margin-top: 12rem; + } + + .div_mobile { + position: absolute; + top: 8rem; + z-index: 1; + width: 100%; + } + + .zone_data { + width: 95%; + margin-left: auto; + margin-right: auto; + } + + .detail_class_submenu { + background: #d8edfc; + border-radius: 15px; + margin-right: 1rem; + padding: 0.3rem; + margin-bottom: 0.5rem; + //min-width: 12rem; + text-align: center; + border: 1px solid #9cf; + color: #3b3e40; + font-family: "verdana", "Quicksand", "Signika", sans-serif; + //font-size: small; + letter-spacing: 0.1rem; + font-weight: normal; + height: 2rem !important; + font-size: 11px; + min-width: 10rem; + } + + .detail_class_submenu:hover:active, + .detail_class_submenu:hover { + background-color: #104277; + color: white; + } + + .detail_class_submenu:focus { + //border: 3px dotted green; + background-color: #104277; + color: white; + } + + .detail_class_submenu_data { + width: 100%; + min-height: 10rem; + background-color: #d8edfc; + padding-left: 5px; + text-align: left; + padding: 0; + border: 0px; + color: #3b3e40; + padding-left: 5px; + font-family: "verdana", "Quicksand", "Signika", sans-serif; + font-size: small; + border-radius: 10px; + border: 1px solid; + } + + .disabled_style { + //background-color: #ECEFF1; + font-size: small !important; + color: black; + width: 90% !important; + height: 3.5rem !important; + margin: 5px !important; + //border: none !important; + border-radius: 5px; + background: white; + border: solid gainsboro 1px; + } + + .disabled_style_moitier { + //background-color: #ECEFF1; + font-size: small !important; + color: black; + width: 45% !important; + height: 3.5rem !important; + margin: 5px !important; + //border: none !important; + border-radius: 5px; + background: white; + border: solid gainsboro 1px; + float: left; + } + + .training_caract { + width: 30%; + padding: 5px; + float: left; + } + .training_text { + width: 50%; + padding: 5px; + float: left; + height: 320px !important; + min-height: 320px !important; + max-height: 320px !important; + margin-bottom: 10px; + } + + .titre_training_text { + font-size: small; + padding-left: 5px; + } + + .css-1t8l2tu-MuiInputBase-input-MuiOutlinedInput-input .Mui-disabled { + font: inherit; + letter-spacing: inherit; + color: currentColor; + border: 0; + box-sizing: content-box; + background: none; + background-color: rgba(0, 0, 0, 0); + margin: 0; + -webkit-tap-highlight-color: transparent; + display: block; + min-width: 0; + width: 100%; + -webkit-animation-name: mui-auto-fill-cancel; + animation-name: mui-auto-fill-cancel; + -webkit-animation-duration: 10ms; + animation-duration: 10ms; + height: 3rem !important; + padding: 0 !important; + padding-left: 5px !important; + } + + .css-11u53oe-MuiSelect-select-MuiInputBase-input-MuiOutlinedInput-input { + padding: 1px !important; + } + + .selectsession { + width: 90%; + height: 3rem; + font-size: small; + border-radius: 0px !important; + } + + .session_data { + float: left; + width: 100%; + box-shadow: 1px 1px 10px 1px rgba(0, 0, 0, 0.5); + -webkit-box-shadow: 1px 1px 10px 1px rgba(0, 0, 0, 0.5); + border-radius: 10px; + margin-top: 10px; + margin-bottom: 10px; + } + + .session_caract { + width: 33%; + padding: 5px; + float: left; + text-align: left; + font-size: small; + } + + .session_style { + //background-color: #ECEFF1; + font-size: small !important; + color: black; + width: 100% !important; + height: 2rem !important; + margin: 5px !important; + } + + .preview_certif { + display: block; + width: 90%; + height: 200px; + border-radius: 1rem !important; + margin-top: 1rem !important; + } + + .preview_certif:hover { + transform: scale(1.4); + margin-left: 10rem; + } + + + .action_mass { + border-radius: 5px; + font-size: small; + padding: 0.3rem; + width: 40%; + background: #81BC3A; + height: 2.5rem; + } + + + .session_open_close { + cursor: pointer; + text-align: right; + font-size: small; + margin-right: 10px; + } + + .hr_break { + border: 5px solid grey; + } + + .icon_plus { + width: 8%; + } + + .bton_add_session { + background: #c8cfd5; + color: black; + width: 20% !important; + height: 2rem !important; + } + + .bton_add_session_create_automatic { + background: #c8cfd5; + color: black; + width: 40% !important; + height: 2rem !important; + } + + .bton_import_excel { + background: #c8cfd5; + color: black; + width: 40% !important; + height: 2rem !important; + } + + .div_row_gauche_etendu { + width: 80%; + } + + .icon_excel { + width: 5%; + } + + .bton_envoyer { + border-radius: 5px; + font-size: small; + padding: 0.3rem; + width: 60%; + background: #81BC3A; + } + + + .bton_traiter_en_mass { + border-radius: 5px; + font-size: small; + padding: 0.3rem; + width: 40%; + background: #81BC3A !important; + margin-left: 5%; + height: 2.5rem; + color: white !important; + + } + + .bton_traiter_en_mass:hover{ + border-radius: 5px; + font-size: small; + padding: 0.3rem; + width: 40%; + background: #81BC3A !important; + margin-left: 5%; + height: 2.5rem; + color: white !important; + + } + + + + .bton_fermer { + border-radius: 5px; + font-size: small; + padding: 0.3rem; + width: 60%; + background-color: white; + color: #104277 !important; + } + + + .enable_style { + background-color: #FFFFFF; + } + + + + .css-1t8l2tu-MuiInputBase-input-MuiOutlinedInput-input:invalid { + padding-top: 5px !important; + padding-bottom: 5px !important; + padding-left: 5px !important; + } + + .css-1t10bd6-MuiFormControl-root-MuiTextField-root fieldset { + border-color: transparent !important; + border-radius: 20px !important; + } + + .bton_emarge { + border-radius: 5rem; + font-size: 11px; + padding: 0.5rem; + background: rgb(129, 188, 58); + margin-left: 5px; + margin-right: 5px; + color: white; + cursor: pointer; + box-shadow: 5px 1px 5px 1px rgb(0 0 0 / 25%); + } + + .bton_emarge:hover { + border-radius: 5rem; + font-size: 11px; + padding: 0.5rem; + background: rgb(129, 188, 58); + margin-left: 5px; + margin-right: 5px; + color: white; + cursor: pointer; + + box-shadow: 5px 1px 5px 1px rgb(0 0 0 / 25%); + } + + .css-1x5jdm { + padding: 5px; + } + + + .css-1x5jdmq { + padding: 6px !important; + height: 3rem ! important; + padding-bottom: 0px !important; + } + + .css-qiwgdb { + padding: 6px !important; + } + + + .bton_suppr { + background: transparent; + color: red; + border-radius: 5rem; + font-size: small; + text-align: center; + height: 2.5rem; + width: 40%; + margin-left: 10px; + margin-right: 10px; + } + + .bton_enreg { + border-radius: 5rem; + font-size: small; + background: #81BC3A !important; + text-align: center; + height: 2.5rem; + width: 40%; + color: white; + margin-left: 10px; + margin-right: 10px; + } + + .bton_edit { + border-radius: 5rem; + font-size: small; + background: black !important; + text-align: right; + height: 2.5rem; + width: 40%; + color: white; + margin-left: 10px; + margin-right: 10px; + } + + .bton_annule { + border-radius: 5rem; + font-size: small; + background: lightgray !important; + text-align: right; + height: 2.5rem; + width: 40%; + color: black; + margin-left: 10px; + margin-right: 10px; + } + + + + .div_row_gauche_image { + float: left; + //border:0px solid black; + border-width: 0.01rem; + border-radius: 1rem; + text-align: left; + } + + .div_row_droite_image { + float: left; + //border:0px solid black; + border-width: 0.01rem; + border-radius: 1rem; + text-align: left; + font-family: "verdana", "Quicksand", "Signika", sans-serif; + font-size: small; + padding-left: 0.2rem; + } + + .tips_img_class { + font-size: small; + font-style: italic; + margin-left: 1rem !important; + text-align: left; + float: left; + width: 100%; + } + + .img_class_logo { + display: block; + width: 170px; + height: 168px; + border-radius: 10px !important; + border: 1px solid black; + float: left; + } + + .bton_supprime_image_class { + font-size: small; + text-align: center; + margin-left: 0px; + box-shadow: 1px 1px 10px 1px rgb(0 0 0 / 15%); + padding: 5px; + padding-left: 10px; + padding-right: 10px; + border: 1px solid rgb(194, 186, 186); + border-radius: 10px; + background: white; + color: red; + margin-top: 0.5rem; + width: 15rem; + cursor: pointer; + } + + .bton_supprime_image_class:hover { + box-shadow: 5px 1px 5px 1px rgb(0 0 0 / 25%); + } + + .bton_image_class { + font-size: small; + text-align: center; + margin-left: 0px; + box-shadow: 1px 1px 10px 1px rgb(0 0 0 / 15%); + padding: 5px; + padding-left: 10px; + padding-right: 10px; + border: 1px solid rgb(194, 186, 186); + border-radius: 10px; + width: 15rem; + cursor: pointer; + } + + .bton_image_class:hover { + box-shadow: 5px 1px 5px 1px rgb(0 0 0 / 25%); + } + + .tick_ok_ko { + max-width: 3%; + cursor: pointer; + padding-top: 4px; + } + + .texte_area { + float: left; + width: 47% !important; + font-size: x-small !important; + font-family: "verdana", "Quicksand", "Signika", sans-serif; + margin: 0.4rem !important; + margin-top: 0px !important; + margin-bottom: 1.5rem !important; + } + + .texte_area_filter { + float: left; + width: 40% !important; + font-size: x-small !important; + font-family: "verdana", "Quicksand", "Signika", sans-serif; + margin: 0.4rem !important; + margin-top: 0px !important; + margin-bottom: 2px !important; + } + + .texte_area_filter_value { + float: left !important; + width: 40% !important; + font-size: x-small !important; + font-family: "verdana", "Quicksand", "Signika", sans-serif; + margin: 0.4rem !important; + margin-top: 0px !important; + margin-bottom: 2px !important; + + } + + + .filter_bton_add { + float: left; + width: 5% !important; + font-size: xx-large !important; + margin: 0.4rem !important; + margin-top: 0px !important; + margin-bottom: 2px !important; + text-align: right; + cursor: pointer; + } + + + .titre1 { + font-family: "Quicksand", "Signika", sans-serif; + font-size: medium; + text-align: center; + margin-bottom: 0.8rem; + color: white; + cursor: pointer; + font-style: italic; + background-color: gray; + font-weight: normal; + } + + .file_ariane { + font-size: large; + font-weight: 600; + width: 100%; + text-align: center; + } + + + + .block_detail_inscrit { + border: none; + background: #F8F9F9; + padding: 5px; + margin-top: 6rem; + + } + + .div_row_list_pj { + width: 30%; + border-left: 3mm ridge rgba(211, 220, 50, .6); + float: left; + } + + + .div_row_list_pj_convention { + width: 100%; + border-left: 3mm ridge rgba(211, 220, 50, .6); + float: left; + } + + .block_en_mass { + width: 50%; + float: left; + margin-bottom: 1rem; + margin-top: 15px; + margin-left: 0px; + } + + .block_en_mass_select { + width: 45%; + float: left; + margin-bottom: 1rem; + } + + .block_en_mass_bton_action { + width: 45%; + float: left; + margin-bottom: 1rem; + padding-top: 0.5rem !important; + } + + .bton_enreg_dialog { + border-radius: 5rem; + font-size: small; + background: #81BC3A !important; + text-align: center; + height: 2.5rem; + width: 80%; + color: white; + margin-left: 10px; + margin-right: 10px; + } + + + .bton_annule_dialog { + border-radius: 5rem; + font-size: small; + background: lightgray !important; + text-align: right; + height: 2.5rem; + width: 80%; + color: black; + margin-left: 10px; + margin-right: 10px; + } + + + .bton_supprime_dialog { + border-radius: 5rem; + font-size: small; + background: rgb(224, 89, 89) !important; + text-align: right; + height: 2.5rem; + width: auto; + color: white; + margin-left: 10px; + margin-right: 10px; + padding-right: 5px; + padding-left: 5px; + } + + + .DialogContent_width { + width: 600px !important; + } + + .DialogContent_width_session { + width: 600px !important; + } + + + .div_row_gauche_dialog_session { + width: 30%; + float: left; + font-weight: 700; + } + + .div_row_droite_dialog_session { + width: 69%; + float: right; + } + + .mysy_hr_text { + border: none; + border-top: 3px double #333; + color: #333; + overflow: visible; + text-align: center; + height: 5px; + } + + .mysy_hr_text:after { + background: #fff; + content: 'Détails'; + padding: 0 4px; + position: relative; + top: -13px; + } + + .img_class_logo_mini { + display: block; + width: 112px; + height: 112px; + border-radius: 10px !important; + border: 1px solid black; + float: left; + } + + } + + // end media + + + .disabled_style_with_visualiser { + width: 80% !important; + } + + .disabled_style_with_visualiser_icone{ + float: left; + text-align: center; + width: 100%; + font-size: large; + padding-top: 10px; + } + + .disabled_style_left_text_with_visualiser_icone{ + width: 80% !important; + float: left; + } + + .disabled_style_right_bton_visualiser{ + width: 9% !important; + float: left; + cursor: pointer; + } + + + + .css-md26zr-MuiInputBase-root-MuiOutlinedInput-root{ + height: 3rem !important; + } + + .session_caract_Dialog { + width: 100%; + padding: 5px; + float: left; + text-align: left; + font-size: small; + margin-bottom: 1rem !important; + } + + .session_caract_Dialog_comment_2_lines { + + width: 100%; + padding: 5px; + float: left; + text-align: left; + font-size: small; + margin-bottom: 1rem !important; + } + + + .session_caract_Dialog_DatePicker { + + width: 99% !important; + background-color: #FFFFFF; + } + + .session_caract_Dialog_icone_bton_add_reduce { + font-size: large; + cursor: pointer; + } + + + + .css-1v4ccyo { + height: 3.5rem !important; + font-size: small; + } + + option { + font-weight: normal; + display: block; + white-space-collapse: collapse; + text-wrap: nowrap; + padding: 0px !important; + } + + .mysy_hr_text { + border: none; + border-top: 3px double #333; + color: #333; + overflow: visible; + text-align: center; + height: 5px; + } + + .mysy_hr_text:after { + background: #fff; + content: 'Détails'; + padding: 0 4px; + position: relative; + top: -13px; + } + + .MuiMenu-paper { + max-width: 30% !important; + + } + + + .MuiPaper-root{ + border-radius: 10px !important; + background: #F8F9F9 !important; + } + +} + +.MuiMenu-paper { + max-width: 30% !important; +} + +.tox-statusbar { + display: none !important; +} + + + + +.css-1x5jdmq { + height: 3rem !important; + font-size: small; +} + +.select_option_css { + border-radius: 0px !important; +} + +.css-9ddj71-MuiInputBase-root-MuiOutlinedInput-root { + height: 3.5rem !important; +} + + + +.react-datepicker__input-container { + width: 110%; +} + +.css-1t8l2tu-MuiInputBase-input-MuiOutlinedInput-input { + padding-left: 5px !important; +} \ No newline at end of file diff --git a/src/styles/components/_displaypartnertrainingpagination.scss b/src/styles/components/_displaypartnertrainingpagination.scss index 1bf65d5..2061be8 100644 --- a/src/styles/components/_displaypartnertrainingpagination.scss +++ b/src/styles/components/_displaypartnertrainingpagination.scss @@ -58,6 +58,7 @@ .datagridclass { font-size: x-small !important; + padding: 5px !important; } .my_hr { @@ -517,6 +518,7 @@ .datagridclass { font-size: small !important; + padding: 5px !important; } .texte_area { @@ -978,6 +980,7 @@ .datagridclass { font-size: small !important; + padding: 5px !important; } .titre1 { @@ -1436,6 +1439,7 @@ .datagridclass { font-size: small !important; + padding: 5px !important; } .titre1 { diff --git a/src/styles/components/_toggleswitch2_mysy.scss b/src/styles/components/_toggleswitch2_mysy.scss index 83fd77e..b877b8b 100644 --- a/src/styles/components/_toggleswitch2_mysy.scss +++ b/src/styles/components/_toggleswitch2_mysy.scss @@ -1,12 +1,14 @@ .toggleswitch2_mysy { - .label{ + .label { margin-bottom: 0px; } + .container { text-align: center; padding-right: 5px !important; } + .toggle-switch { position: relative; width: 98%; @@ -15,9 +17,11 @@ top: 5px; max-height: 2.5rem; } + .checkbox { display: none; } + .label { display: block; overflow: hidden; @@ -25,12 +29,14 @@ border: 0 solid #bbb; border-radius: 20px; } + .inner { display: block; width: 200%; margin-left: -100%; transition: margin 0.3s ease-in 0s; } + .inner:before, .inner:after { float: left; @@ -42,12 +48,14 @@ font-weight: bold; box-sizing: border-box; } + .inner:before { content: "OUI"; padding-left: 10px; background-color: #060; color: #fff; } + .inner:after { content: "NON"; padding-right: 10px; @@ -55,6 +63,7 @@ color: #fff; text-align: right; } + .switch { display: block; width: 24px; @@ -67,10 +76,18 @@ border-radius: 20px; transition: all 0.3s ease-in 0s; } - .checkbox:checked + .label .inner { + + .checkbox:checked+.label .inner { margin-left: 0; } - .checkbox:checked + .label .switch { + + .checkbox:checked+.label .switch { right: 0px; } -} + + + .mysy_color_gradia_yellox_green { + background: rgb(34, 193, 195); + background: linear-gradient(0deg, rgba(34, 193, 195, 1) 0%, rgba(253, 187, 45, 1) 100%); + } +} \ No newline at end of file diff --git a/src/styles/index.scss b/src/styles/index.scss index b86fbf3..e588582 100644 --- a/src/styles/index.scss +++ b/src/styles/index.scss @@ -79,7 +79,7 @@ @import "./components/partner_commande"; @import "./components/config_document"; @import 'react-big-calendar/lib/sass/styles'; -@import 'react-big-calendar/lib/addons/dragAndDrop/styles'; +@import 'react-big-calendar/lib/addons/dragAndDrop/styles'; @import "./components/partner_facture"; @import "./components/partner_configuration_technique"; @import "./components/config_champs_personnalise"; @@ -106,3 +106,4 @@ @import "./components/surveydocument"; @import "./components/displayactionandclass"; @import "./components/updateattendeelist"; +@import "./components/displayPartnerunite_enseignement"; \ No newline at end of file