diff --git a/src/components/DisplayDetailArticle.js b/src/components/DisplayDetailArticle.js
index 393f342..aae47e1 100644
--- a/src/components/DisplayDetailArticle.js
+++ b/src/components/DisplayDetailArticle.js
@@ -95,7 +95,7 @@ const DisplayDetailArticle = (props) => {
//alert(" le total saisi = " + total + " la val cacule est " + calcaul_total);
if (parseInt(total) != parseInt(calcaul_total)) {
- alert(random1 + " + " + random2 + " NE FONT PAS " + total + ". Recommencez svp :) !!!");
+ alert(" Le total dans la zone 'je ne suis pas un robot' est incohérent. Recommencez svp :) !!!");
return;
}
diff --git a/src/components/Formation.js b/src/components/Formation.js
index 2f6132d..560b658 100644
--- a/src/components/Formation.js
+++ b/src/components/Formation.js
@@ -172,8 +172,8 @@ const Formation = (props) => {
axios.post(myurl, form).then(res => {
if (res.data.status != "false") {
- console.log(" In GetCurrentClass_trainingsession res.data.status = " + res.data.status);
- console.log(" In GetCurrentClass_trainingsession res.data.message r_class = " + res.data.message);
+ //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_api("true");
setGetCurrentClass_result(res.data.message);
}
diff --git a/src/components/GestionAdministrative.js b/src/components/GestionAdministrative.js
index 7f8aee4..26d591e 100644
--- a/src/components/GestionAdministrative.js
+++ b/src/components/GestionAdministrative.js
@@ -168,21 +168,62 @@ function GestionAdministrative(props) {
renderCell: (cellValues) => {
return (
- {
- handleClick_refuse(event, cellValues);
- }}
+ onClick={(event) => {
+ handleClick_refuse(event, cellValues);
+ }}
+ >
+
+
+ }
+ modal
+ nested
+ position="center center"
>
-
+ {close => (
+
+
+
MySy Info
+
+ {' '}
- }
- position="center" >
-
- lksqmkdsmkdsm
-
+ 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 :
+
+
+
+
+
+
+
+
+
+
+
+
+
+ )}
+
);
}
}
@@ -392,12 +433,25 @@ function GestionAdministrative(props) {
var modefinancement = cellValues.row.modefinancement;
var status = "0";
var employeur = cellValues.row.employeur;
+ var comment = "";
-
- UpdateStagiaireData(nom, prenom, email, status, montant, opco, modefinancement, employeur);
+ UpdateStagiaireData(nom, prenom, email, status, montant, opco, modefinancement, employeur, comment);
}
function handleClick_refuse(event, cellValues) {
+ // Recuperation du motif du refus :
+ var motif_refus = document.getElementById("motif_refus").value;
+
+ var montant = String(cellValues.row.amount);
+ var nom = cellValues.row.nom;
+ var email = cellValues.row.email;
+ var prenom = cellValues.row.prenom;
+ var opco = cellValues.row.opco;
+ var modefinancement = cellValues.row.modefinancement;
+ var status = "-1";
+ var employeur = cellValues.row.employeur;
+
+ UpdateStagiaireData(nom, prenom, email, status, montant, opco, modefinancement, employeur, motif_refus);
}
const [submenu, setsubmenu] = useState("preinscrit");
@@ -421,7 +475,7 @@ function GestionAdministrative(props) {
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) {
+ function UpdateStagiaireData(nom, prenom, email, status, price, opco, modefinancement, employeur, comment) {
var form = new FormData();
//form.append("token","K3cw63eKokKSbV4spjQ48SUNnfy80yrXfA");
@@ -442,6 +496,7 @@ function GestionAdministrative(props) {
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/";
@@ -863,20 +918,20 @@ function GestionAdministrative(props) {
}
nb_participant = ""
- if (document.getElementById("nb_participant") && document.getElementById("nb_participant").value != ""){
+ if (document.getElementById("nb_participant") && document.getElementById("nb_participant").value != "") {
nb_participant = document.getElementById("nb_participant").value;
}
- if( nb_participant.trim() == ""){
+ if (nb_participant.trim() == "") {
alert(" Le nombre de participants est obligatoire");
return;
}
- if( String(document.getElementById("sessiondatedebutinscription").value).trim() == "" ){
+ if (String(document.getElementById("sessiondatedebutinscription").value).trim() == "") {
alert(" La date de debut des inscriptions est obligatoire");
return;
}
- if( String(document.getElementById("sessiondatefininscription").value).trim() == "" ){
+ if (String(document.getElementById("sessiondatefininscription").value).trim() == "") {
alert(" La date de fin des inscriptions est obligatoire");
return;
}
@@ -1195,7 +1250,7 @@ function GestionAdministrative(props) {
const [ActionMassListEmargement_result, setActionMassListEmargement_result] = useState();
function ActionMassListEmargement(e) {
- if( selectionModel_emarg.length <= 0 ){
+ if (selectionModel_emarg.length <= 0) {
alert(" Selectionnez un enregistrement pour envoyer la demande d'emargement");
return;
}
@@ -1236,7 +1291,7 @@ function GestionAdministrative(props) {
})
-
+
if (String(actionenmasse) === String("depublier")) {
@@ -1254,16 +1309,16 @@ function GestionAdministrative(props) {
function ConfirmInitListEmargement() {
confirmAlert({
- message: "Confirmez la (re)initialisation de la liste d'emargement ? Toutes les confirmations seront perdues",
-
+ message: "Confirmez la (re)initialisation de la liste d'emargement ? Toutes les confirmations seront perdues",
+
buttons: [
{
label: 'Oui',
- onClick: () => {CreateListEmargement()}
+ onClick: () => { CreateListEmargement() }
},
{
label: 'Non',
- onClick: () => { return }
+ onClick: () => { return }
}
],
@@ -1280,16 +1335,16 @@ function GestionAdministrative(props) {
function ConfirmEnvoiListEmargement() {
confirmAlert({
- message: "Confirmez l'envoi des demandes d'emargement aux participants",
-
+ message: "Confirmez l'envoi des demandes d'emargement aux participants",
+
buttons: [
{
label: 'Oui',
- onClick: () => {ActionMassListEmargement()}
+ onClick: () => { ActionMassListEmargement() }
},
{
label: 'Non',
- onClick: () => { return }
+ onClick: () => { return }
}
],
@@ -1841,12 +1896,12 @@ function GestionAdministrative(props) {
{String(submenu) === String("emargement") &&
-
-
-
-
+
+
+
+
-
+
{String(CreateListEmargement_api) === "true" &&
La liste d'emargement a été créée
diff --git a/src/components/Inscription_Information.js b/src/components/Inscription_Information.js
index c8e1db9..3d97556 100644
--- a/src/components/Inscription_Information.js
+++ b/src/components/Inscription_Information.js
@@ -457,10 +457,12 @@ function Inscription_Information(props) {
String(action).toLocaleLowerCase() === "information" &&
- Votre demande d'information été prise en compte.
+ Votre demande d'information été prise en compte.
Merci.
diff --git a/src/components/SignIn.js b/src/components/SignIn.js
index e3e4706..13d2500 100644
--- a/src/components/SignIn.js
+++ b/src/components/SignIn.js
@@ -268,7 +268,7 @@ function SignIn() {
if (parseInt(total) != parseInt(calcaul_total)) {
document.getElementsByName("pasrobot")[0].style.backgroundColor = "red";
- alert(random1 + " + " + random2 + " NE FONT PAS " + total + ". Recommencez svp :) !!!");
+ alert(" Le total dans la zone 'je ne suis pas un robot' est incohérent. Recommencez svp :) !!!");
return;
}
diff --git a/src/components/SignUp.js b/src/components/SignUp.js
index 5c41f42..1bb5c58 100644
--- a/src/components/SignUp.js
+++ b/src/components/SignUp.js
@@ -167,7 +167,8 @@ function SignUp() {
if (parseInt(total) != parseInt(calcaul_total)) {
document.getElementsByName("pasrobot")[0].style.backgroundColor = "red";
- alert(random1 + " + " + random2 + " NE FONT PAS " + total + ". Recommencez svp :) !!!");
+ alert(" Le total dans la zone 'je ne suis pas un robot' est incohérent. Recommencez svp :) !!!");
+
return;
}
diff --git a/src/components/UserSignInFirst.js b/src/components/UserSignInFirst.js
index 2ba7ffa..08e20e0 100644
--- a/src/components/UserSignInFirst.js
+++ b/src/components/UserSignInFirst.js
@@ -243,7 +243,7 @@ function SignIn() {
if (parseInt(total) != parseInt(calcaul_total)) {
document.getElementsByName("pasrobot")[0].style.backgroundColor = "red";
- alert(random1 + " + " + random2 + " NE FONT PAS " + total + ". Recommencez svp :) !!!");
+ alert(" Le total dans la zone 'je ne suis pas un robot' est incohérent. Recommencez svp :) !!!");
return;
}