+
+ }
+ modal
+ nested
+ position="center center"
+ >
+ {close => (
+
+
+ ×
+
+
MySy Info
+
+ {' '}
+
+ Confirmer la mise à jour des informations du stagiaire
+
+
+
+ {
+ //handleClick_update_data(event, cellValues);
+ close();
+ }}> Valider
- /!\ Important : Confirmer la publication de la formation dans l'eapce E-Learning.
- Vous allez écraser d'eventuelles informations déjà présente dans le e-Learning, pour cette formation.
-
-
-
{
- //handlepush_to_lms(event, cellValues);
+
+ {
+ //console.log('modal closed ');
close();
- }}> Valider
-
-
-
- {
- //console.log('modal closed ');
- close();
- }}
- >
- Annuler
-
-
+ }}
+ >
+ Annuler
+
- )}
-
-
+
+ )}
+
);
}
},
+ {
+ field: "valide", headerName: 'Valider',
+ renderCell: (cellValues) => {
+ return (
+
+
{
+ //handleClick_accept(event, cellValues);
+ }}
+ >
+
+
+ }
+ modal
+ nested
+ position="center center"
+ >
+ {close => (
+
+
+ ×
+
+
MySy Info
+
+ {' '}
+
+ En confirmant cette opération, l'inscription du stagiaire sera définitivement validée.
+ Il (le stagiaire) sera automatiquement notifié par email de la validation de son inscription.
+ Le stagiaire passera de l'onglet "préinscrit" vers l'onglet "inscription".
+
+
+
+ {
+ //handleClick_accept(event, cellValues);
+ //console.log('modal closed ');
+ close();
+ }}> Valider
+
+
+
+ {
+ //console.log('modal closed ');
+ close();
+ }}
+ >
+ Annuler
+
+
+
+
+ )}
+
+
+ );
+ }
+ },
+
+ {
+ field: "refuse", headerName: 'Refuser',
+ renderCell: (cellValues) => {
+ return (
+
+
{
+ //handleClick_refuse(event, cellValues);
+ }}
+ >
+
+
+ }
+ modal
+ nested
+ position="center center"
+ >
+ {close => (
+
+
+ ×
+
+
MySy Info
+
+ {' '}
+
+ En confirmant cette opération, l'inscription du stagiaire sera refusée .
+ Il (le stagiaire) sera automatiquement notifié par email du refus de son inscription.
+ Motif du refus :
+
+
+
+
+
+ {
+ //handleClick_refuse(event, cellValues);
+ //console.log('modal closed ');
+ close();
+ }}> Valider
+
+
+
+ {
+ //console.log('modal closed ');
+ close();
+ }}
+ >
+ Annuler
+
+
+
+
+ )}
+
+
+
+ );
+ }
+ }
+
+
]
+ const columns_inscrit = [
+ { field: 'id', headerName: 'id', hide: true },
+ { field: 'email', headerName: 'emails', width: 200, hideable: false, flex: 1, minWidth: 150, maxWidth: 300 },
+ { field: 'nom', headerName: 'nom', width: 150, hide: false, editable: true, resizable: true },
+ { field: 'prenom', headerName: 'prenom', width: 150, hide: false, editable: true },
+ { field: 'employeur', headerName: 'Employeur', width: 200, hide: false, editable: true },
+ { field: 'opco', headerName: 'Centre Opco', width: 150, hide: false, editable: true },
+ { field: 'modefinancement', headerName: 'Financement', width: 150, hide: false, editable: true },
+ { field: 'amount', headerName: 'Montant Formation', width: 150, type: 'number', hideable: false, flex: 1, editable: true },
+ {
+ field: "sendmail", headerName: 'Email Confirmation',
+ renderCell: (cellValues) => {
+ return (
+
{
+ // handleClick_resend_conf_mail(event, cellValues);
+ }}
+ >
+
+
+
+
+ );
+ }
+ },
+
+ {
+ field: "Detail", headerName: 'Voir detail',
+ renderCell: (cellValues) => {
+ return (
+
+
{
+ //Display_Detail_Inscription(event, cellValues);
+ }}
+ >
+
+
+
+
+ );
+ }
+ },
+ {
+ field: "Imprimer", headerName: 'Imprimer detail',
+ renderCell: (cellValues) => {
+ return (
+
+
{
+ //Print_Detail_Inscription(event, cellValues);
+ }}
+ >
+
+
+
+
+ );
+ }
+ },
+
+
+
+ ]
const [Getall_TrainingSession_api, setGetall_TrainingSession_api] = useState();
const [Getall_TrainingSession_message, setGetall_TrainingSession_message] = useState();
@@ -225,8 +407,10 @@ const DisplayPartnerSession = (props) => {
useEffect(() => {
Getall_TrainingSession();
+
}, [])
+
async function actionmass_preinsc_Traitemet() {
}
@@ -243,16 +427,851 @@ const DisplayPartnerSession = (props) => {
}
}
+ function submenu_preinscrit() {
+ setsubmenu("preinscrit");
+ }
+
+ function submenu_inscrit() {
+ setsubmenu("inscrit");
+ }
+
+ function handleClickSessionManagement(event, cellValues) {
+ var code_session = cellValues.row.code_session;
+ setselected_code_session(cellValues.row.code_session);
+
+ var internal_url = cellValues.row.class_internal_url;
+ setselected_internal_url(cellValues.row.class_internal_url);
+
+ GetListePreinscrit(cellValues.row.code_session, cellValues.row.class_internal_url);
+ GetListeInscrit(cellValues.row.code_session, cellValues.row.class_internal_url);
+ }
+
+ const [selected_code_session, setselected_code_session] = useState();
+ const [selected_internal_url, setselected_internal_url] = useState();
+
+
+ const [liste_participants_file_change_api, setliste_participants_file_change_api] = useState();
+ const [liste_participants_file_change_result, setliste_participants_file_change_result] = useState();
+ const [liste_participants_file_change_message, setliste_participants_file_change_message] = useState();
+ const liste_participants_file_change = event => {
+ const fileUploaded = event.target.files[0];
+ let file_size = event.target.files[0].size;
+ let file_type = event.target.files[0].type;
+
+ //console.log("file_size = ",file_size," file_type = ",file_type);
+ if (file_size > 1000000) {
+ alert("Le fichier ne doit pas depasser un 1 Méga octets");
+ return;
+ }
+
+ setparticipant_file_name(event.target.files[0].name);
+
+ const formData = new FormData();
+ formData.append('File', fileUploaded);
+ //formData.append('token', 'K3cw63eKokKSbV4spjQ48SUNnfy80yrXfA');
+ const stored_cookie = getCookie('tokenmysypart');
+
+ formData.append("token", stored_cookie);
+ formData.append("session_id", selected_code_session);
+ formData.append("class_internal_url", selected_internal_url);
+ //console.log("token = " + stored_cookie);
+
+ fetch(
+ process.env.REACT_APP_API_URL + "myclass/api/AddStagiairetoClass_mass/",
+ {
+ method: 'POST',
+ body: formData,
+ }
+ )
+ .then((response) => response.json())
+ .then((result) => {
+ if (String(result['status']) === String("true")) {
+ //console.log('Success:', result['message']);
+ setliste_participants_file_change_result(result['message']);
+ setliste_participants_file_change_api("true");
+ GetListePreinscrit(selected_code_session);
+ GetListeInscrit(selected_code_session);
+
+ alert(" Les stagiaires ont été correctement importés");
+ submenu_inscrit();
+ } else if (String(result['status']) === String("Err_Connexion")) {
+ alert('Erreur: ' + result['message']);
+ history.push("/Connexion");
+ }
+
+ else {
+ setliste_participants_file_change_message(result['message']);
+ setliste_participants_file_change_api("false");
+ }
+
+ })
+ .catch((error) => {
+ console.error('Error:', error);
+ setliste_participants_file_change_api("false");
+ });
+
+ };
+
+ const [session_file_name, setsession_file_name] = useState();
+ function submenu_import_session() {
+ setsession_file_name();
+ setliste_sessions_file_change_api();
+ hiddenFileInput_session.current.click();
+ }
+
+ const hiddenFileInput_session = React.useRef(null);
+
+ const [addOneSession, setaddOneSession] = useState();
+ function submenu_add_one_session() {
+ setaddOneSession("1");
+ }
+
+ const [addOneParticipant, setaddOneParticipant] = useState();
+ function submenu_add_one_participant() {
+ setaddOneParticipant("1");
+
+ var myelement;
+
+ if (document.getElementById('ajout_participant')) {
+ myelement = document.getElementById('ajout_participant');
+ }
+
+ if (myelement) {
+ myelement.scrollIntoView({ behavior: 'smooth' });
+ }
+
+ }
+
+ function submenu_add_one_participant_inactif() {
+ alert(" Vous devez choisir une session.");
+ }
+
+
+ const [participant_file_name, setparticipant_file_name] = useState();
+ function submenu_import_participant() {
+ setparticipant_file_name();
+ setliste_participants_file_change_api();
+ hiddenFileInput.current.click();
+ }
+
+ const hiddenFileInput = React.useRef(null);
+
+ /* Recuperation de la liste des inscrits */
+ const [selectionModel_insc, setSelectionModel_insc] = React.useState([]);
+ const [rowss_insc, setRows_insc] = useState([]);
+ const [rowss_preinsc, setRows_preinsc] = 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([])
+ function GetListeInscrit(localsessionid, class_internal_url) {
+ clean_old_messages();
+ var form = new FormData();
+ //form.append("token","K3cw63eKokKSbV4spjQ48SUNnfy80yrXfA");
+ const stored_cookie = getCookie('tokenmysypart');
+ form.append("token", stored_cookie);
+ form.append("class_internal_url", class_internal_url);
+ form.append("session_id", localsessionid);
+ form.append("status", "1");
+
+ /*
+
+/!\ : Cette fonction a besoin d'un token actif
+*/
+
+ if (String(stored_cookie) === String("")) {
+ alert(" La session n'est plus valide ");
+ history.push("/Connexion");
+ return;
+ }
+
+ var myurl = process.env.REACT_APP_API_URL + "myclass/api/GetAllClassStagiaire/";
+
+ fetch(myurl,
+ {
+ method: 'POST',
+ body: form,
+ })
+ .then((data) => data.json())
+ .then((data) => {
+ //console.log(' GetListeInscrit : Success:', data['message'], "data['status'] = ", data['status']);
+ setGetListePreinscrit_insc_result(data['message']);
+ setRows_insc(data['message']);
+ if (String(data['status']) === String("true")) {
+ //console.log("erreur rrrr:" + data['status'])
+ setGetListePreinscrit_insc_api("true");
+
+ } else if (String(data['status']) === String("Err_Connexion")) {
+ alert('Erreur: ' + data['message']);
+ history.push("/Connexion");
+ }
+ else {
+ setGetListePreinscrit_insc_api("false");
+
+ }
+
+ }).catch((error) => {
+ console.error('Error:', error);
+ setGetListePreinscrit_insc_api("false");
+ });
+
+ }
+
+ const [liste_sessions_file_change_api, setliste_sessions_file_change_api] = useState();
+ const [liste_sessions_file_change_result, setliste_sessions_file_change_result] = useState();
+ const [liste_sessions_file_change_message, setliste_sessions_file_change_message] = useState();
+ const liste_sessions_file_change = event => {
+ clean_old_messages();
+
+ const fileUploaded = event.target.files[0];
+ let file_size = event.target.files[0].size;
+ let file_type = event.target.files[0].type;
+
+ //console.log("file_size = ",file_size," file_type = ",file_type);
+ if (file_size > 1000000) {
+ alert("Le fichier ne doit pas depasser un 1 Méga octets");
+ return;
+ }
+
+ setsession_file_name(event.target.files[0].name);
+
+ const formData = new FormData();
+ formData.append('File', fileUploaded);
+ //formData.append('token', 'K3cw63eKokKSbV4spjQ48SUNnfy80yrXfA');
+ const stored_cookie = getCookie('tokenmysypart');
+
+ formData.append("token", stored_cookie);
+ formData.append("class_internal_url", selected_internal_url);
+ //console.log("token = " + stored_cookie);
+
+ fetch(
+ process.env.REACT_APP_API_URL + "myclass/api/Add_Update_SessionFormation_mass/",
+ {
+ method: 'POST',
+ body: formData,
+ }
+ )
+ .then((response) => response.json())
+ .then((result) => {
+
+ //console.log(" ## result['status'] = ", result['status'])
+ if (String(result['status']) === String("Err_Connexion")) {
+ alert('Erreur: ' + result['message']);
+ history.push("/Connexion");
+ }
+
+ else if (String(result['status']) === String("true")) {
+ //console.log('Success:', result['message']);
+ setliste_sessions_file_change_result(result['message']);
+ setliste_sessions_file_change_api("true");
+ GetCurrentClass_trainingsession();
+ //clearSessionFields();
+ alert(" Les sessions ont été correctement importées");
+
+ }
+
+ else {
+ setliste_sessions_file_change_message(result['message']);
+ setliste_sessions_file_change_api("false");
+ alert('Erreur: ' + result['message']);
+
+ }
+
+
+ })
+ .catch((error) => {
+ console.error('Error:', error);
+ setliste_sessions_file_change_api("false");
+ });
+
+ }
+
+ const [GetCurrentClass_trainingsession_api, setGetCurrentClass_trainingsession_api] = useState();
+ const [GetCurrentClass_trainingsession_message, setGetCurrentClass_trainingsession_message] = useState();
+ const [GetCurrentClass_trainingsession_result, setGetCurrentClass_trainingsession_result] = useState();
+ function GetCurrentClass_trainingsession(event) {
+
+ var form = new FormData();
+
+ form.append("class_internal_url", selected_internal_url);
+
+ var myurl = process.env.REACT_APP_API_URL + "myclass/api/GetAllValideSessionFormation_List/";
+
+ axios.post(myurl, form).then(res => {
+
+ if (String(res.data.status) === String("true")) {
+ //console.log(" In GetCurrentClass_trainingsession res.data.status = " + res.data.status);
+ //console.log(" In GetCurrentClass_trainingsession res.data.message r_class = " + res.data.message);
+ setGetCurrentClass_trainingsession_api("true");
+ setGetCurrentClass_trainingsession_result(res.data.message);
+ }
+ else {
+ setGetCurrentClass_trainingsession_api("false");
+ setGetCurrentClass_trainingsession_message(res.data.message);
+ }
+
+ }).catch((error) => {
+ console.warn('Not good man :( GetCurrentClass_trainingsession = ', error);
+ setGetCurrentClass_trainingsession_api("false");
+ //setmyApimyApiMessage("")
+ })
+ }
+
+ // Cette fonction nettoye les messages avant nouvelle action
+ function clean_old_messages() {
+ /*setResend_LMS_Credentials_api();
+ setResend_LMS_Credentials_message();
+ setliste_sessions_file_change_api();
+ setCreateSessionFormation_api();
+ setUpdateStagiaireData_api();
+ setSendInscriptionCancell_api();
+ setCreateListEmargement_api();
+ setActionMassListEmargement_api();
+ setliste_participants_file_change_api();
+ setSendEvaluationEmail_api();*/
+
+ }
+
+ const [GetListePreinscrit_api, setGetListePreinscrit_api] = useState();
+ const [GetListePreinscrit_meassage, setGetListePreinscrit_meassage] = useState();
+ const [GetListePreinscrit_result, setGetListePreinscrit_result] = useState([])
+ function GetListePreinscrit(localsessionid, class_internal_url) {
+
+ var form = new FormData();
+ //form.append("token","K3cw63eKokKSbV4spjQ48SUNnfy80yrXfA");
+ const stored_cookie = getCookie('tokenmysypart');
+ form.append("token", stored_cookie);
+ form.append("class_internal_url", class_internal_url);
+ form.append("session_id", localsessionid);
+ form.append("status", "0");
+
+ console.log(" ### localsessionid = ", localsessionid, " -- class_internal_url = ", class_internal_url);
+ /*
+
+ /!\ : Cette fonction a besoin d'un token actif
+ */
+
+ if (String(stored_cookie) === String("")) {
+ alert(" La session n'est plus valide");
+ history.push("/Connexion");
+ return;
+ }
+
+
+
+ var myurl = process.env.REACT_APP_API_URL + "myclass/api/GetAllClassStagiaire/";
+
+ fetch(myurl,
+ {
+ method: 'POST',
+ body: form,
+ })
+ .then((data) => data.json())
+ .then((data) => {
+ //console.log('Success:', data['message'], "data['status'] = ", data['status']);
+ setGetListePreinscrit_result(data['message']);
+ setRows_preinsc(data['message']);
+ if (String(data['status']) === String("Err_Connexion")) {
+ alert('Erreur: ' + data['message']);
+ history.push("/Connexion");
+ }
+ else if (String(data['status']) === String("true")) {
+ setGetListePreinscrit_api("true");
+
+ }
+ else {
+ //console.log("erreur rrrr:" + data['status'])
+ setGetListePreinscrit_api("false");
+
+ }
+
+ }).catch((error) => {
+ console.error('Error:', error);
+ setGetListePreinscrit_api("false");
+ });
+
+ }
+
+ const [One_Create_Participant_api, setOne_Create_Participant_api] = useState();
+ const [One_Create_Participant_message, setOne_Create_Participant_message] = useState();
+ const [One_Create_Participant_result, setOne_Create_Participant_result] = useState();
+ function One_Create_Participant() {
+ clean_old_messages();
+ var form = new FormData();
+ var nb_participant = "0";
+ var prix_session;
+
+
+ var one_nom_part = ""
+ if (document.getElementById("one_nom_part") && document.getElementById("one_nom_part").value != "") {
+ one_nom_part = document.getElementById("one_nom_part").value;
+ }
+ if (one_nom_part.trim() == "") {
+ alert(" Vous devez saisir le nom du participant");
+ return;
+ }
+
+ var one_prenom_part = ""
+ if (document.getElementById("one_prenom_part") && document.getElementById("one_prenom_part").value != "") {
+ one_prenom_part = document.getElementById("one_prenom_part").value;
+ }
+ if (one_prenom_part.trim() == "") {
+ alert(" Vous devez saisir le prenom du participant");
+ return;
+ }
+
+ var one_email_part = ""
+ if (document.getElementById("one_email_part") && document.getElementById("one_email_part").value != "") {
+ one_email_part = document.getElementById("one_email_part").value;
+ }
+ if (one_email_part.trim() == "") {
+ alert(" Vous devez saisir l'email du participant");
+ return;
+ }
+
+
+ var validRegex = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/;
+ if (!one_email_part.match(validRegex)) {
+ alert("L'adresse email est invalide.");
+ return;
+ }
+
+
+ var one_phone_part = ""
+ if (document.getElementById("one_phone_part") && document.getElementById("one_phone_part").value != "") {
+ one_phone_part = document.getElementById("one_phone_part").value;
+ }
+ if (one_phone_part.trim() == "") {
+ alert(" Vous devez saisir le téléphone du participant");
+ return;
+ }
+
+
+ var code_session = "";
+ if (document.getElementById("code_session") && document.getElementById("code_session").value != "")
+ code_session = document.getElementById("code_session").value;
+
+ if (code_session.trim() == "") {
+ alert(" La session est invalide");
+ return;
+ }
+
+
+ //form.append("token","K3cw63eKokKSbV4spjQ48SUNnfy80yrXfA");
+ const stored_cookie = getCookie('tokenmysypart');
+ form.append("token", stored_cookie);
+ form.append("class_internal_url", selected_internal_url);
+ form.append("session_id", code_session);
+ form.append("nom", one_nom_part);
+ form.append("prenom", one_prenom_part);
+ form.append("email", one_email_part);
+ form.append("telephone", one_phone_part);
+ form.append("status", myinscript_status);
+ form.append("modefinancement", "");
+
+
+ var myurl = process.env.REACT_APP_API_URL + "myclass/api/AddStagiairetoClass/";
+
+
+
+ axios.post(myurl, form).then(res => {
+ //console.log(" In One_Create_Participant res.data.status = " + res.data.status);
+ //console.log(" In One_Create_Participant res.data.message r_class = " + res.data.message);
+
+ if (String(res.data.status) === String("true")) {
+ setOne_Create_Participant_api("true");
+ setOne_Create_Participant_result(res.data.message);
+ alert(" Le participant a été correctement ajouté");
+ setaddOneParticipant("0");
+ //setreduction_session("1");
+ GetListePreinscrit(selected_code_session, selected_internal_url);
+ GetListeInscrit(selected_code_session, selected_internal_url);
+
+ submenu_inscrit();
+
+ } else if (String(res.data.status) === String("Err_Connexion")) {
+ alert('Erreur: ' + res.data.message);
+ history.push("/Connexion");
+ }
+ else {
+ setOne_Create_Participant_api("false");
+ setOne_Create_Participant_message(res.data.message);
+ }
+
+ }).catch((error) => {
+
+ console.warn('One_Create_Participant : Not good man :( = ' + error);
+ setOne_Create_Participant_api("false");
+
+ })
+ }
+
+
+ const status_inscription = [
+ {
+ value: '1',
+ label: 'Inscription',
+ },
+ {
+ value: '0',
+ label: 'PréInscription',
+ },
+
+ ];
+
+ const [myinscript_status, setmyinscript_status] = useState("");
+
+
+
+ const handleChangeInscription_Status = (event) => {
+ const name = event.target.name;
+ const value = event.target.value;
+ setmyinscript_status(value);
+ }
+
+ function One_annuleAdd_Participant() {
+ setaddOneParticipant("0");
+ var myelement;
+
+ if (document.getElementById('participant_menu_tab')) {
+ myelement = document.getElementById('participant_menu_tab');
+ }
+
+ if (myelement) {
+ myelement.scrollIntoView({ behavior: 'smooth' });
+ }
+ }
+
+
+ const [actionmass_insc_val, setactionmass_insc_val] = useState();
+ const actionmass_inscrit = (event) => {
+ const value = event.target.value;
+
+
+ if (String(value) === "confirmation" || String(value) === "impression" || String(value) === "annule inscription") {
+ setactionmass_insc_val(value);
+ }
+ else {
+ setactionmass_insc_val();
+ }
+ }
+
+
+ function GetSelectedRows_Insc_Ids() {
+
+
+ var tab_tmp = []
+ for (var i = 0; i < selectionModel_insc.length; i++) {
+ //console.log(" ### selectionModel_insc[i] = ", selectionModel_insc[i]);
+ var myid = parseInt(String(selectionModel_insc[i]));
+ //var line = JSON.parse(rowss[myid]);
+ tab_tmp.push(myid);
+ }
+ return tab_tmp;
+
+ }
+
+ const [SendInscriptionConfirmation_api, setSendInscriptionConfirmation_api] = useState();
+ const [SendInscriptionConfirmation_message, setSendInscriptionConfirmation_message] = useState();
+ const [SendInscriptionConfirmation_result, setSendInscriptionConfirmation_result] = useState();
+ function SendInscriptionConfirmation(email) {
+ clean_old_messages();
+ var form = new FormData();
+ //form.append("token","K3cw63eKokKSbV4spjQ48SUNnfy80yrXfA");
+
+ if (selected_code_session.length <= 0) {
+ alert(" Vous devez choisir une session");
+ return;
+ }
+ const stored_cookie = getCookie('tokenmysypart');
+ form.append("token", stored_cookie);
+ form.append("class_internal_url", selected_internal_url);
+ form.append("session_id", selected_code_session);
+ form.append("email", email);
+
+
+ var myurl = process.env.REACT_APP_API_URL + "myclass/api/SendInscriptionConfirmation/";
+
+ axios.post(myurl, form).then(res => {
+
+ if (String(res.data.status) === String("true")) {
+ //console.log(" In UpdateStagiaireData res.data.status = " + res.data.status);
+ //console.log(" In UpdateStagiaireData res.data.message r_class = " + res.data.message);
+ setSendInscriptionConfirmation_api("true");
+ setSendInscriptionConfirmation_result(res.data.message);
+
+ } else if (String(res.data.status) === String("Err_Connexion")) {
+ alert('Erreur: ' + res.data.message);
+ history.push("/Connexion");
+ }
+ else {
+ setSendInscriptionConfirmation_api("false");
+ setSendInscriptionConfirmation_message(res.data.message);
+
+ }
+
+ }).catch((error) => {
+
+ console.warn('SendInscriptionConfirmation : Not good man :( mysearchtext = ' + error);
+ setSendInscriptionConfirmation_api("false");
+
+ })
+ }
+
+
+ async function actionmass_insc_Traitemet() {
+
+ var liste_formation = GetSelectedRows_Insc_Ids();
+ for (var i = 0; i < liste_formation.length; i++) {
+
+
+ var line = JSON.parse(rowss_insc[liste_formation[i]]);
+ //console.log(" line = ", line);
+ var email = line.email;
+ //console.log(" Traitement de email = ", email);
+ if (String(actionmass_insc_val) === "confirmation") {
+
+ SendInscriptionConfirmation(email);
+ } else if (String(actionmass_insc_val) === "impression") {
+
+ //console.log(" impress mail = ", email);
+ DownloadAttendeeDetail_one(email);
+
+ } else if (String(actionmass_insc_val) === "annule inscription") {
+
+ //console.log(" impress mail = ", email);
+ SendInscriptionCancell(email);
+
+ }
+
+ await sleep(100);
+
+ }
+
+ setSelectionModel_insc([]);
+ setactionmass_insc_val();
+ GetListePreinscrit(selected_code_session, selected_internal_url);
+ GetListeInscrit(selected_code_session, selected_internal_url);
+
+ }
+
+ const sleep = (milliseconds) => {
+ return new Promise(resolve => setTimeout(resolve, milliseconds))
+ }
+
+
+ function DownloadAttendeeDetail_one(addendeeEmail) {
+
+
+ var trainer = ""
+ if (document.getElementsByName("formateur")[0])
+ trainer = document.getElementsByName("formateur")[0].value;
+
+ if (trainer == "") {
+ alert(" Aucun formateur pour cette session ");
+ return;
+ }
+
+ if (addendeeEmail == "") {
+ alert(" Aucun utilisateur choisi ");
+ return;
+ }
+
+ const stored_cookie = getCookie('tokenmysypart');
+
+ var nom_fiche_detaillee = "Fiche_Detaillee.pdf";
+
+ var url = process.env.REACT_APP_API_URL + "myclass/api/PrintAttendeeDetail_perSession/" + stored_cookie + "/" + selected_code_session + "/" + addendeeEmail + "/" + selected_internal_url;
+
+
+ axios.get(url, { responseType: 'blob', },)
+ .then((res) => {
+ fileDownload(res.data, nom_fiche_detaillee)
+ }).catch((error) => {
+ console.error('Error:', error);
+
+ });
+ }
+
+ const [retval_ch, setretval_ch] = useState();
+
+ const [UpdateStagiaireData_api, setUpdateStagiaireData_api] = useState();
+ const [UpdateStagiaireData_message, setUpdateStagiaireData_message] = useState();
+ const [UpdateStagiaireData_result, setUpdateStagiaireData_result] = useState();
+ function UpdateStagiaireData(nom, prenom, email, status, price, opco, modefinancement, employeur, comment) {
+
+ setSendInscriptionCancell_api();
+ var form = new FormData();
+ //form.append("token","K3cw63eKokKSbV4spjQ48SUNnfy80yrXfA");
+
+ if (selected_code_session.length <= 0) {
+ alert(" Vous devez choisir une session");
+ return;
+ }
+ const stored_cookie = getCookie('tokenmysypart');
+ form.append("token", stored_cookie);
+ form.append("class_internal_url", selected_internal_url);
+ form.append("session_id", selected_code_session);
+ form.append("nom", nom);
+ form.append("prenom", prenom);
+ form.append("email", email);
+ form.append("employeur", employeur);
+ form.append("status", status);
+ form.append("price", price);
+ form.append("opco", opco);
+ form.append("modefinancement", modefinancement);
+ form.append("comment", comment);
+
+ var myurl = process.env.REACT_APP_API_URL + "myclass/api/UpdateStagiairetoClass/";
+
+ axios.post(myurl, form).then(res => {
+ console.log(" In UpdateStagiaireData res.data.status = " + res.data.status);
+ console.log(" In UpdateStagiaireData res.data.message r_class = " + res.data.message);
+
+ if (String(res.data.status) === String("true")) {
+ setUpdateStagiaireData_api("true");
+ setUpdateStagiaireData_result(res.data.message);
+ GetListePreinscrit(selected_code_session, selected_internal_url);
+ GetListeInscrit(selected_code_session, selected_internal_url);
+
+ setretval_ch("1");
+ alert(" La mise à jour été correctement faite.")
+ }
+ else {
+ setUpdateStagiaireData_api("false");
+ setUpdateStagiaireData_message(res.data.message);
+ setretval_ch("-1");
+
+ }
+
+ }).catch((error) => {
+
+ console.warn('UpdateStagiaireData : Not good man :( mysearchtext = ' + error);
+ setUpdateStagiaireData_api("false");
+ setretval_ch("-1");
+
+ })
+ }
+
+
+
+ const [SendInscriptionCancell_api, setSendInscriptionCancell_api] = useState();
+ const [SendInscriptionCancell_message, setSendInscriptionCancell_message] = useState();
+ const [SendInscriptionCancell_result, setSendInscriptionCancell_result] = useState();
+ function SendInscriptionCancell(email) {
+
+ clean_old_messages();
+ setUpdateStagiaireData_api();
+ var form = new FormData();
+ //form.append("token","K3cw63eKokKSbV4spjQ48SUNnfy80yrXfA");
+
+ if (selected_code_session.length <= 0) {
+ alert(" Vous devez choisir une session");
+ return;
+ }
+ const stored_cookie = getCookie('tokenmysypart');
+ form.append("token", stored_cookie);
+ form.append("class_internal_url", selected_internal_url);
+ form.append("session_id", selected_code_session);
+ form.append("email", email);
+
+
+ var myurl = process.env.REACT_APP_API_URL + "myclass/api/CancelAttendeeInscription/";
+
+ axios.post(myurl, form).then(res => {
+
+ if (String(res.data.status) === String("true")) {
+ //console.log(" In UpdateStagiaireData res.data.status = " + res.data.status);
+ //console.log(" In UpdateStagiaireData res.data.message r_class = " + res.data.message);
+ setSendInscriptionCancell_api("true");
+ setSendInscriptionCancell_result(res.data.message);
+
+ GetListePreinscrit(selected_code_session, selected_internal_url);
+ GetListeInscrit(selected_code_session, selected_internal_url);
+
+ submenu_inscrit();
+
+ } else if (String(res.data.status) === String("Err_Connexion")) {
+ alert('Erreur: ' + res.data.message);
+ history.push("/Connexion");
+ }
+ else {
+ setSendInscriptionCancell_api("false");
+ setSendInscriptionCancell_message(res.data.message);
+
+ }
+
+ }).catch((error) => {
+
+ console.warn('SendInscriptionCancell : Not good man :( mysearchtext = ' + error);
+ setSendInscriptionCancell_api("false");
+
+ })
+ }
+
+
+
+ const [selectedattendeeemail, setselectedattendeeemail] = useState([])
+
+ function DownloadAttendeeAttestation(event) {
+
+ const stored_cookie = getCookie('tokenmysypart');
+
+ var nom_fiche_detaillee = "Attestation.pdf";
+
+ var url = process.env.REACT_APP_API_URL + "myclass/api/PrintAttendeeCertification/" + stored_cookie + "/" + selected_code_session + "/" + selectedattendeeemail + "/" + selected_internal_url;
+
+
+
+ axios.get(url, { responseType: 'blob', },)
+ .then((res) => {
+ fileDownload(res.data, nom_fiche_detaillee)
+ })
+ }
+
+
return (
Les sessions de formation
+
+
+
+
+
+
+
+
+
+
+
+ {session_file_name &&
{session_file_name} }
+ {String(liste_sessions_file_change_api) === String("true") &&
Les Sessions ont été correctement importés }
+ {String(liste_sessions_file_change_api) === String("false") &&
{liste_sessions_file_change_message} }
+
+
+
+
Télécharger un fichier modèle
+
+
+
+
+
+
+
+
+
traitement de la session selected_code_session = {selected_code_session} et selected_internal_url = {selected_internal_url}
+
+
+
+ {selected_code_session && selected_internal_url &&
+
+
+
+
+
+
Télécharger un fichier modèle
+
+
+
{participant_file_name}
+ {String(liste_participants_file_change_api) === String("true") &&
Les participants ont été correctement importés }
+ {String(liste_participants_file_change_api) === String("false") &&
{liste_participants_file_change_message} }
+
+
+
+
+
}
+
+ {!selected_code_session && !selected_internal_url &&
+
+
+
+
+
+
Télécharger un fichier modèle
+
+
+
{participant_file_name}
+ {String(liste_participants_file_change_api) === String("true") &&
Les participants ont été correctement importés }
+ {String(liste_participants_file_change_api) === String("false") &&
{liste_participants_file_change_message} }
+
+
+
+
+
}
+
+
+ {String(addOneParticipant) === "1" &&
+
Ajout d'un nouveau participant
+
+
Nom *
+
+
+
+
+
Prenom *
+
+
+
+
Email *
+
+
+
+
téléphone *
+
+
+
+
Status Inscription *
+
+ {status_inscription.map((option) => (
+
+ {option.label}
+
+ ))}
+
+
+
+
+
+
+
+
+ {
+
+
+ Enregistrer le participant
+
+
+
+
+ Annuler
+
+
+
+
+
}
+
+
+
+
+
+ }
+
+
+
+
+
+
+
+
+
+
+ Afficher les preinscrit et les inscrits
+
+
+
+ {String(submenu) === String("preinscrit") &&
+
+
+
{
+ setSelectionModel(newSelectionModel);
+ //console.log("ch selected--" + newSelectionModel);
+ }}
+ selectionModel={selectionModel}
+
+ localeText={frFR.components.MuiDataGrid.defaultProps.localeText}
+ rows={rowss_preinsc.map((item, index) => (
+ {
+ id: index,
+ nom: JSON.parse(item).nom,
+ prenom: JSON.parse(item).prenom,
+ employeur: JSON.parse(item).employeur,
+ email: JSON.parse(item).email,
+ amount: JSON.parse(item).price,
+ opco: JSON.parse(item).opco,
+ modefinancement: JSON.parse(item).modefinancement,
+
+
+ }
+ ))}
+
+ columns={columns_preinscrit}
+ pageSize={10}
+ className="datagridclass"
+
+ rowsPerPageOptions={[10]}
+ disableSelectionOnClick
+ components={{
+ Toolbar: GridToolbar,
+ }}
+
+
+ />
+
+
+
+ {selectionModel && selectionModel.length >= 1 &&
+
+
+
Traitement en masse
+
+ Choisir une action
+ Valider
+ Refuser
+
+
+ {actionmass_preinsc_val &&
+
+ Traiter
+
+ }
+ modal
+ nested
+ position="center center"
+ >
+
+ {close => (
+
+
+ ×
+
+
MySy Information
+
+ {' '}
+
+ Confirmer l'action {actionmass_preinsc_val} en masse.
+
+
+
+ {
+ actionmass_preinsc_Traitemet();
+ close();
+ }}> Valider
+
+
+
+ {
+ //console.log('modal closed ');
+ close();
+ }}
+ >
+ Annuler
+
+
+
+
+ )}
+
+ }
+
+
+
+
+
}
+
+
+
+ {/* Contained */}
+
+
+
}
+
+ {String(submenu) === String("inscrit") &&
+
+
+
{
+ setSelectionModel_insc(newSelectionModel_insc);
+ //console.log("ch selected--" + newSelectionModel_insc);
+ }}
+ selectionModel={selectionModel_insc}
+
+ localeText={frFR.components.MuiDataGrid.defaultProps.localeText}
+ rows={rowss_insc.map((item, index) => (
+ {
+ id: index,
+ nom: JSON.parse(item).nom,
+ prenom: JSON.parse(item).prenom,
+ employeur: JSON.parse(item).employeur,
+ email: JSON.parse(item).email,
+ amount: JSON.parse(item).price,
+ opco: JSON.parse(item).opco,
+ modefinancement: JSON.parse(item).modefinancement,
+
+
+ }
+ ))}
+
+ columns={columns_inscrit}
+ pageSize={10}
+ className="datagridclass"
+
+ rowsPerPageOptions={[10]}
+ disableSelectionOnClick
+ components={{
+ Toolbar: GridToolbar,
+ }}
+
+
+ />
+
+ {selectionModel_insc && selectionModel_insc.length >= 1 &&
+
+
Traitement en masse / Inscrit
+
+ Choisir une action
+ Renvoyer une confirmation
+ Imprimer fiches
+ Annuler inscription
+
+
+
+ {actionmass_insc_val &&
+
+ Traiter
+
+ }
+ modal
+ nested
+ position="center center"
+ >
+
+ {close => (
+
+
+ ×
+
+
MySy Information
+
+ {' '}
+
+ Confirmer l'action {actionmass_insc_val} en masse.
+
+
+
+ {
+ actionmass_insc_Traitemet();
+ close();
+ }}> Valider
+
+
+
+ {
+ //console.log('modal closed ');
+ close();
+ }}
+ >
+ Annuler
+
+
+
+
+ )}
+
+ }
+
+
+
+
+
+ }
+
+
+ {/* Contained */}
+
+
}
+
+
+
+
+
+
diff --git a/src/components/GestionAdministrative.js b/src/components/GestionAdministrative.js
index c0c23f9..9a24326 100644
--- a/src/components/GestionAdministrative.js
+++ b/src/components/GestionAdministrative.js
@@ -5259,7 +5259,7 @@ function GestionAdministrative(props) {
{
- Enregistrer la session
+ Enregistrer le participant
diff --git a/src/components/TestUrl.js b/src/components/TestUrl.js
index fe59585..702e85f 100644
--- a/src/components/TestUrl.js
+++ b/src/components/TestUrl.js
@@ -832,6 +832,7 @@ Cette fonction recuperer les stats des TOP 5 formations sur la periode saisie pa
modal
nested
position="center center"
+
>
{close => (
diff --git a/src/styles/components/_displaypartnersession.scss b/src/styles/components/_displaypartnersession.scss
index e772ca4..20f50e2 100644
--- a/src/styles/components/_displaypartnersession.scss
+++ b/src/styles/components/_displaypartnersession.scss
@@ -1,4 +1,1320 @@
.displaypartnersession {
+ .Mui-disabled {
+ font-size: small !important;
+ padding: 0px !important;
+ }
+
+
+
+ .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;
+ }
+
+ @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_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%;
+ }
+
+ .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: 97% !important;
+ //border: none !important;
+ margin: 5px !important;
+ height: 3.5rem !important;
+ background: white;
+ }
+
+ .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;
+ }
+
+ .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;
+ }
+
+ .bton_envoyer {
+ border-radius: 5px;
+ font-size: small;
+ padding: 0.3rem;
+ width: 100%;
+ background: #81BC3A;
+
+ }
+
+
+ .bton_fermer {
+ border-radius: 5px;
+ font-size: small;
+ padding: 0.3rem;
+ width: 100%;
+ background-color: white;
+ color: #104277 !important;
+ }
+
+ .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%;
+ }
+
+ .bton_import_excel {
+ background: #c8cfd5;
+ color: black;
+ width: 100% !important;
+ }
+
+ .div_row_gauche_etendu {
+ width: 100%;
+ }
+
+ .icon_excel {
+ width: 6%;
+ }
+
+
+ .bton_envoyer {
+ border-radius: 5px;
+ font-size: small;
+ padding: 0.3rem;
+ width: 100%;
+ background: #81BC3A;
+ margin-top: 1rem;
+
+ }
+
+ }
+
+ @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;
+ }
+
+ .div_row {
+ 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: 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;
+ }
+
+ .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;
+ }
+
+ .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;
+ }
+
+ .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;
+ }
+
+ .bton_envoyer {
+ border-radius: 5px;
+ font-size: small;
+ padding: 0.3rem;
+ width: 80%;
+ background: #81BC3A;
+ }
+
+
+ .bton_fermer {
+ border-radius: 5px;
+ font-size: small;
+ padding: 0.3rem;
+ width: 80%;
+ background-color: white;
+ color: #104277 !important;
+ }
+
+ .css-1x5jdmq {
+ padding: 6px !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(2);
+ margin-left: 5rem;
+ }
+
+ .hr_break {
+ border: 3px solid grey;
+ }
+
+ .icon_plus {
+ width: 6%;
+ }
+
+ .bton_add_session {
+ background: #c8cfd5;
+ color: black;
+ width: 30%;
+ }
+
+ .bton_import_excel {
+ background: #c8cfd5;
+ color: black;
+ width: 65% !important;
+ }
+
+ .div_row_gauche_etendu {
+ width: 80%;
+ }
+
+ .icon_excel {
+ width: 6%;
+ }
+ }
+
+ @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_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;
+ }
+
+ .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;
+ }
+
+ .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;
+ }
+
+ .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;
+ }
+
+ .bton_envoyer {
+ border-radius: 5px;
+ font-size: small;
+ padding: 0.3rem;
+ width: 60%;
+ background: #81BC3A;
+
+ }
+
+
+ .bton_fermer {
+ border-radius: 5px;
+ font-size: small;
+ padding: 0.3rem;
+ width: 60%;
+ background-color: white;
+ color: #104277 !important;
+ }
+
+ .css-1x5jdmq {
+ padding: 6px !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(2);
+ margin-left: 5rem;
+ }
+
+ .hr_break {
+ border: 3px solid grey;
+ }
+
+ .icon_plus {
+ width: 8%;
+ }
+
+ .bton_add_session {
+ background: #c8cfd5;
+ color: black;
+ width: 40%;
+ }
+
+ .bton_import_excel {
+ background: #c8cfd5;
+ color: black;
+ width: 50% !important;
+ }
+
+ .div_row_gauche_etendu {
+ width: 80%;
+ }
+
+ .icon_excel {
+ width: 6%;
+ }
+
+ }
+
+ @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_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;
+ }
+
+ .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;
+ }
+
+ .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;
+ }
+
+ .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.8);
+ margin-left: 10rem;
+ }
+
+
+ .action_mass {
+ border-radius: 5px;
+ font-size: small;
+ padding: 0.3rem;
+ width: 40%;
+ background: #81BC3A;
+ height: 2.5rem;
+ }
+
+
+
+ .block_en_mass {
+ width: 50%;
+ float: left;
+ margin-bottom: 1rem;
+ }
+
+ .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;
+ }
+
+ .bton_import_excel {
+ background: #c8cfd5;
+ color: black;
+ width: 40% !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;
+ margin-left: 5%;
+ height: 2.5rem;
+ color: white;
+
+ }
+
+ .bton_fermer {
+ border-radius: 5px;
+ font-size: small;
+ padding: 0.3rem;
+ width: 60%;
+ background-color: white;
+ color: #104277 !important;
+ }
+
+
+ .enable_style {
+ background-color: #FFFFFF;
+ }
+
+ // end media
+
+ .css-1t8l2tu-MuiInputBase-input-MuiOutlinedInput-input:invalid {
+ padding-top: 5px !important;
+ padding-bottom: 5px !important;
+ }
+
+ .css-1t8l2tu-MuiInputBase-input-MuiOutlinedInput-input {
+ 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;
+ }
+
+ .css-1t10bd6-MuiFormControl-root-MuiTextField-root fieldset {
+ border-color: transparent !important;
+ border-radius: 20px !important;
+ }
+
+ .bton_emarge {
+ border-radius: 5rem;
+ font-size: small;
+ padding: 0.5rem;
+ background: rgb(129, 188, 58);
+ margin-left: 5px;
+ margin-right: 5px;
+ }
+
+ .css-1x5jdm {
+ padding: 5px;
+ }
+
+
+ .css-1x5jdmq {
+ padding: 6px !important;
+ height: 3rem ! important;
+ }
+
+ .css-qiwgdb {
+ padding: 6px !important;
+ }
+ }
+
+ 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;
+ }
+
+}
+
+
+.tox-statusbar {
+ display: none !important;
+}
+
+.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;
+}
+
+.css-1t8l2tu-MuiInputBase-input-MuiOutlinedInput-input {
+ 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;
+}
+
+
+.css-1x5jdmq {
+ height: 3rem !important;
+}
+
+.select_option_css {
+ border-radius: 0px !important;
+}
+
+.css-9ddj71-MuiInputBase-root-MuiOutlinedInput-root {
+ height: 3.5rem !important;
+}
+
+
+
+
+.react-datepicker__input-container {
+ width: 110%;
}
\ No newline at end of file
diff --git a/src/styles/index.scss b/src/styles/index.scss
index b26ae3f..6d604bc 100644
--- a/src/styles/index.scss
+++ b/src/styles/index.scss
@@ -74,10 +74,14 @@
-.css-14lo706{
+.css-14lo706 {
padding-right: 0.5rem !important;
}
-.css-1jy569b-MuiFormLabel-root-MuiInputLabel-root{
+.css-1jy569b-MuiFormLabel-root-MuiInputLabel-root {
margin-left: 0px !important;
- }
\ No newline at end of file
+}
+
+.css-1knaqv7-MuiButtonBase-root-MuiButton-root {
+ min-width: 10rem !important
+}
\ No newline at end of file