22/11/22 - 22h30
parent
38977408a8
commit
ff3167badc
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -168,7 +168,8 @@ function GestionAdministrative(props) {
|
|||
renderCell: (cellValues) => {
|
||||
return (
|
||||
|
||||
<Popup trigger={<Button
|
||||
<Popup
|
||||
trigger={<Button
|
||||
|
||||
onClick={(event) => {
|
||||
handleClick_refuse(event, cellValues);
|
||||
|
@ -177,12 +178,52 @@ function GestionAdministrative(props) {
|
|||
<FcCancel />
|
||||
|
||||
</Button>}
|
||||
position="center" >
|
||||
<div style={{ "width": "5rem", "height": "5rem" }}>
|
||||
lksqmkdsmkdsm
|
||||
modal
|
||||
nested
|
||||
position="center center"
|
||||
>
|
||||
{close => (
|
||||
<div>
|
||||
<button className="gest_close" onClick={close}>
|
||||
×
|
||||
</button>
|
||||
<div className="gest_header"> MySy Info </div>
|
||||
<div className="gest_content">
|
||||
{' '}
|
||||
|
||||
En confirmant cette opération, l'inscription du stagiaire sera <i><font color="red"> refusée</font></i>. <br />
|
||||
Il (le stagiaire) sera automatiquement <i><font color="red"> notifié par email du refus de son inscription. </font></i> <br />
|
||||
<br /> Motif du refus : <br />
|
||||
<textarea name='motif_refus' id="motif_refus" style={{ "width": "80%" }}
|
||||
rows="3" maxlength="180" />
|
||||
|
||||
</div>
|
||||
<div className="gest_actions">
|
||||
<div style={{ "width": "45%", "float": "left" }}>
|
||||
<button className="gest_bton_popup" onClick={(event) => {
|
||||
handleClick_refuse(event, cellValues);
|
||||
console.log('modal closed ');
|
||||
close();
|
||||
}}> Valider </button>
|
||||
|
||||
</div>
|
||||
<div style={{ "width": "45%", "float": "right" }}>
|
||||
<button
|
||||
className="gest_bton_popup"
|
||||
onClick={() => {
|
||||
console.log('modal closed ');
|
||||
close();
|
||||
}}
|
||||
>
|
||||
Annuler
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
</Popup>
|
||||
|
||||
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -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/";
|
||||
|
||||
|
|
|
@ -457,11 +457,13 @@ function Inscription_Information(props) {
|
|||
String(action).toLocaleLowerCase() === "information" &&
|
||||
<div className="okUpdateData">
|
||||
|
||||
Votre demande d'information été prise en compte.
|
||||
Votre demande d'information été prise en compte.<br/>
|
||||
Merci.
|
||||
</div>}
|
||||
|
||||
|
||||
|
||||
|
||||
{(String(RecordData_status) === "false" ||
|
||||
String(RecordData_status).length === 0) &&
|
||||
String(action).toLocaleLowerCase() === "inscription" &&
|
||||
|
@ -582,7 +584,7 @@ function Inscription_Information(props) {
|
|||
/>
|
||||
|
||||
<TextField
|
||||
required
|
||||
|
||||
name="employeur"
|
||||
id="employeur"
|
||||
label="Employeur"
|
||||
|
@ -633,7 +635,7 @@ function Inscription_Information(props) {
|
|||
))}
|
||||
</select>
|
||||
</div>
|
||||
<div className="okUpdateData"><i> *Laisser "Choisir" si vous ne le connaissez pas. </i>
|
||||
<div className="okUpdateData"><i> *Choisir "00-Inconnu" si vous ne le connaissez pas. </i>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -669,10 +671,11 @@ function Inscription_Information(props) {
|
|||
|
||||
{/* Gestion des demandes d'information */}
|
||||
|
||||
{
|
||||
String(action).toLocaleLowerCase() === "information" &&
|
||||
|
||||
String(AnnulerFction_status) !== "1" && <div>
|
||||
{(String(SendInformationRequest_status) === "false" ||
|
||||
String(SendInformationRequest_status).length === 0) &&
|
||||
String(action).toLocaleLowerCase() === "information" &&
|
||||
String(AnnulerFction_info_status) !== "1" && <div>
|
||||
|
||||
<Box alignItems="left" sx={{ '& > :not(style)': { m: 1 }, width: '100%', }}>
|
||||
{String(RecordData_status) === "false" && <div className="koUpdateData">
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue