From b5d47bf4c604adbebf591d0368ff677432578ac4 Mon Sep 17 00:00:00 2001 From: cherif Date: Sat, 1 Jun 2024 14:42:58 +0200 Subject: [PATCH] 01/06/2024 - 14h30 --- src/components/Groupe_Apprenant.js | 1924 ++++++++++- src/components/Module_Selection_Apprenants.js | 1082 +++++++ .../Module_Selection_Evaluation_Apprenants.js | 505 ++- src/components/Notes_Evaluation.js | 14 +- .../_moduleselectionapprenants.scss | 2826 +++++++++++++++++ src/styles/index.scss | 3 +- 6 files changed, 6281 insertions(+), 73 deletions(-) create mode 100644 src/components/Module_Selection_Apprenants.js create mode 100644 src/styles/components/_moduleselectionapprenants.scss diff --git a/src/components/Groupe_Apprenant.js b/src/components/Groupe_Apprenant.js index 9042cad..90298ab 100644 --- a/src/components/Groupe_Apprenant.js +++ b/src/components/Groupe_Apprenant.js @@ -56,6 +56,7 @@ import { IoAddCircleOutline, IoCloseCircleOutline } from "react-icons/io5"; import Rating from '@mui/material/Rating'; import Module_Selection_Evaluation_Apprenants from "./Module_Selection_Evaluation_Apprenants"; import AttachFileIcon from '@mui/icons-material/AttachFile'; +import Module_Selection_Apprenants from "./Module_Selection_Apprenants"; const Groupe_Apprenant = (props) => { const history = useHistory(); @@ -185,25 +186,7 @@ const Groupe_Apprenant = (props) => { } }, - { - field: "Detail", headerName: 'Voir detail', - renderCell: (cellValues) => { - return ( - - - ); - } - }, { field: "delete", headerName: 'Supprimer', renderCell: (cellValues) => { @@ -230,13 +213,13 @@ const Groupe_Apprenant = (props) => {
{' '} - En confirmant cette opération, l'employé sera définitivement supprimé.
+ En confirmant cette opération, le groupe sera définitivement supprimé.
@@ -265,14 +248,191 @@ const Groupe_Apprenant = (props) => { ] + const columns_grp_membre = [ + { field: '_id', headerName: '_id', hide: true, Width: 0 }, + { field: 'id', headerName: 'id', hide: true, Width: 0 }, + + { field: 'nom', headerName: 'nom', flex: 1, hide: false, minWidth: 180, renderCell: (params) => , }, + { field: 'prenom', headerName: 'prenom', flex: 1, hide: false, minWidth: 180, renderCell: (params) => , }, + { field: 'email', headerName: 'email', flex: 1, hide: false, minWidth: 180, renderCell: (params) => , }, + + + { + field: "delete", headerName: 'Supprimer', + renderCell: (cellValues) => { + return ( + + { + + // handleClick_delete(event, cellValues); + }} + > + + + } + modal + nested + position="center center" + > + {close => ( +
+ +
MySy Information
+
+ {' '} + + En confirmant cette opération, la personne sera supprimée du groupe .
+ +
+
+
+ + +
+
+ +
+
+
+ )} +
+ + + ); + } + } + + ] + + + const [Delete_List_Membre_From_Groupe_api, setDelete_List_Membre_From_Groupe_api] = useState(); + const [Delete_List_Membre_From_Groupe_message, setDelete_List_Membre_From_Groupe_message] = useState(); + const [Delete_List_Membre_From_Groupe_result, setDelete_List_Membre_From_Groupe_result] = useState(); + function Delete_List_Membre_From_Groupe(local_tab_ids) { + + + var form = new FormData(); + + const stored_cookie = getCookie('tokenmysypart'); + form.append("token", stored_cookie); + form.append("groupe_inscription_id", selected_id); + form.append("tab_ids", local_tab_ids); + + + var myurl = process.env.REACT_APP_API_URL + "myclass/api/Delete_Groupe_Inscrit_Membres/"; + setLoading(true); + + axios.post(myurl, form).then(res => { + //console.log(" In Delete_List_Membre_From_Groupe res.data.status = " + res.data.status); + //console.log(" In Delete_List_Membre_From_Groupe res.data.message r_class = " + res.data.message); + + setLoading(false); + + if (String(res.data.status) === String("true")) { + setDelete_List_Membre_From_Groupe_api("true"); + setDelete_List_Membre_From_Groupe_result(res.data.message); + + + setselectionModel_grp_membre([]); + Getall_Groupe_Membres(selected_id); + + alert(res.data.message) + } + else { + setDelete_List_Membre_From_Groupe_api("false"); + setDelete_List_Membre_From_Groupe_message(res.data.message); + alert(res.data.message); + + } + + }).catch((error) => { + setLoading(false); + console.warn('Delete_List_Membre_From_Groupe : Not good man :( mysearchtext = ' + error); + setDelete_List_Membre_From_Groupe_api("false"); + alert(" Impossible de supprimer les membres"); + }) + } + + const [selectionModel_grp_membre, setselectionModel_grp_membre] = React.useState([]); + + const New_Option_Filter = [ - { "id": "class_external_code", "label": "Lié a la Formation (code externe) ", "value": "class_external_code" }, - { "id": "code_session", "label": "Lié a la Classe (code Classe) ", "value": "code_session" }, - { "id": "code_ue", "label": "Lié a l'UE (code UE) ", "value": "code_ue" }, + { "id": "code", "label": "Code Groupe ", "value": "code" }, + { "id": "type_groupe_code", "label": "Type de groupe (TD, TP, etc) ", "value": "type_groupe_code" }, + { "id": "class_external_code", "label": "Lié à la formation (code) ", "value": "class_external_code" }, + { "id": "classcode_session_external_code", "label": "Lié à la Session (code ) ", "value": "code_session" }, { "id": "", "label": "", "value": "" }, { "id": "1", "label": "", "value": "1" }, // Cette ligne pour couvrir l'ajout d'une ligne de filter. C'est fait expres. ] + function handleClick_delete_groupe(event, cellValues) { + Delete_Given_Goupe(cellValues.row._id); + } + + + const [Delete_Given_Goupe_api, setDelete_Given_Goupe_api] = useState(); + const [Delete_Given_Goupe_message, setDelete_Given_Goupe_message] = useState(); + const [Delete_Given_Goupe_result, setDelete_Given_Goupe_result] = useState(); + function Delete_Given_Goupe(local_grp_id) { + + var form = new FormData(); + + const stored_cookie = getCookie('tokenmysypart'); + form.append("token", stored_cookie); + form.append("_id", local_grp_id); + + + var myurl = process.env.REACT_APP_API_URL + "myclass/api/Delete_Groupe_Inscrit/"; + + axios.post(myurl, form).then(res => { + //console.log(" In Delete_Given_Goupe res.data.status = " + res.data.status); + //console.log(" In Delete_Given_Goupe res.data.message r_class = " + res.data.message); + + if (String(res.data.status) === String("true")) { + setDelete_Given_Goupe_api("true"); + setDelete_Given_Goupe_result(res.data.message); + + Getall_Partner_Groupe_Inscrit(); + + setdisplay_grp_apprenant(""); + setgrp_apprenant_data_changed(""); + setgrp_apprenant_data_edit_mode(""); + setgridline_id(""); + alert(res.data.message); + + } + else { + setDelete_Given_Goupe_api("false"); + setDelete_Given_Goupe_message(res.data.message); + alert(res.data.message); + } + + }).catch((error) => { + + console.warn('Delete_Given_Goupe : Not good man :( mysearchtext = ' + error); + setDelete_Given_Goupe_api("false"); + alert(" Impossible de supprimer le groupe "); + }) + } + const [selectionModel_grp_apprenant, setselectionModel_grp_apprenant] = React.useState([]); const [selectionModel_grp_apprenant_participant, setselectionModel_grp_apprenant_participant] = React.useState([]); @@ -537,6 +697,8 @@ const Groupe_Apprenant = (props) => { Getall_Partner_Class_Reduice_Fields(); Getall_Partner_Session_Reduice_Fields(); + Getall_Groupe_Apprenant_Type(); + Getall_Partner_Groupe_Inscrit(); window.scrollTo({ @@ -548,7 +710,7 @@ const Groupe_Apprenant = (props) => { const myRef_head = useRef(null); const myRef = useRef(null) - + const sleep = (milliseconds) => { return new Promise(resolve => setTimeout(resolve, milliseconds)) } @@ -557,9 +719,7 @@ const Groupe_Apprenant = (props) => { function Enable_Grp_Apprenant_DetailFields() { setgrp_apprenant_data_edit_mode("1"); - var liste_champs = ['detail_code', 'detail_titre', 'detail_description', 'detail_classe', - 'detail_ftion', 'detail_ue', 'detail_type_eval', 'detail_debut', 'detail_fin', 'detail_adresse', - 'detail_cp', 'detail_ville', 'detail_pays', 'detail_responsable'] + var liste_champs = ['detail_code', 'detail_nom', 'detail_description', 'detail_classe', 'detail_type_grp', 'detail_ftion', 'detail_nom'] for (let i = 0; i < liste_champs.length; i++) { if (document.getElementsByName(String(liste_champs[i])) && document.getElementsByName(String(liste_champs[i]))[0]) { @@ -571,14 +731,12 @@ const Groupe_Apprenant = (props) => { } - + async function Disable_Grp_Apprenant_DetailFields() { await sleep(5); setgrp_apprenant_data_edit_mode("0"); - var liste_champs = ['detail_code', 'detail_titre', 'detail_description', 'detail_classe', - 'detail_ftion', 'detail_ue', 'detail_type_eval', 'detail_debut', 'detail_fin', 'detail_adresse', - 'detail_cp', 'detail_ville', 'detail_pays', 'detail_responsable', 'detail_titre_01'] + var liste_champs = ['detail_code', 'detail_nom', 'detail_description', 'detail_classe', 'detail_type_grp', 'detail_ftion', 'detail_nom'] for (let i = 0; i < liste_champs.length; i++) { @@ -594,8 +752,8 @@ const Groupe_Apprenant = (props) => { async function submenu_detail() { await sleep(5); - setsubmenu("detail_evaluation"); - inactive_active_menu_header("detail_evaluation"); + setsubmenu("detail_groupe"); + inactive_active_menu_header("detail_groupe"); if (String(grp_apprenant_data_edit_mode) !== "1") { @@ -607,6 +765,7 @@ const Groupe_Apprenant = (props) => { async function submenu_apprenant() { + Getall_Groupe_Membres(selected_id); await sleep(5); setsubmenu("apprenant"); inactive_active_menu_header("apprenant"); @@ -623,7 +782,7 @@ const Groupe_Apprenant = (props) => { } - + async function submenu_selection() { await sleep(5); @@ -650,7 +809,7 @@ const Groupe_Apprenant = (props) => { } } - + // -- Gestion pièces jointes const [Download_one_attached_document_api, setDownload_one_attached_document_api] = useState(); @@ -779,7 +938,7 @@ const Groupe_Apprenant = (props) => { formData.append("file_business_object", p_detail_one_file_to_download_type_name); formData.append("file_name", file_1_name.name); formData.append("status", "0"); - formData.append("object_owner_collection", "note_evaluation"); + formData.append("object_owner_collection", "groupe_inscription"); formData.append("object_owner_id", selected_id); //formData.append("class_internal_url", internal_url); @@ -892,7 +1051,7 @@ const Groupe_Apprenant = (props) => { const stored_cookie = getCookie('tokenmysypart'); formData.append("token", stored_cookie); - formData.append("object_owner_collection", "note_evaluation"); + formData.append("object_owner_collection", "groupe_inscription"); formData.append("object_owner_id", selected_id); @@ -945,6 +1104,676 @@ const Groupe_Apprenant = (props) => { // -- end gestion pièces jointes + function Ajout_1_grp_apprenant() { + + clear_DetailFieds(); + + setgrp_apprenant_data_edit_mode(""); + setgrp_apprenant_data_changed(""); + setdisplay_grp_apprenant(""); + setselected_id(""); + setgridline_id(""); + setadd_one_grp_apprenant("1"); + setsubmenu("detail_groupe"); + + if (document.getElementById('myRef')) { + // myRef.current.scrollIntoView({ behavior: "smooth" }); + var divh = document.getElementById('myRef').offsetTop; + window.scrollTo({ + top: divh, + behavior: "smooth", + }); + } + + } + + + function Annule_Add_One_Evaluaton_DetailFields() { + setgrp_apprenant_data_edit_mode(""); + setgrp_apprenant_data_changed(""); + setdisplay_grp_apprenant(""); + setselected_id(""); + setadd_one_grp_apprenant(""); + setsubmenu(""); + + } + + const [New_Getall_Groupe_Apprenant_Type_result, setNew_Getall_Groupe_Apprenant_Type_result] = useState([]); + + const [Getall_Groupe_Apprenant_Type_api, setGetall_Groupe_Apprenant_Type_api] = useState(); + const [Getall_Groupe_Apprenant_Type_message, setGetall_Groupe_Apprenant_Type_message] = useState(); + const [Getall_Groupe_Apprenant_Type_result, setGetall_Groupe_Apprenant_Type_result] = useState(); + function Getall_Groupe_Apprenant_Type(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_Type_Groupe_Apprenant/"; + + axios.post(myurl, form).then(res => { + + if (String(res.data.status) === String("true")) { + //console.log(" In Getall_Groupe_Apprenant_Type res.data.status = " + res.data.status); + //console.log(" In Getall_Groupe_Apprenant_Type res.data.message r_class = " + res.data.message); + setGetall_Groupe_Apprenant_Type_api("true"); + setGetall_Groupe_Apprenant_Type_result(res.data.message); + setRows(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_description = JSON.parse(x).description; + + + //--- + var node = { + "_id": local_id, + "id": localid, + "label": local_code + " - " + local_description, + "code": local_code, + "description": local_description, + + }; + new_data2.push(node); + }); + + + //--- + var node = { + "_id": "", + "id": "", + "label": "", + "code": "", + "description": "", + + }; + new_data2.push(node); + + + if (new_data2.length > 0) + setNew_Getall_Groupe_Apprenant_Type_result(new_data2); + + } + else { + setGetall_Groupe_Apprenant_Type_api("false"); + setGetall_Groupe_Apprenant_Type_message(res.data.message); + alert(res.data.message); + } + + }).catch((error) => { + console.warn('Not good man :( Getall_Groupe_Apprenant_Type = ', error); + setGetall_Groupe_Apprenant_Type_api("false"); + alert(" Impossible de recuperer la liste des type de groupe d'apprenants"); + //setmyApimyApiMessage("") + }) + } + + const [GetAttendee_api, setGetAttendee_api] = useState(); + const [GetAttendee_message, setGetAttendee_message] = useState(); + const [GetAttendee_result, setGetAttendee_result] = useState(); + function Get_Given_Groupe_Data(evaluation_id) { + setgrp_apprenant_data_changed(""); + setgrp_apprenant_data_edit_mode(""); + + + var form = new FormData(); + + const stored_cookie = getCookie('tokenmysypart'); + form.append("token", stored_cookie); + form.append("_id", evaluation_id); + + + var myurl = process.env.REACT_APP_API_URL + "myclass/api/Get_Given_Groupe_Inscrit_Data/"; + + setLoading(true); + axios.post(myurl, form).then(res => { + + if (String(res.data.status) === "true") { + setLoading(false); + //console.log(" In Get_Given_Groupe_Data res.data.status = " + res.data.status); + //console.log(" In Get_Given_Groupe_Data res.data.message r_class = " + res.data.message); + setGetAttendee_api("true"); + setGetAttendee_result(res.data.message); + + if (res.data.message.length > 0) { + var mylocal_groupe = JSON.parse(res.data.message); + + if (mylocal_groupe.code) + setp_detail_code(mylocal_groupe.code); + else + setp_detail_code(""); + + if (mylocal_groupe.nom) { + setp_detail_nom(mylocal_groupe.nom); + } else { + setp_detail_nom(""); + } + + + if (mylocal_groupe.description) { + setp_detail_description(mylocal_groupe.description); + } else { + setp_detail_description(""); + } + + if (mylocal_groupe.comment) { + setp_detail_comment(mylocal_groupe.comment); + } else { + setp_detail_comment(""); + } + + + if (mylocal_groupe.class_id) { + setp_detail_class_id(mylocal_groupe.class_id); + } else { + setp_detail_class_id(""); + } + + if (mylocal_groupe.class_internal_url) { + setp_detail_class_internal_url(mylocal_groupe.class_internal_url); + } else { + setp_detail_class_internal_url(""); + } + + + if (mylocal_groupe.type_groupe_code) { + setp_detail_type_groupe_code(mylocal_groupe.type_groupe_code); + } else { + setp_detail_type_groupe_code(""); + } + + if (mylocal_groupe.session_id) { + setp_detail_session_id(mylocal_groupe.session_id); + } else { + setp_detail_session_id(""); + } + + if (document.getElementById('myRef')) { + var divh = document.getElementById('myRef').offsetTop; + window.scrollTo({ + top: divh, + behavior: "smooth", + }); + } + + Disable_Grp_Apprenant_DetailFields(); + } else { + alert(" Aucune donnée recuperée"); + } + + + } else if (String(res.data.status) === String("Err_Connexion")) { + alert('Erreur: ' + res.data.message); + history.push("/Connexion"); + } + + else { + setLoading(false); + setGetAttendee_api("false"); + setGetAttendee_message(res.data.message); + alert(res.data.message); + } + + }).catch((error) => { + console.warn('Not good man :( Get_Given_Groupe_Data = ', error); + setGetAttendee_api("false"); + alert(" Impossible de recuperer les données du groupe"); + //setmyApimyApiMessage("") + }) + } + + + + function clean_all_filters() { + setgridline_id(''); + setp_filtre1(""); + setp_filtre1_value(""); + + setp_filtre2(""); + setp_filtre2_value(""); + + setp_filtre3(""); + setp_filtre3_value(""); + + setp_filtre4(""); + setp_filtre4_value(""); + + Getall_Partner_Groupe_Inscrit(); + } + + function Annule_Groupe_DetailFields() { + Get_Given_Groupe_Data(selected_id); + + setgrp_apprenant_data_changed(""); + setgrp_apprenant_data_edit_mode(""); + + } + + + const [p_detail_code, setp_detail_code] = React.useState(""); + const [p_detail_nom, setp_detail_nom] = React.useState(""); + const [p_detail_description, setp_detail_description] = React.useState(""); + const [p_detail_comment, setp_detail_comment] = React.useState(""); + const [p_detail_class_id, setp_detail_class_id] = React.useState(""); + const [p_detail_class_internal_url, setp_detail_class_internal_url] = React.useState(""); + const [p_detail_session_id, setp_detail_session_id] = React.useState(""); + const [p_detail_type_groupe_code, setp_detail_type_groupe_code] = React.useState(""); + + function clear_DetailFieds() { + setp_detail_code(""); + setp_detail_nom(""); + setp_detail_description(""); + setp_detail_comment(""); + setp_detail_class_id(""); + setp_detail_session_id(""); + setp_detail_type_groupe_code(""); + } + + + const [Add_Update_Grp_Apprenant_Data_api, setAdd_Update_Grp_Apprenant_Data_api] = useState(); + const [Add_Update_Grp_Apprenant_Data_message, setAdd_Update_Grp_Apprenant_Data_message] = useState(); + const [Add_Update_Grp_Apprenant_Data_result, setAdd_Update_Grp_Apprenant_Data_result] = useState(); + function Add_Update_Grp_Apprenant_Data() { + 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("nom", p_detail_nom); + form.append("description", p_detail_description); + form.append("type_groupe_code", p_detail_type_groupe_code); + form.append("class_id", p_detail_class_id); + form.append("session_id", p_detail_session_id); + + + + var myurl = ""; + + if (selected_id && String(selected_id).length > 5) { + form.append("_id", selected_id); + myurl = process.env.REACT_APP_API_URL + "myclass/api/Update_Groupe_Inscrit/"; + } else { + myurl = process.env.REACT_APP_API_URL + "myclass/api/Add_Groupe_Inscrit/"; + } + + + + setLoading(true); + axios.post(myurl, form).then(res => { + //console.log(" In Add_Update_Grp_Apprenant_Data res.data.status = " + res.data.status); + //console.log(" In Add_Update_Grp_Apprenant_Data res.data.message r_class = " + res.data.message); + + setLoading(false); + + if (String(res.data.status) === String("true")) { + setAdd_Update_Grp_Apprenant_Data_api("true"); + setAdd_Update_Grp_Apprenant_Data_result(res.data.message); + + Disable_Grp_Apprenant_DetailFields(); + setgrp_apprenant_data_changed(""); + setgrp_apprenant_data_edit_mode(""); + clear_DetailFieds(); + + + if (selected_id && String(selected_id).length > 5) { + Disable_Grp_Apprenant_DetailFields(); + setgrp_apprenant_data_changed(""); + setgrp_apprenant_data_edit_mode(""); + + setdisplay_grp_apprenant('1'); + + } else { + Disable_Grp_Apprenant_DetailFields(); + setgrp_apprenant_data_changed(""); + setgrp_apprenant_data_edit_mode(""); + setdisplay_grp_apprenant(""); + setadd_one_grp_apprenant(""); + setsubmenu(""); + } + + Getall_Partner_Groupe_Inscrit(); + + + alert(res.data.message); + + if (document.getElementById('myRef')) { + // myRef.current.scrollIntoView({ behavior: "smooth" }); + var divh = document.getElementById('myRef').offsetTop; + window.scrollTo({ + top: divh, + behavior: "smooth", + }); + } + + } + else { + setAdd_Update_Grp_Apprenant_Data_api("false"); + setAdd_Update_Grp_Apprenant_Data_message(res.data.message); + alert(res.data.message); + } + + }).catch((error) => { + setLoading(false); + + console.log('UpdateStagiaireData : Not good man :( Add_Update_Grp_Apprenant_Data = ' + error); + setAdd_Update_Grp_Apprenant_Data_api("false"); + alert(" Impossible d'ajouter ou mettre à jour le groupe"); + + }) + } + + + function handleClick_edit_evaluation_From_Line(selected_row_id) { + + var line = JSON.parse(Getall_Partner_Groupe_Inscrit_result[selected_row_id]); + + setselected_id(line._id); + setgridline_id(selected_row_id); + + Get_Given_Groupe_Data(line._id); + + setdisplay_grp_apprenant("1"); + setadd_one_grp_apprenant(""); + setgrp_apprenant_data_changed(""); + setgrp_apprenant_data_edit_mode(""); + setsubmenu("detail_groupe"); + + //Getall_Evaluation_Participant_List(); + + } + + const [Getall_Partner_Groupe_Inscrit_With_Filter_api, setGetall_Partner_Groupe_Inscrit_With_Filter_api] = useState(); + const [Getall_Partner_Groupe_Inscrit_With_Filter_message, setGetall_Partner_Groupe_Inscrit_With_Filter_message] = useState(); + const [Getall_Partner_Groupe_Inscrit_With_Filter_result, setGetall_Partner_Groupe_Inscrit_With_Filter_result] = useState(); + function Getall_Partner_Groupe_Inscrit_With_Filter(event) { + + var form = new FormData(); + + + // Recuperation des parametres + var filtre1 = p_filtre1; + var filtre2 = p_filtre2; + var filtre3 = p_filtre3; + var filtre4 = p_filtre4; + + var filtre1_value = ""; + var filtre2_value = ""; + var filtre3_value = ""; + var filtre4_value = ""; + // Recuperation des valeurs de filtres + + if (p_filtre1_value) { + filtre1_value = p_filtre1_value; + form.append(filtre1, filtre1_value); + } + + if (p_filtre2_value) { + filtre2_value = p_filtre2_value; + form.append(filtre2, filtre2_value); + } + + if (p_filtre3_value) { + filtre3_value = p_filtre3_value; + form.append(filtre3, p_filtre3_value); + } + + if (p_filtre4_value) { + filtre4_value = p_filtre4_value; + form.append(filtre4, p_filtre4_value); + } + + + const stored_cookie = getCookie('tokenmysypart'); + form.append("token", stored_cookie); + + var myurl = process.env.REACT_APP_API_URL + "myclass/api/Get_List_Groupe_Inscrit_With_Filter/"; + + + + axios.post(myurl, form).then(res => { + + if (String(res.data.status) === String("true")) { + //console.log(" In Getall_Partner_Groupe_Inscrit_With_Filter res.data.status = " + res.data.status); + //console.log(" In Getall_Partner_Groupe_Inscrit_With_Filter res.data.message r_class = " + res.data.message); + setGetall_Partner_Groupe_Inscrit_With_Filter_api("true"); + setGetall_Partner_Groupe_Inscrit_With_Filter_result(res.data.message); + + setGetall_Partner_Groupe_Inscrit_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_nom = JSON.parse(x).nom; + var local_class_id = JSON.parse(x).class_id; + var local_session_id = JSON.parse(x).session_id; + var local_type_groupe_code = JSON.parse(x).type_groupe_code; + + + + //--- + var node = { + "_id": local_id, + "id": localid, + "label": local_code, + "code": local_code, + "nom": local_nom, + "class_id": local_class_id, + "session_id": local_session_id, + "type_groupe_code": local_type_groupe_code, + + }; + new_data2.push(node); + }); + + //--- + var node = { + "_id": "", + "id": "", + "label": "", + "code": "", + "nom": "", + "class_id": "", + "session_id": "", + "type_groupe_code": "", + + + }; + new_data2.push(node); + + if (new_data2.length > 0) + setNew_Getall_Partner_Groupe_Inscrit_result(new_data2); + + } + else { + setGetall_Partner_Groupe_Inscrit_With_Filter_api("false"); + setGetall_Partner_Groupe_Inscrit_With_Filter_message(res.data.message); + } + + }).catch((error) => { + console.warn('Not good man :( Getall_Partner_Groupe_Inscrit_With_Filter = ', error); + setGetall_Partner_Groupe_Inscrit_With_Filter_api("false"); + //setmyApimyApiMessage("") + }) + } + + + const [New_Getall_Groupe_Membres_result, setNew_Getall_Groupe_Membres_result] = useState([]); + + const [Getall_Groupe_Membres_api, setGetall_Groupe_Membres_api] = useState(); + const [Getall_Groupe_Membres_message, setGetall_Groupe_Membres_message] = useState(); + const [Getall_Groupe_Membres_result, setGetall_Groupe_Membres_result] = useState([]); + function Getall_Groupe_Membres(local_groupe_id) { + + var evalutaion_id = ""; + + var form = new FormData(); + + + const stored_cookie = getCookie('tokenmysypart'); + form.append("token", stored_cookie); + form.append("_id", local_groupe_id); + + var myurl = process.env.REACT_APP_API_URL + "myclass/api/Get_Given_Groupe_Membres/"; + + + + axios.post(myurl, form).then(res => { + + if (String(res.data.status) === String("true")) { + //console.log(" In Getall_Groupe_Membres res.data.status = " + res.data.status); + //console.log(" In Getall_Groupe_Membres res.data.message r_class = " + res.data.message); + setGetall_Groupe_Membres_api("true"); + setGetall_Groupe_Membres_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_nom = JSON.parse(x).nom; + var local_prenom = JSON.parse(x).prenom; + var local_email = JSON.parse(x).email; + var local_inscription_id = JSON.parse(x).inscription_id; + + + //--- + var node = { + "_id": local_id, + "id": localid, + "label": local_nom, + "nom": local_nom, + "prenom": local_prenom, + "email": local_email, + + "inscription_id": local_inscription_id, + + + }; + new_data2.push(node); + }); + + + + if (new_data2) + setNew_Getall_Groupe_Membres_result(new_data2); + + } + else { + setGetall_Groupe_Membres_api("false"); + setGetall_Groupe_Membres_message(res.data.message); + alert(res.data.message); + } + + }).catch((error) => { + console.warn('Not good man :( Getall_Groupe_Membres = ', error); + setGetall_Groupe_Membres_api("false"); + alert(" Impossible de recuperer la liste des membres du groupe"); + //setmyApimyApiMessage("") + }) + } + + + const [gridline_grp_member_id, setgridline_grp_member_id] = useState(""); + + function Export_Groupe_Membres_exel() { + const stored_cookie = getCookie('tokenmysypart'); + + var nom_fichier_cmd = "export_notes.xlsx"; + + var url = process.env.REACT_APP_API_URL + "myclass/api/Export_To_Excel_List_Groupe_Membres/" + stored_cookie + "/" + selected_id + "/"; + + + setLoading(true); + axios.get(url, { responseType: 'blob', },) + .then((res) => { + setLoading(false); + //console.log(" In Export_Dashbord_to_CSV res.data = " + res.data); + if (String(res.data) === String("false")) { + alert("Impossible d'exporter les membres (2) "); + } else { + fileDownload(res.data, nom_fichier_cmd) + + } + }).catch((error) => { + setLoading(false); + console.error('Error:', error); + alert(" Impossible d'exporter les membres ") + + }); + + + setLoading(false); + } + + + + function GetSelectedRows_Groupe_Membres_Ids() { + + + var tab_tmp = [] + for (var i = 0; i < selectionModel_grp_membre.length; i++) { + //console.log(" ### selectionModel_insc[i] = ", selectionModel_insc[i]); + var myid = parseInt(String(selectionModel_grp_membre[i])); + //var line = JSON.parse(rowss[myid]); + tab_tmp.push(myid); + } + return tab_tmp; + + } + + async function actionmass_grp_membre_Traitemet() { + + var liste_apprenant_id = GetSelectedRows_Groupe_Membres_Ids(); + + //console.log(" liste_preinscr_id = ", liste_preinscr_id); + + + + var tab_mongo_preins_ids = []; + + for (var i = 0; i < liste_apprenant_id.length; i++) { + + var line = Getall_Groupe_Membres_result[liste_apprenant_id[i]] + + + var line_json = JSON.parse(line) + //console.log(" line_json['prenom'] = ", line_json['prenom']); + //console.log(" line_json['_id'] = ", line_json['_id']); + tab_mongo_preins_ids.push(line_json['_id']) + + } + + if (String(actionmass_grp_membre_val) === String("delete_grp_membre")) { + Delete_List_Membre_From_Groupe(tab_mongo_preins_ids); + + } + } + + const [actionmass_grp_membre_val, setactionmass_grp_membre_val] = useState(""); + + + const New_Option_grp_membre = [ + { "id": "delete_grp_membre", "label": "Supprimer les membres", "value": "delete_grp_membre" }, + { "id": "", "label": "", "value": "" }, + ] + + return (
{isLoading &&
@@ -1210,12 +2039,12 @@ const Groupe_Apprenant = (props) => {
-
-
@@ -1326,13 +2155,12 @@ const Groupe_Apprenant = (props) => { onRowDoubleClick={(newSelectionModel) => { - // Getall_Evaluation_Participant_List(newSelectionModel.row._id); setselected_id(newSelectionModel.row._id); setgridline_id(newSelectionModel.row.id); - // handleClick_edit_evaluation_From_Line(newSelectionModel.row.id); + handleClick_edit_evaluation_From_Line(newSelectionModel.row.id); }} @@ -1385,7 +2213,7 @@ const Groupe_Apprenant = (props) => {
- - +
} + {String(submenu) === "detail_groupe" &&
+ {String(display_grp_apprenant) === "1" && String(add_one_grp_apprenant) !== "1" &&
+ + + + + {String(grp_apprenant_data_edit_mode) !== "1" &&
+ +
+
Code
+ + +
+ +
Nom
+ + +
+ +
Description
+ + +
+ + + +
Formation
+ {New_Getall_Partner_Class_Reduice_Fields_result && New_Getall_Partner_Class_Reduice_Fields_result.length > 0 && (data)._id === String(p_detail_class_id))[0].label} + + />} + +
+ +
Classe
+ {New_Getall_Partner_Session_Reduice_Fields_result && New_Getall_Partner_Session_Reduice_Fields_result.length > 0 && (data)._id === String(p_detail_session_id))[0].label} + + />} + +
+ +
Type de Groupe
+ {New_Getall_Groupe_Apprenant_Type_result && New_Getall_Groupe_Apprenant_Type_result.length > 0 && (data).code === String(p_detail_type_groupe_code))[0].label} + + />} + +
+ +
+   +
+
+ + + +
} + + + {String(grp_apprenant_data_edit_mode) === "1" &&
+ +
+
Code
+ { + setp_detail_code(e.target.value); + setgrp_apprenant_data_changed("1"); + } + } + /> + +
+ +
Nom
+ { + setp_detail_nom(e.target.value); + setgrp_apprenant_data_changed("1"); + } + } + /> + +
+ +
Description
+ { + setp_detail_description(e.target.value); + setgrp_apprenant_data_changed("1"); + } + } + /> + +
+ +
Formation
+ {New_Getall_Partner_Class_Reduice_Fields_result && New_Getall_Partner_Class_Reduice_Fields_result.length > 0 && + + (data)._id === String(p_detail_class_id))[0].label} + onChange={(event, value) => { + if (value && value._id) { + setp_detail_class_id(value._id); + setp_detail_class_internal_url(value.internal_url); + setgrp_apprenant_data_changed("1"); + } else { + + + setp_detail_class_id(""); + setp_detail_class_internal_url(""); + setgrp_apprenant_data_changed("1"); + } + + setp_detail_session_id(""); + + }} + + renderInput={(params) => + } + /> + + } + +
+ + +
Classe
+ {New_Getall_Partner_Session_Reduice_Fields_result && New_Getall_Partner_Session_Reduice_Fields_result.length > 0 && + + (data).class_internal_url === String(p_detail_class_internal_url))} + + value={New_Getall_Partner_Session_Reduice_Fields_result.filter((data) => (data)._id === String(p_detail_session_id))[0].label} + onChange={(event, value) => { + if (value && value._id) { + setp_detail_session_id(value._id); + setgrp_apprenant_data_changed("1"); + } else { + setp_detail_session_id(""); + setgrp_apprenant_data_changed("1"); + } + }} + + renderInput={(params) => + } + /> + + } + +
+ + + + +
Type de Groupe
+ {New_Getall_Groupe_Apprenant_Type_result && New_Getall_Groupe_Apprenant_Type_result.length > 0 && + + (data).code === String(p_detail_type_groupe_code))[0].label} + + onChange={(event, value) => { + if (value && value.code) { + setp_detail_type_groupe_code(value.code); + setgrp_apprenant_data_changed("1"); + } else { + setp_detail_type_groupe_code(""); + setgrp_apprenant_data_changed("1"); + } + }} + + renderInput={(params) => + } + /> + + } + +
+ +
+   +
+ +
+
+   +
+
} + +
+   +
+
+ {String(grp_apprenant_data_changed) === "1" && String(grp_apprenant_data_edit_mode) === "1" &&
+ /!\ Pensez à enregistrer les modifications +
} + + +
+ + {String(grp_apprenant_data_changed) === "1" && String(grp_apprenant_data_edit_mode) === "1" &&
+ + + +
} + + {String(grp_apprenant_data_edit_mode) === "1" &&
+ +
} +
+ + + {String(grp_apprenant_data_edit_mode) !== "1" &&
+ + + +
} +
+   +
+
+ +
} + + + {String(add_one_grp_apprenant) === "1" && String(display_grp_apprenant) !== "1" &&
+ + + +
+ +
+
Code
+ { + setp_detail_code(e.target.value); + setgrp_apprenant_data_changed("1"); + } + } + /> + +
+ +
Nom
+ { + setp_detail_nom(e.target.value); + setgrp_apprenant_data_changed("1"); + } + } + /> + +
+ +
Description
+ { + setp_detail_description(e.target.value); + setgrp_apprenant_data_changed("1"); + } + } + /> + +
+
Formation
+ {New_Getall_Partner_Class_Reduice_Fields_result && New_Getall_Partner_Class_Reduice_Fields_result.length > 0 && + + (data)._id === String(p_detail_class_id))[0].label} + onChange={(event, value) => { + if (value && value._id) { + setp_detail_class_id(value._id); + setp_detail_class_internal_url(value.internal_url); + setgrp_apprenant_data_changed("1"); + } else { + + + setp_detail_class_id(""); + setp_detail_class_internal_url(""); + setgrp_apprenant_data_changed("1"); + } + + setp_detail_session_id(""); + + }} + + renderInput={(params) => + } + /> + + } + +
+ + + + +
Classe
+ {New_Getall_Partner_Session_Reduice_Fields_result && New_Getall_Partner_Session_Reduice_Fields_result.length > 0 && + + (data).class_internal_url === String(p_detail_class_internal_url))} + value={New_Getall_Partner_Session_Reduice_Fields_result.filter((data) => (data)._id === String(p_detail_session_id))[0].label} + onChange={(event, value) => { + if (value && value._id) { + setp_detail_session_id(value._id); + setgrp_apprenant_data_changed("1"); + } else { + setp_detail_session_id(""); + setgrp_apprenant_data_changed("1"); + } + }} + + renderInput={(params) => + } + /> + + } + +
+ + +
Type de Groupe
+ {New_Getall_Groupe_Apprenant_Type_result && New_Getall_Groupe_Apprenant_Type_result.length > 0 && + + (data).code === String(p_detail_type_groupe_code))[0].label} + + onChange={(event, value) => { + if (value && value.code) { + + setp_detail_type_groupe_code(value.code); + setgrp_apprenant_data_changed("1"); + } else { + + setp_detail_type_groupe_code(""); + setgrp_apprenant_data_changed("1"); + } + + }} + + renderInput={(params) => + } + /> + + } + +
+ + +
+   +
+ +
+
+   +
+
+ +
+   +
+
+ + + +
+ +
+ + + +
+ +
+ +
+
+ + + +
+   +
+
+ +
} + +
} + + + {String(submenu) === "piece_jointe" &&
+ +
+
+ +
+ +
+ {file_1_name && file_1_name.name && + } + + {Record_All_PJ_api && String(Record_All_PJ_api) === "true" &&
Pièce jointe enregistrée
} + + {Record_All_PJ_api && String(Record_All_PJ_api) === "false" &&
{Record_All_PJ_message}
} + + +
+ + + + {file_1_name && file_1_name.name &&
+ +
+ +
+ + + +
} + + {Get_List_Of_All_PJ_result &&
+
+ Liste des pièces jointes
+
+ {Get_List_Of_All_PJ_result && Get_List_Of_All_PJ_result.map((val) => ( +
+ + + Supprimer + + + } + modal + nested + position="center center" + > + {close => ( +
+ +
MySy Information
+
+ {' '} + + En confirmant cette opération, la pièce jointe sera définitivement supprimée.
+ + +
+
+
+ + +
+
+ +
+
+
+ )} +
+ +
+ ))} +
+
+
} +
+
+   +
+ +
} + + {String(submenu) === "selection" &&
+ + + +
} + + {String(submenu) === "apprenant" &&
+ +
+ + +
+ + +
+ + + +
+ + +
+ + + +
+
+ +   + + { + setselectionModel_grp_membre(newSelectionModel); + /*if (newSelectionModel.length === 1) + handleClick_edit_employee_From_Line(newSelectionModel);*/ + if (newSelectionModel.length !== 1) { + /* setsubmenu(); + setdisplay_detail_employe(); + setadd_One_Employee();*/ + } + }} + selectionModel={selectionModel_grp_membre} + + localeText={frFR.components.MuiDataGrid.defaultProps.localeText} + rows={New_Getall_Groupe_Membres_result.map((item, index) => ( + { + id: index, + _id: (item)._id, + nom: (item).nom, + prenom: (item).prenom, + email: (item).email, + groupe: (item).groupe, + + } + ))} + + columns={columns_grp_membre} + pageSize={10} + className="datagridclass" + + onRowDoubleClick={(newSelectionModel) => { + /* setselected_id(newSelectionModel.row._id); + + setgridline_id(newSelectionModel.row.id); + + handleClick_edit_evaluation_From_Line(newSelectionModel.row.id); + */ + + + }} + + rowsPerPageOptions={[10]} + disableSelectionOnClick + components={{ + Toolbar: GridToolbar, + }} + //sx={datagridSx} + getCellClassName={(params) => { + + // Traitement de la cellule 'notes' + if (String(params.field) === "note") { + return 'cell--note'; + } + + }} + + getRowClassName={(params) => { + // Pour la gestion de la couleur de zone double cliquée + + //console.log(" ### params.row = ", params.row); + + + if (String(params.row.id) === String(gridline_grp_member_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, + + } + }} + + /> + + {selectionModel_grp_membre && selectionModel_grp_membre.length >= 1 && +
+
+ +   + + { + if (value && value.value) { + if (String(value.value) === "delete_grp_membre") { + setactionmass_grp_membre_val(value.value); + } + else { + setactionmass_grp_membre_val(""); + } + } + else { + setactionmass_grp_membre_val(""); + } + + }} + + renderInput={(params) => + } + /> +   + + + {actionmass_grp_membre_val && String(actionmass_grp_membre_val).length > 1 && + } +
+ +
+ +
} +
+ + +
+ + + +
 
+ +
+
+ + +
+ +
} + +
); } diff --git a/src/components/Module_Selection_Apprenants.js b/src/components/Module_Selection_Apprenants.js new file mode 100644 index 0000000..52cbd08 --- /dev/null +++ b/src/components/Module_Selection_Apprenants.js @@ -0,0 +1,1082 @@ +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 { 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, FcInfo } 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 'reactjs-popup/dist/index.css'; +import { FcSearch } from "react-icons/fc"; +import { FcAlarmClock, FcMultipleSmartphones, FcWorkflow } 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 'moment/locale/fr'; + +import InputAdornment from '@mui/material/InputAdornment'; +import { AiFillCloseCircle, AiOutlineConsoleSql } from "react-icons/ai"; +import Box from '@mui/material/Box'; +import { Typography, LinearProgress } 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 { RestoreFromTrashRounded } from "@mui/icons-material"; +import img_loading_spin from "./../mysy_img/mysy_spin_loading.gif"; +import { Fab } from "@material-ui/core"; +import { IoMdAddCircle, IoIosRemoveCircleOutline } from "react-icons/io"; +import { AiTwotoneEdit, AiTwotoneSave } from "react-icons/ai"; +import { confirmAlert } from 'react-confirm-alert'; +import ToggleSwitch from "./ToggleSwitch"; +import Module_Historique_Action from "./Module_Historique_Action"; +import { HiDocumentCheck } from "react-icons/hi2"; +import { BsSend } from "react-icons/bs"; +import Autocomplete from '@mui/material/Autocomplete'; +import { FcOpenedFolder } from "react-icons/fc"; +import { gridClasses } from '@mui/x-data-grid'; +import Link from '@mui/material/Link'; +import { PiDotsThree } from "react-icons/pi"; +import Module_Editique from "./Module_Editique"; +import Module_Attestation_Formation from "./Module_Attestation_Formation"; + +import { IoAddCircleOutline, IoCloseCircleOutline } from "react-icons/io5"; +import { FcCancel, FcApproval, FcAcceptDatabase, FcPrint, FcPlanner } from "react-icons/fc"; +import { CiBoxList } from "react-icons/ci"; +import FullCalendar from "@fullcalendar/react"; +import daygridPlugin from "@fullcalendar/daygrid"; +import interactionPlugin from "@fullcalendar/interaction"; +import timeGridPlugin from "@fullcalendar/timegrid"; +import resourceTimeGridPlugin from '@fullcalendar/resource-timegrid'; +import Radio from '@mui/material/Radio'; +import RadioGroup from '@mui/material/RadioGroup'; +import FormControlLabel from '@mui/material/FormControlLabel'; +import FormControl from '@mui/material/FormControl'; +import FormLabel from '@mui/material/FormLabel'; + +import allLocales from '@fullcalendar/core/locales-all' +import listPlugin from '@fullcalendar/list'; +import multiMonthPlugin from '@fullcalendar/multimonth' +import CheckBoxOutlineBlankIcon from '@mui/icons-material/CheckBoxOutlineBlank'; +import CheckBoxIcon from '@mui/icons-material/CheckBox'; +import Checkbox from '@mui/material/Checkbox'; + + +const Module_Selection_Apprenants = (props) => { + + const history = useHistory(); + const [submenu, setsubmenu] = useState(""); + const [rowss, setRows] = useState([]); + + + var date_today_90j = new Date(); + date_today_90j.setDate(date_today_90j.getDate() + 90); + + + const [p_filtre1, setp_filtre1] = useState("Inscrit "); + const [p_filtre1_value, setp_filtre1_value] = useState(""); + + const [p_filtre2, setp_filtre2] = useState("Type de groupe"); + const [p_filtre2_value, setp_filtre2_value] = useState(""); + + const [p_filtre3, setp_filtre3] = useState(""); + const [p_filtre3_value, setp_filtre3_value] = useState(""); + + const [p_filtre4, setp_filtre4] = useState(""); + const [p_filtre4_value, setp_filtre4_value] = useState(""); + + + function ExpandableCell_50({ value }) { + const [expanded, setExpanded] = React.useState(false); + + return ( + + ); + } + + const columns_participants = [ + { field: '_id', headerName: '_id', hide: true, Width: 0 }, + { field: 'id', headerName: 'id', hide: true, Width: 0 }, + + { field: 'email', headerName: 'email', flex: 1, hide: false, minWidth: 180, renderCell: (params) => , }, + { field: 'nom', headerName: 'nom', flex: 1, hide: false, minWidth: 180, renderCell: (params) => , }, + { field: 'prenom', headerName: 'prenom', flex: 1, hide: false, minWidth: 180, renderCell: (params) => , }, + { field: 'groupe', headerName: 'groupe', flex: 1, hide: false, minWidth: 180, renderCell: (params) => , }, + + + + ] + + + const [selectionModel_participants, setselectionModel_participants] = React.useState([]); + + const [selected_id, setselected_id] = React.useState(""); + + function Display_Colunm_text({ value }) { + + return ( +
+ {value}  + +
+ ); + } + + const [isLoading, setLoading] = useState(); + + const New_Option_Filter = [ + { "id": "user", "label": "Lié a la Formation (code externe) ", "value": "class_external_code" }, + { "id": "user_group", "label": "Lié a la Classe (code Classe) ", "value": "code_session" }, + { "id": "ty", "label": "Lié a l'UE (code UE) ", "value": "code_ue" }, + { "id": "", "label": "", "value": "" }, + { "id": "1", "label": "", "value": "1" }, // Cette ligne pour couvrir l'ajout d'une ligne de filter. C'est fait expres. + ] + + + const New_Option_type_user = [ + { "id": "user", "label": "Personnes Inscrites", "value": "user" }, + { "id": "user_group", "label": "Groupe ", "value": "user_group" }, + { "id": "", "label": "", "value": "" }, + + ] + + const New_Option_type_goupe = [ + { "id": "td", "label": "Groupe TD", "value": "td" }, + { "id": "tp", "label": "Groupe TP", "value": "tp" }, + { "id": "", "label": "", "value": "" }, + ] + + const [GetListePreinscrit_insc_api, setGetListePreinscrit_insc_api] = useState(); + const [GetListePreinscrit_insc_meassage, setGetListePreinscrit_insc_meassage] = useState(); + const [GetListePreinscrit_insc_result, setGetListePreinscrit_insc_result] = useState([]) + function GetListeInscrit() { + + var form = new FormData(); + //form.append("token","K3cw63eKokKSbV4spjQ48SUNnfy80yrXfA"); + const stored_cookie = getCookie('tokenmysypart'); + form.append("token", stored_cookie); + form.append("session_id", props.session_id); + + + setLoading(true); + var myurl = process.env.REACT_APP_API_URL + "myclass/api/Get_Accepted_Insription_From_Session_id_Reduice_Fields/"; + + fetch(myurl, + { + method: 'POST', + body: form, + }) + .then((data) => data.json()) + .then((data) => { + setLoading(false); + //console.log(' GetListeInscrit : Success:', data['message'], "data['status'] = ", data['status']); + setGetListePreinscrit_insc_result(data['message']); + + if (String(data['status']) === String("true")) { + //console.log("erreur rrrr:" + data['status']) + setGetListePreinscrit_insc_api("true"); + // setnb_stagiaire_Inscrit(data['message'].length); + //console.log(" ### setnb_stagiaire_Inscrit = ", data['message'].length); + + } else if (String(data['status']) === String("Err_Connexion")) { + alert('Erreur: ' + data['message']); + history.push("/Connexion"); + } + else { + setGetListePreinscrit_insc_api("false"); + + } + + }).catch((error) => { + setLoading(false); + console.error('Error:', error); + setGetListePreinscrit_insc_api("false"); + }); + + } + + const myRef_head = useRef(null); + + + function get_attendee_list_data() { + if (String(p_filtre1_value) === "user") { + GetListeInscrit(); + } + } + + const [gridline_id, setgridline_id] = useState(""); + + const New_Option_PreInscription = [ + { "id": "inscr", "label": "Inscrire", "value": "inscr" }, + ] + const [actionmass_preinsc_val, setactionmass_preinsc_val] = useState(); + + function GetSelectedRows_PreInsc_Ids() { + + + var tab_tmp = [] + for (var i = 0; i < selectionModel_participants.length; i++) { + //console.log(" ### selectionModel_insc[i] = ", selectionModel_insc[i]); + var myid = parseInt(String(selectionModel_participants[i])); + //var line = JSON.parse(rowss[myid]); + tab_tmp.push(myid); + } + return tab_tmp; + + } + + + async function actionmass_preinsc_Traitemet() { + + var liste_preinscr_id = GetSelectedRows_PreInsc_Ids(); + + //console.log(" liste_preinscr_id = ", liste_preinscr_id); + + + + var tab_mongo_preins_ids = []; + + for (var i = 0; i < liste_preinscr_id.length; i++) { + + var line = GetListePreinscrit_insc_result[liste_preinscr_id[i]] + + + var line_json = JSON.parse(line) + //console.log(" line_json['prenom'] = ", line_json['prenom']); + //console.log(" line_json['_id'] = ", line_json['_id']); + tab_mongo_preins_ids.push(line_json['_id']) + + } + + if (String(actionmass_preinsc_val) === String("inscr") && props.related_target_collection === "groupe_inscription") { + Record_Membres_To_Groupe_Inscrit(tab_mongo_preins_ids); + + } + } + const [Record_Membres_To_Groupe_Inscrit_api, setRecord_Membres_To_Groupe_Inscrit_api] = useState(); + const [Record_Membres_To_Groupe_Inscrit_message, setRecord_Membres_To_Groupe_Inscrit_message] = useState(); + const [Record_Membres_To_Groupe_Inscrit_result, setRecord_Membres_To_Groupe_Inscrit_result] = useState(); + function Record_Membres_To_Groupe_Inscrit(list_inscription_id) { + + var form = new FormData(); + + const stored_cookie = getCookie('tokenmysypart'); + form.append("token", stored_cookie); + form.append("_id", props.related_target_collection_id); + form.append("tab_inscriptions_ids", list_inscription_id); + + + + setLoading(true); + var myurl = process.env.REACT_APP_API_URL + "myclass/api/Add_Update_Groupe_Inscrit_Membres/"; + + axios.post(myurl, form).then(res => { + + if (String(res.data.status) === String("true")) { + setLoading(false); + //console.log(" In UpdateStagiaireData res.data.status = " + res.data.status); + //console.log(" In UpdateStagiaireData res.data.message r_class = " + res.data.message); + setRecord_Membres_To_Groupe_Inscrit_api("true"); + setRecord_Membres_To_Groupe_Inscrit_result(res.data.message); + + setselectionModel_participants([]); + setactionmass_preinsc_val(""); + alert(res.data.message); + + + } else if (String(res.data.status) === String("Err_Connexion")) { + setLoading(false); + alert('Erreur: ' + res.data.message); + history.push("/Connexion"); + } + else { + setLoading(false); + setRecord_Membres_To_Groupe_Inscrit_api("false"); + setRecord_Membres_To_Groupe_Inscrit_message(res.data.message); + alert(res.data.message); + + } + + }).catch((error) => { + setLoading(false); + console.warn('Record_Membres_To_Groupe_Inscrit : Not good man :( mysearchtext = ' + error); + setRecord_Membres_To_Groupe_Inscrit_api("false"); + alert(" Impossible d'inscrire les apprenants au groupe "); + + }) + } + + + + const [New_Get_List_UE_From_Class_Id_result, setNew_Get_List_UE_From_Class_Id_result] = useState([]); + + const [Get_List_UE_From_Class_Id_api, setGet_List_UE_From_Class_Id_api] = useState(); + const [Get_List_UE_From_Class_Id_message, setGet_List_UE_From_Class_Id_message] = useState(); + const [Get_List_UE_From_Class_Id_result, setGet_List_UE_From_Class_Id_result] = useState(); + function Get_List_UE_From_Class_Id(local_class_id) { + + var form = new FormData(); + + + const stored_cookie = getCookie('tokenmysypart'); + form.append("token", stored_cookie); + form.append("class_id", local_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 Get_List_UE_From_Class_Id res.data.status = " + res.data.status); + //console.log(" In Get_List_UE_From_Class_Id res.data.message r_class = " + res.data.message); + setGet_List_UE_From_Class_Id_api("true"); + setGet_List_UE_From_Class_Id_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_class_id = JSON.parse(x).class_id; + var local_internal_url = JSON.parse(x).internal_url; + + + + + //--- + var node = { + "_id": local_id, + "id": localid, + "label": local_code, + "code": local_code, + "titre": local_titre, + "class_id": local_class_id, + "internal_url": local_internal_url, + + }; + new_data2.push(node); + }); + + //--- + /* var node = { + "_id": "", + "id": "", + "label": "", + "code": "", + "titre": "", + "class_id": "", + "internal_url": "", + + }; + new_data2.push(node);*/ + + if (new_data2.length > 0) { + setNew_Get_List_UE_From_Class_Id_result(new_data2); + // console.log("### setNew_Get_List_UE_From_Class_Id_result = ", new_data2); + } + } + else { + setGet_List_UE_From_Class_Id_api("false"); + setGet_List_UE_From_Class_Id_message(res.data.message); + alert(res.data.message); + } + + }).catch((error) => { + + setLoading(false); + console.warn('Not good man :( Get_List_UE_From_Class_Id = ', error); + setGet_List_UE_From_Class_Id_api("false"); + alert(" Impossible de recuperer la liste des UE de la formation"); + //setmyApimyApiMessage("") + }) + } + + + const [New_Getall_Class_List_Evalution_result, setNew_Getall_Class_List_Evalution_result] = useState([]); + + const [Getall_Class_List_Evalution_api, setGetall_Class_List_Evalution_api] = useState(); + const [Getall_Class_List_Evalution_message, setGetall_Class_List_Evalution_message] = useState(); + const [Getall_Class_List_Evalution_result, setGetall_Class_List_Evalution_result] = useState([]); + function Getall_Class_List_Evalution(local_class_id) { + + var form = new FormData(); + + const stored_cookie = getCookie('tokenmysypart'); + form.append("token", stored_cookie); + form.append("class_id", local_class_id); + + var myurl = process.env.REACT_APP_API_URL + "myclass/api/Get_List_Class_Evaluation/"; + + setLoading(true); + + axios.post(myurl, form).then(res => { + + + setLoading(false); + if (String(res.data.status) === String("true")) { + //console.log(" In Getall_Class_List_Evalution res.data.status = " + res.data.status); + //console.log(" In Getall_Class_List_Evalution res.data.message r_class = " + res.data.message); + setGetall_Class_List_Evalution_api("true"); + setGetall_Class_List_Evalution_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_class_id = JSON.parse(x).class_id; + var local_class_ue_id = JSON.parse(x).class_ue_id; + var local_class_ue_code = JSON.parse(x).class_ue_code; + var local_type_evaluation_id = JSON.parse(x).type_evaluation_id; + var local_type_evaluation_code = JSON.parse(x).type_evaluation_code; + var local_max_note = JSON.parse(x).max_note; + + + //--- + var node = { + "_id": local_id, + "id": localid, + "label": local_type_evaluation_code + "-" + local_class_ue_code, + "class_id": local_class_id, + "class_ue_id": local_class_ue_id, + "class_ue_code": local_class_ue_code, + "type_evaluation_id": local_type_evaluation_id, + "type_evaluation_code": local_type_evaluation_code, + "max_note": local_max_note, + + + }; + new_data2.push(node); + }); + + //--- + /* var node = { + "_id": "", + "id": "", + "label": "", + "class_id": "", + "class_ue_id": "", + "class_ue_code": "", + "type_evaluation_id": "", + "type_evaluation_code": "", + "max_note": "", + + }; + new_data2.push(node);*/ + + if (new_data2.length > 0) { + setNew_Getall_Class_List_Evalution_result(new_data2); + //console.log(" setNew_Getall_Class_List_Evalution_result = ", new_data2); + + } + } + else { + setGetall_Class_List_Evalution_api("false"); + setGetall_Class_List_Evalution_message(res.data.message); + alert(res.data.message); + } + + }).catch((error) => { + + setLoading(false); + console.warn('Not good man :( Getall_Class_List_Evalution = ', error); + setGetall_Class_List_Evalution_api("false"); + alert(" Impossible de recuperer la liste des évaluations de la formatio"); + //setmyApimyApiMessage("") + }) + } + + const [New_Get_Inscrit_List_UE_result, setNew_Get_Inscrit_List_UE_result] = useState([]); + const [tab_inscrit_ue_id, settab_inscrit_ue_id] = useState([]); + + const [Get_Inscrit_List_UE_api, setGet_Inscrit_List_UE_api] = useState(); + const [Get_Inscrit_List_UE_message, setGet_Inscrit_List_UE_message] = useState(); + const [Get_Inscrit_List_UE_result, setGet_Inscrit_List_UE_result] = useState(); + function Get_Inscrit_List_UE(local_inscription_id) { + var form = new FormData(); + + const stored_cookie = getCookie('tokenmysypart'); + form.append("token", stored_cookie); + form.append("inscription_id", local_inscription_id); + + + var myurl = process.env.REACT_APP_API_URL + "myclass/api/Get_Inscrit_List_EU/"; + + setLoading(true); + + axios.post(myurl, form).then(res => { + + setLoading(false); + + if (String(res.data.status) === String("true")) { + //console.log(" In Get_Inscrit_List_UE res.data.status = " + res.data.status); + // console.log(" In Get_Inscrit_List_UE res.data.message r_class = " + res.data.message); + setGet_Inscrit_List_UE_api("true"); + setGet_Inscrit_List_UE_result(res.data.message); + + var new_data2 = []; + + var tab_tmp = [] + const new_data = res.data.message.map((x) => { + + //--- + var localid = JSON.parse(x).id; + var local_id = JSON.parse(x)._id; + var local_class_id = JSON.parse(x).class_id; + var local_class_eu_id = JSON.parse(x).class_eu_id; + var local_ue_code = JSON.parse(x).code; + var local_ue_titre = JSON.parse(x).titre; + + + tab_tmp.push(local_class_eu_id); + + //--- + var node = { + "_id": local_id, + "id": localid, + "label": local_ue_code, + "class_id": local_class_id, + "class_eu_id": local_class_eu_id, + "ue_code": local_ue_code, + "ue_titre": local_ue_titre, + }; + new_data2.push(node); + + // return {"_id": " + str(local_id) + ", "label": " + local_courrier_template_ref_interne + '" , "courrier_template_ref_interne": "' + local_courrier_template_ref_interne + '", "nom_champ_technique": "' + local_nom_champ_technique + '", "nom_champ_fonctionel": "' + local_nom_champ_fonctionel + '","valide": "1" }; + + }); + + //--- + var node = { + "_id": "", + "id": "", + "label": "", + "class_id": "", + "class_eu_id": "", + "ue_code": "", + "ue_titre": "", + }; + new_data2.push(node); + + + if (new_data2.length > 0) { + setNew_Get_Inscrit_List_UE_result(new_data2); + settab_inscrit_ue_id(tab_tmp); + + if (New_Getall_Class_List_Evalution_result && New_Getall_Class_List_Evalution_result.length > 0) { + + var local_defaultValue = New_Getall_Class_List_Evalution_result.filter((data) => { + if (tab_inscrit_evaluation_ue_id.includes(String(data.type_evaluation_id))) { + + return data; + } + }); + + setinscription_list_ue_eval(local_defaultValue); + } + + + } + + + } + else { + setGet_Inscrit_List_UE_api("false"); + setGet_Inscrit_List_UE_message(res.data.message); + } + + }).catch((error) => { + setLoading(false); + console.warn('Not good man :( Get_Inscrit_List_UE = ', error); + setGet_Inscrit_List_UE_api("false"); + //setmyApimyApiMessage("") + }) + } + + const [tab_inscrit_evaluation_ue_id, settab_inscrit_evaluation_ue_id] = useState([]); + + const [inscription_list_ue, setinscription_list_ue] = useState([]); + const [inscription_list_ue_eval, setinscription_list_ue_eval] = useState([]); + + useEffect(() => { + + Get_List_UE_From_Class_Id(props.class_id); + Getall_Class_List_Evalution(props.class_id); + }, []) + + const icon = ; + const checkedIcon = ; + + const [ueChanged, setueChanged] = useState(""); + + + + return ( +
+ + {isLoading &&
+
+
} + + + +
+
Utilisez les filtres !
+
+
+ + + +
+ + + +
+ {p_filtre1 && New_Option_type_user && New_Option_type_user.length > 0 && + (data).value === String(p_filtre1_value))[0].label} + options={New_Option_type_user} + onChange={(event, value) => { + if (value && value.value) { + setp_filtre1_value(value.value); + } else { + setp_filtre1_value(""); + } + + }} + + renderInput={(params) => + } + /> + + } + +
+ + +
+ + {p_filtre1_value && String(p_filtre1_value) === "user_group" && +
+
+ + +
+
+ {p_filtre1_value && String(p_filtre1_value) === "user_group" && + + (data).value === String(p_filtre2_value))[0].label} + options={New_Option_type_goupe} + onChange={(event, value) => { + if (value && value.value) { + setp_filtre2_value(value.value); + } else { + setp_filtre2_value(""); + } + + }} + + renderInput={(params) => + } + /> + } +
+ +
+ } + + + {/* +
+
Unite D'enseignement
+ {New_Get_List_UE_From_Class_Id_result && New_Get_List_UE_From_Class_Id_result.length > 0 && + + option.label} + + options={New_Get_List_UE_From_Class_Id_result} + defaultValue={New_Get_List_UE_From_Class_Id_result.filter((data) => { + if (tab_inscrit_ue_id.includes(String(data._id))) { + + return data; + } + })} + + renderOption={(props, option, { selected }) => ( +
  • + + {option.label} +
  • + )} + // style={{ width: 500 }} + + onChange={(event, value) => { + setinscription_list_ue(value) + setueChanged("1"); + }} + + renderInput={(params) => + } + /> + + } + +
    + + + +
    +*/} +
    + +
    + +
    + +
    + + +
    + +
    + +
    +
    + +
    + + +
    + +
    +
    + +
    + +   + + { + setselectionModel_participants(newSelectionModel); + /*if (newSelectionModel.length === 1) + handleClick_edit_employee_From_Line(newSelectionModel);*/ + if (newSelectionModel.length !== 1) { + /* setsubmenu(); + setdisplay_detail_employe(); + setadd_One_Employee();*/ + } + }} + selectionModel={selectionModel_participants} + + localeText={frFR.components.MuiDataGrid.defaultProps.localeText} + rows={GetListePreinscrit_insc_result.map((item, index) => ( + { + id: index, + _id: JSON.parse(item)._id, + code: JSON.parse(item).code, + email: JSON.parse(item).apprenant_email, + nom: JSON.parse(item).apprenant_nom, + prenom: JSON.parse(item).apprenant_prenom, + groupe: JSON.parse(item).groupe, + } + ))} + + columns={columns_participants} + pageSize={10} + className="datagridclass" + + onRowDoubleClick={(newSelectionModel) => { + setselected_id(newSelectionModel.row._id); + setgridline_id(newSelectionModel.row.id); + //handleClick_edit_evaluation_From_Line(newSelectionModel.row.id); + }} + + rowsPerPageOptions={[10]} + disableSelectionOnClick + components={{ + Toolbar: GridToolbar, + }} + //sx={datagridSx} + getCellClassName={(params) => { + + }} + 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'; + } + + + }} + getEstimatedRowHeight={() => 200} + getRowHeight={() => "auto"} + sx={{ + "& .MuiDataGrid-cellContent": { + minHeight: 50, + + } + }} + + /> + + + + {selectionModel_participants && selectionModel_participants.length >= 1 && +
    +
    + +   + + { + if (value && value.value) { + if (String(value.value) === "inscr") { + setactionmass_preinsc_val(value.value); + } + else { + setactionmass_preinsc_val(""); + } + } + else { + setactionmass_preinsc_val(""); + } + + }} + + renderInput={(params) => + } + /> +   + + {actionmass_preinsc_val && String(actionmass_preinsc_val).length > 1 && + } +
    + +
    + +
    } +
    + +
    + + +
    +
    + +
    + + +
    +
    + +
    + +
    + ); +} + +export default Module_Selection_Apprenants; diff --git a/src/components/Module_Selection_Evaluation_Apprenants.js b/src/components/Module_Selection_Evaluation_Apprenants.js index 41b5f47..f7fe735 100644 --- a/src/components/Module_Selection_Evaluation_Apprenants.js +++ b/src/components/Module_Selection_Evaluation_Apprenants.js @@ -262,6 +262,91 @@ const Module_Selection_Evaluation_Apprenants = (props) => { { "id": "", "label": "", "value": "" }, ] + + + + const [New_Getall_Groupe_Membres_result, setNew_Getall_Groupe_Membres_result] = useState([]); + + const [Getall_Groupe_Membres_api, setGetall_Groupe_Membres_api] = useState(); + const [Getall_Groupe_Membres_message, setGetall_Groupe_Membres_message] = useState(); + const [Getall_Groupe_Membres_result, setGetall_Groupe_Membres_result] = useState([]); + function Getall_Groupe_Membres(local_groupe_id) { + + var evalutaion_id = ""; + + var form = new FormData(); + + + const stored_cookie = getCookie('tokenmysypart'); + form.append("token", stored_cookie); + form.append("_id", local_groupe_id); + + var myurl = process.env.REACT_APP_API_URL + "myclass/api/Get_Given_Groupe_Membres/"; + + + + axios.post(myurl, form).then(res => { + + if (String(res.data.status) === String("true")) { + //console.log(" In Getall_Groupe_Membres res.data.status = " + res.data.status); + //console.log(" In Getall_Groupe_Membres res.data.message r_class = " + res.data.message); + setGetall_Groupe_Membres_api("true"); + setGetall_Groupe_Membres_result(res.data.message); + + + var new_data2 = []; + const new_data = res.data.message.map((x) => { + + // /!\ : ici on met l'inscription dans le '_id' exceptionnellement. + // Ca permet de rester cohérent avec la recherche venant de la collection 'inscription', pas de recherche depuis un groupe de TD ou TP... + //--- + var localid = JSON.parse(x).id; + var local_id = JSON.parse(x).inscription_id; + var local_nom = JSON.parse(x).nom; + var local_prenom = JSON.parse(x).prenom; + var local_email = JSON.parse(x).email; + var local_inscription_id = JSON.parse(x).inscription_id; + + + //--- + var node = { + "_id": local_id, + "id": localid, + "label": local_nom, + "nom": local_nom, + "prenom": local_prenom, + "email": local_email, + "groupe": "", + "inscription_id": local_inscription_id, + + }; + new_data2.push(node); + }); + + + if (new_data2) { + setNew_Getall_Groupe_Membres_result(new_data2); + setNew_GetListePreinscrit_insc_result(new_data2); + } + + } + else { + setGetall_Groupe_Membres_api("false"); + setGetall_Groupe_Membres_message(res.data.message); + alert(res.data.message); + } + + }).catch((error) => { + console.warn('Not good man :( Getall_Groupe_Membres = ', error); + setGetall_Groupe_Membres_api("false"); + alert(" Impossible de recuperer la liste des membres du groupe"); + //setmyApimyApiMessage("") + }) + } + + + const [New_GetListePreinscrit_insc_result, setNew_GetListePreinscrit_insc_result] = useState([]); + const [GetListePreinscrit_insc_api, setGetListePreinscrit_insc_api] = useState(); const [GetListePreinscrit_insc_meassage, setGetListePreinscrit_insc_meassage] = useState(); const [GetListePreinscrit_insc_result, setGetListePreinscrit_insc_result] = useState([]) @@ -291,8 +376,39 @@ const Module_Selection_Evaluation_Apprenants = (props) => { if (String(data['status']) === String("true")) { //console.log("erreur rrrr:" + data['status']) setGetListePreinscrit_insc_api("true"); - // setnb_stagiaire_Inscrit(data['message'].length); - //console.log(" ### setnb_stagiaire_Inscrit = ", data['message'].length); + + + + var new_data2 = []; + const new_data = data['message'].map((x) => { + + //--- + var localid = JSON.parse(x).id; + var local_id = JSON.parse(x)._id; + var local_nom = JSON.parse(x).apprenant_nom; + var local_prenom = JSON.parse(x).apprenant_prenom; + var local_email = JSON.parse(x).apprenant_email; + + //--- + var node = { + "_id": local_id, + "id": localid, + "label": local_nom + " " + local_prenom, + "nom": local_nom, + "prenom": local_prenom, + "email": local_email, + "groupe": "", + }; + new_data2.push(node); + }); + + + if (new_data2) { + setNew_GetListePreinscrit_insc_result(new_data2); + + } + + } else if (String(data['status']) === String("Err_Connexion")) { alert('Erreur: ' + data['message']); @@ -318,6 +434,11 @@ const Module_Selection_Evaluation_Apprenants = (props) => { if (String(p_filtre1_value) === "user") { GetListeInscrit(); } + + if (String(p_filtre1_value) === "user_group") { + Getall_Groupe_Membres(p_filtre2_value); + } + } const [gridline_id, setgridline_id] = useState(""); @@ -346,21 +467,18 @@ const Module_Selection_Evaluation_Apprenants = (props) => { var liste_preinscr_id = GetSelectedRows_PreInsc_Ids(); - //console.log(" liste_preinscr_id = ", liste_preinscr_id); - - - + var tab_mongo_preins_ids = []; for (var i = 0; i < liste_preinscr_id.length; i++) { - var line = GetListePreinscrit_insc_result[liste_preinscr_id[i]] + var line = New_GetListePreinscrit_insc_result[liste_preinscr_id[i]] - var line_json = JSON.parse(line) - //console.log(" line_json['prenom'] = ", line_json['prenom']); + var line_json = line; + console.log(" line_json = ", line_json); //console.log(" line_json['_id'] = ", line_json['_id']); - tab_mongo_preins_ids.push(line_json['_id']) + tab_mongo_preins_ids.push(line_json._id) } @@ -722,11 +840,351 @@ const Module_Selection_Evaluation_Apprenants = (props) => { const [inscription_list_ue, setinscription_list_ue] = useState([]); const [inscription_list_ue_eval, setinscription_list_ue_eval] = useState([]); + + + const [New_Getall_Partner_Session_Reduice_Fields_result, setNew_Getall_Partner_Session_Reduice_Fields_result] = useState([]); + + const [Getall_Partner_Session_Reduice_Fields_api, setGetall_Partner_Session_Reduice_Fields_api] = useState(); + const [Getall_Partner_Session_Reduice_Fields_message, setGetall_Partner_Session_Reduice_Fields_message] = useState(); + const [Getall_Partner_Session_Reduice_Fields_result, setGetall_Partner_Session_Reduice_Fields_result] = useState(); + function Getall_Partner_Session_Reduice_Fields(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_Partner_Session_Ftion_Reduice_Fields/"; + + axios.post(myurl, form).then(res => { + + if (String(res.data.status) === String("true")) { + //console.log(" In Getall_Partner_Session_Reduice_Fields res.data.status = " + res.data.status); + //console.log(" In Getall_Partner_Session_Reduice_Fields res.data.message r_class = " + res.data.message); + setGetall_Partner_Session_Reduice_Fields_api("true"); + setGetall_Partner_Session_Reduice_Fields_result(res.data.message); + setRows(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_session = JSON.parse(x).code_session; + var local_titre = JSON.parse(x).titre; + var local_class_internal_url = JSON.parse(x).class_internal_url; + + var local_date_debut = JSON.parse(x).date_debut; + var local_date_fin = JSON.parse(x).date_fin; + + + + + //--- + var node = { + "_id": local_id, + "id": localid, + "label": local_code_session, + "code_session": local_code_session, + "titre": local_titre, + "class_internal_url": local_class_internal_url, + "date_debut": local_date_debut, + "date_fin": local_date_fin, + }; + new_data2.push(node); + }); + + + //--- + var node = { + "_id": "", + "id": "", + "label": "", + "code_session": "", + "titre": "", + "class_internal_url": "", + "date_debut": "", + "date_fin": "", + }; + new_data2.push(node); + + + if (new_data2.length > 0) + setNew_Getall_Partner_Session_Reduice_Fields_result(new_data2); + + } + else { + setGetall_Partner_Session_Reduice_Fields_api("false"); + setGetall_Partner_Session_Reduice_Fields_message(res.data.message); + alert(res.data.message); + } + + }).catch((error) => { + console.warn('Not good man :( Getall_Partner_Session_Reduice_Fields = ', error); + setGetall_Partner_Session_Reduice_Fields_api("false"); + alert(" Impossible de recuperer la liste des sessions de formation (classe)"); + //setmyApimyApiMessage("") + }) + } + + const [New_Getall_Partner_Class_Reduice_Fields_result, setNew_Getall_Partner_Class_Reduice_Fields_result] = useState([]); + + const [Getall_Partner_Class_Reduice_Fields_api, setGetall_Partner_Class_Reduice_Fields_api] = useState(); + const [Getall_Partner_Class_Reduice_Fields_message, setGetall_Partner_Class_Reduice_Fields_message] = useState(); + const [Getall_Partner_Class_Reduice_Fields_result, setGetall_Partner_Class_Reduice_Fields_result] = useState(); + function Getall_Partner_Class_Reduice_Fields(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_Partner_All_Class_Few_Fields/"; + + axios.post(myurl, form).then(res => { + + if (String(res.data.status) === String("true")) { + //console.log(" In Getall_Partner_Class_Reduice_Fields res.data.status = " + res.data.status); + //console.log(" In Getall_Partner_Class_Reduice_Fields res.data.message r_class = " + res.data.message); + setGetall_Partner_Class_Reduice_Fields_api("true"); + setGetall_Partner_Class_Reduice_Fields_result(res.data.message); + setRows(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_external_code = JSON.parse(x).external_code; + var local_internal_code = JSON.parse(x).internal_code; + var local_internal_url = JSON.parse(x).internal_url; + + + //--- + var node = { + "_id": local_id, + "id": localid, + "label": local_external_code, + "external_code": local_external_code, + "internal_code": local_internal_code, + "internal_url": local_internal_url + }; + new_data2.push(node); + }); + + + //--- + var node = { + "_id": "", + "id": "", + "label": "", + "external_code": "", + "internal_code": "", + "internal_url": "" + }; + new_data2.push(node); + + + if (new_data2.length > 0) + setNew_Getall_Partner_Class_Reduice_Fields_result(new_data2); + + } + else { + setGetall_Partner_Class_Reduice_Fields_api("false"); + setGetall_Partner_Class_Reduice_Fields_message(res.data.message); + alert(res.data.message); + } + + }).catch((error) => { + console.warn('Not good man :( Getall_Partner_Class_Reduice_Fields = ', error); + setGetall_Partner_Class_Reduice_Fields_api("false"); + alert(" Impossible de recuperer la liste des formations"); + //setmyApimyApiMessage("") + }) + } + + + const [New_Getall_Partner_Groupe_Inscrit_result, setNew_Getall_Partner_Groupe_Inscrit_result] = useState([]); + + const [Getall_Partner_Groupe_Inscrit_api, setGetall_Partner_Groupe_Inscrit_api] = useState(); + const [Getall_Partner_Groupe_Inscrit_message, setGetall_Partner_Groupe_Inscrit_message] = useState(); + const [Getall_Partner_Groupe_Inscrit_result, setGetall_Partner_Groupe_Inscrit_result] = useState([]); + function Getall_Partner_Groupe_Inscrit(event) { + + var form = new FormData(); + + + const stored_cookie = getCookie('tokenmysypart'); + form.append("token", stored_cookie); + form.append("session_id", props.session_id); + + + var myurl = process.env.REACT_APP_API_URL + "myclass/api/Get_List_Groupe_Inscrit_With_Filter/"; + + axios.post(myurl, form).then(res => { + + if (String(res.data.status) === String("true")) { + //console.log(" In Getall_Partner_Groupe_Inscrit res.data.status = " + res.data.status); + //console.log(" In Getall_Partner_Groupe_Inscrit res.data.message r_class = " + res.data.message); + setGetall_Partner_Groupe_Inscrit_api("true"); + setGetall_Partner_Groupe_Inscrit_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_nom = JSON.parse(x).nom; + var local_type_groupe_code = JSON.parse(x).type_groupe_code; + var local_class_id = JSON.parse(x).class_id; + var local_session_id = JSON.parse(x).session_id; + + + + //--- + var node = { + "_id": local_id, + "id": localid, + "label": local_code, + "code": local_code, + "nom": local_nom, + "type_groupe_code": local_type_groupe_code, + "class_id": local_class_id, + "session_id": local_session_id, + + + }; + new_data2.push(node); + }); + + //--- + var node = { + "_id": "", + "id": "", + "label": "", + "code": "", + "nom": "", + "type_groupe_code": "", + "class_id": "", + "session_id": "", + + }; + new_data2.push(node); + + if (new_data2.length > 0) + setNew_Getall_Partner_Groupe_Inscrit_result(new_data2); + + } + else { + setGetall_Partner_Groupe_Inscrit_api("false"); + setGetall_Partner_Groupe_Inscrit_message(res.data.message); + alert(res.data.message); + } + + }).catch((error) => { + console.warn('Not good man :( Getall_Partner_Groupe_Inscrit = ', error); + setGetall_Partner_Groupe_Inscrit_api("false"); + alert(" Impossible de recuperer la liste des groupes d'inscrits"); + //setmyApimyApiMessage("") + }) + } + useEffect(() => { Get_List_UE_From_Class_Id(props.class_id); Getall_Class_List_Evalution(props.class_id); - }, []) + + + Getall_Partner_Class_Reduice_Fields(); + Getall_Partner_Session_Reduice_Fields(); + + Getall_Groupe_Apprenant_Type(); + + Getall_Partner_Groupe_Inscrit(); + + + + }, []); + + const [New_Getall_Groupe_Apprenant_Type_result, setNew_Getall_Groupe_Apprenant_Type_result] = useState([]); + + const [Getall_Groupe_Apprenant_Type_api, setGetall_Groupe_Apprenant_Type_api] = useState(); + const [Getall_Groupe_Apprenant_Type_message, setGetall_Groupe_Apprenant_Type_message] = useState(); + const [Getall_Groupe_Apprenant_Type_result, setGetall_Groupe_Apprenant_Type_result] = useState(); + function Getall_Groupe_Apprenant_Type(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_Type_Groupe_Apprenant/"; + + axios.post(myurl, form).then(res => { + + if (String(res.data.status) === String("true")) { + //console.log(" In Getall_Groupe_Apprenant_Type res.data.status = " + res.data.status); + //console.log(" In Getall_Groupe_Apprenant_Type res.data.message r_class = " + res.data.message); + setGetall_Groupe_Apprenant_Type_api("true"); + setGetall_Groupe_Apprenant_Type_result(res.data.message); + setRows(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_description = JSON.parse(x).description; + + + //--- + var node = { + "_id": local_id, + "id": localid, + "label": local_code + " - " + local_description, + "code": local_code, + "description": local_description, + + }; + new_data2.push(node); + }); + + + //--- + var node = { + "_id": "", + "id": "", + "label": "", + "code": "", + "description": "", + + }; + new_data2.push(node); + + + if (new_data2.length > 0) + setNew_Getall_Groupe_Apprenant_Type_result(new_data2); + + } + else { + setGetall_Groupe_Apprenant_Type_api("false"); + setGetall_Groupe_Apprenant_Type_message(res.data.message); + alert(res.data.message); + } + + }).catch((error) => { + console.warn('Not good man :( Getall_Groupe_Apprenant_Type = ', error); + setGetall_Groupe_Apprenant_Type_api("false"); + alert(" Impossible de recuperer la liste des type de groupe d'apprenants"); + //setmyApimyApiMessage("") + }) + } + + const icon = ; const checkedIcon = ; @@ -820,17 +1278,18 @@ const Module_Selection_Evaluation_Apprenants = (props) => {
    {p_filtre1_value && String(p_filtre1_value) === "user_group" && + New_Getall_Partner_Groupe_Inscrit_result && New_Getall_Partner_Groupe_Inscrit_result.length > 0 && (data).value === String(p_filtre2_value))[0].label} - options={New_Option_type_goupe} + value={New_Getall_Partner_Groupe_Inscrit_result.filter((data) => (data)._id === String(p_filtre2_value))[0].label} + options={New_Getall_Partner_Groupe_Inscrit_result} onChange={(event, value) => { - if (value && value.value) { - setp_filtre2_value(value.value); + if (value && value._id) { + setp_filtre2_value(value._id); } else { setp_filtre2_value(""); } @@ -987,15 +1446,15 @@ const Module_Selection_Evaluation_Apprenants = (props) => { selectionModel={selectionModel_participants} localeText={frFR.components.MuiDataGrid.defaultProps.localeText} - rows={GetListePreinscrit_insc_result.map((item, index) => ( + rows={New_GetListePreinscrit_insc_result.map((item, index) => ( { id: index, - _id: JSON.parse(item)._id, - code: JSON.parse(item).code, - email: JSON.parse(item).apprenant_email, - nom: JSON.parse(item).apprenant_nom, - prenom: JSON.parse(item).apprenant_prenom, - groupe: JSON.parse(item).groupe, + _id: (item)._id, + code: (item).code, + email: (item).email, + nom: (item).nom, + prenom: (item).prenom, + groupe: (item).groupe, } ))} @@ -1145,7 +1604,7 @@ const Module_Selection_Evaluation_Apprenants = (props) => {
    - +
    diff --git a/src/components/Notes_Evaluation.js b/src/components/Notes_Evaluation.js index f950cb8..f787732 100644 --- a/src/components/Notes_Evaluation.js +++ b/src/components/Notes_Evaluation.js @@ -271,7 +271,7 @@ const Notes_Evaluation = (props) => {
    {' '} - En confirmant cette opération, l'employé sera définitivement supprimé.
    + En confirmant cette opération, l'évaluation sera définitivement supprimée.
    @@ -2038,6 +2038,7 @@ const Notes_Evaluation = (props) => { const New_Option_PreInscription = [ { "id": "delete_inscr", "label": "Supprimer", "value": "delete_inscr" }, + { "id": "", "label": "", "value": "" }, ] @@ -2464,7 +2465,7 @@ const Notes_Evaluation = (props) => { setLoading(false); //console.log(" In Export_Dashbord_to_CSV res.data = " + res.data); if (String(res.data) === String("false")) { - alert("Impossible d'exporter les réponses (2) "); + alert("Impossible d'exporter les notes (2) "); } else { fileDownload(res.data, nom_fichier_cmd) @@ -3564,12 +3565,12 @@ const Notes_Evaluation = (props) => {
    -
    titre
    +
    Titre
    {
    -
    titre
    +
    Titre
    {
     
    +
    }
    diff --git a/src/styles/components/_moduleselectionapprenants.scss b/src/styles/components/_moduleselectionapprenants.scss new file mode 100644 index 0000000..5c05ef6 --- /dev/null +++ b/src/styles/components/_moduleselectionapprenants.scss @@ -0,0 +1,2826 @@ +.moduleselectionapprenants { + + .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; + } + + .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; + } + + .mode_affichage { + width: 25%; + float: right; + cursor: pointer; + + } + + } + + @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; + } + + .training_caract { + width: 48%; + 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: 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; + } + + .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; + } + + .mode_affichage { + width: 15%; + float: right; + cursor: pointer; + + } + + } + + @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; + } + + .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; + } + + .mode_affichage { + width: 12%; + float: right; + cursor: pointer; + + } + + } + + @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; + } + + .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; + } + + .mode_affichage { + width: 8%; + float: right; + cursor: pointer; + } + + .DialogContent_width_for_week_model { + width: 900px !important; + max-width: none !important; + } + + + .MuiPaper-root{ + max-width: none !important; + } + } + + // end media + + + .DialogContent_width_for_week_model { + width: 900px !important; + max-width: none !important; + } + + .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; +} + +.popup-overlay { + z-index: 1301 !important; +} \ No newline at end of file diff --git a/src/styles/index.scss b/src/styles/index.scss index 745fd7d..1c42bc8 100644 --- a/src/styles/index.scss +++ b/src/styles/index.scss @@ -114,4 +114,5 @@ @import "./components/partner_ftion_initiale_configuration"; @import "./components/note_evaluation"; @import "./components/moduleselectionevaluationapprenants"; -@import "./components/groupe_apprenant"; \ No newline at end of file +@import "./components/groupe_apprenant"; +@import "./components/moduleselectionapprenants"; \ No newline at end of file