27/12/2022 - 11h00
parent
3884bcbb5f
commit
78c7ddb699
|
@ -992,19 +992,23 @@ function GestionAdministrative(props) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var adress = ""
|
var adress = "";
|
||||||
if (document.getElementById("adresse") && document.getElementById("adresse").value != "")
|
if (document.getElementById("adresse") && document.getElementById("adresse").value != "")
|
||||||
adress = document.getElementById("adresse").value;
|
adress = document.getElementById("adresse").value;
|
||||||
|
|
||||||
var codepostal = ""
|
var codepostal = "";
|
||||||
if (document.getElementById("code_postal") && document.getElementById("code_postal").value != "")
|
if (document.getElementById("code_postal") && document.getElementById("code_postal").value != "")
|
||||||
codepostal = document.getElementById("code_postal").value;
|
codepostal = document.getElementById("code_postal").value;
|
||||||
|
|
||||||
|
|
||||||
var ville = ""
|
var ville = "";
|
||||||
if (document.getElementById("ville") && document.getElementById("ville").value != "")
|
if (document.getElementById("ville") && document.getElementById("ville").value != "")
|
||||||
ville = document.getElementById("ville").value;
|
ville = document.getElementById("ville").value;
|
||||||
|
|
||||||
|
var formateur = "";
|
||||||
|
if (document.getElementById("formateur") && document.getElementById("formateur").value != "")
|
||||||
|
formateur = document.getElementById("formateur").value;
|
||||||
|
|
||||||
//form.append("token","K3cw63eKokKSbV4spjQ48SUNnfy80yrXfA");
|
//form.append("token","K3cw63eKokKSbV4spjQ48SUNnfy80yrXfA");
|
||||||
const stored_cookie = getCookie('tokenmysypart');
|
const stored_cookie = getCookie('tokenmysypart');
|
||||||
form.append("token", stored_cookie);
|
form.append("token", stored_cookie);
|
||||||
|
@ -1016,6 +1020,7 @@ function GestionAdministrative(props) {
|
||||||
form.append("adresse", adress);
|
form.append("adresse", adress);
|
||||||
form.append("code_postal", codepostal);
|
form.append("code_postal", codepostal);
|
||||||
form.append("ville", ville);
|
form.append("ville", ville);
|
||||||
|
form.append("formateur", formateur);
|
||||||
form.append("session_status", sessionStatus);
|
form.append("session_status", sessionStatus);
|
||||||
form.append("date_debut_inscription", format(SessionstartDateInscription, 'dd/MM/yyyy kk:mm:ss'));
|
form.append("date_debut_inscription", format(SessionstartDateInscription, 'dd/MM/yyyy kk:mm:ss'));
|
||||||
form.append("date_fin_inscription", format(SessionendDateInscription, 'dd/MM/yyyy kk:mm:ss'));
|
form.append("date_fin_inscription", format(SessionendDateInscription, 'dd/MM/yyyy kk:mm:ss'));
|
||||||
|
@ -1115,6 +1120,11 @@ function GestionAdministrative(props) {
|
||||||
document.getElementsByName("ville")[0].value = mylocaltraining.ville;
|
document.getElementsByName("ville")[0].value = mylocaltraining.ville;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
document.getElementsByName("formateur")[0].value = "";
|
||||||
|
if (mylocaltraining.formateur) {
|
||||||
|
document.getElementsByName("formateur")[0].value = mylocaltraining.formateur;
|
||||||
|
}
|
||||||
|
|
||||||
document.getElementsByName("code_postal")[0].value = "";
|
document.getElementsByName("code_postal")[0].value = "";
|
||||||
if (mylocaltraining.code_postal)
|
if (mylocaltraining.code_postal)
|
||||||
document.getElementsByName("code_postal")[0].value = mylocaltraining.code_postal;
|
document.getElementsByName("code_postal")[0].value = mylocaltraining.code_postal;
|
||||||
|
@ -1241,6 +1251,9 @@ function GestionAdministrative(props) {
|
||||||
document.getElementsByName("ville")[0].disabled = true;
|
document.getElementsByName("ville")[0].disabled = true;
|
||||||
document.getElementsByName("ville")[0].style.backgroundColor = "#ECEFF1";
|
document.getElementsByName("ville")[0].style.backgroundColor = "#ECEFF1";
|
||||||
|
|
||||||
|
document.getElementsByName("formateur")[0].disabled = true;
|
||||||
|
document.getElementsByName("formateur")[0].style.backgroundColor = "#ECEFF1";
|
||||||
|
|
||||||
document.getElementsByName("nb_participant")[0].disabled = true;
|
document.getElementsByName("nb_participant")[0].disabled = true;
|
||||||
document.getElementsByName("nb_participant")[0].style.backgroundColor = "#ECEFF1";
|
document.getElementsByName("nb_participant")[0].style.backgroundColor = "#ECEFF1";
|
||||||
|
|
||||||
|
@ -1273,6 +1286,9 @@ function GestionAdministrative(props) {
|
||||||
document.getElementsByName("ville")[0].disabled = false;
|
document.getElementsByName("ville")[0].disabled = false;
|
||||||
document.getElementsByName("ville")[0].style.backgroundColor = "#FFFFFF";
|
document.getElementsByName("ville")[0].style.backgroundColor = "#FFFFFF";
|
||||||
|
|
||||||
|
document.getElementsByName("formateur")[0].disabled = false;
|
||||||
|
document.getElementsByName("formateur")[0].style.backgroundColor = "#FFFFFF";
|
||||||
|
|
||||||
document.getElementsByName("nb_participant")[0].disabled = false;
|
document.getElementsByName("nb_participant")[0].disabled = false;
|
||||||
document.getElementsByName("nb_participant")[0].style.backgroundColor = "#FFFFFF";
|
document.getElementsByName("nb_participant")[0].style.backgroundColor = "#FFFFFF";
|
||||||
|
|
||||||
|
@ -2167,6 +2183,22 @@ function GestionAdministrative(props) {
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div className="session_caract"> Formateur<br />
|
||||||
|
<TextField
|
||||||
|
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||||
|
required
|
||||||
|
name="formateur"
|
||||||
|
id="formateur"
|
||||||
|
|
||||||
|
InputLabelProps={{
|
||||||
|
shrink: true,
|
||||||
|
}}
|
||||||
|
disabled={false}
|
||||||
|
className="disabled_style"
|
||||||
|
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div className="session_caract"> Nombre participants *<br />
|
<div className="session_caract"> Nombre participants *<br />
|
||||||
<TextField sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
<TextField sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||||
required
|
required
|
||||||
|
|
Loading…
Reference in New Issue