08/11/2023 - 23h
parent
c7ae778cd8
commit
d749dbf12e
|
@ -299,6 +299,10 @@ const AddClassManual = (props) => {
|
||||||
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|
||||||
|
Get_Partner_Object_Specific_Fields("myclass");
|
||||||
|
|
||||||
|
|
||||||
setfield_description("");
|
setfield_description("");
|
||||||
setfield_objectif("");
|
setfield_objectif("");
|
||||||
setfield_programme("");
|
setfield_programme("");
|
||||||
|
@ -322,8 +326,7 @@ const AddClassManual = (props) => {
|
||||||
|
|
||||||
setdatamodification("0");
|
setdatamodification("0");
|
||||||
|
|
||||||
Get_Partner_Object_Specific_Fields("myclass");
|
|
||||||
|
|
||||||
|
|
||||||
window.scrollTo({
|
window.scrollTo({
|
||||||
top: 0,
|
top: 0,
|
||||||
|
@ -369,8 +372,8 @@ const AddClassManual = (props) => {
|
||||||
|
|
||||||
axios.post(myurl, form).then(res => {
|
axios.post(myurl, form).then(res => {
|
||||||
if (String(res.data.status) === String("true")) {
|
if (String(res.data.status) === String("true")) {
|
||||||
//console.log(" In test res.data.status = " + res.data.status);
|
//console.log(" In get_partner_class res.data.status = " + res.data.status);
|
||||||
//console.log(" In test res.data.message r_class = " + res.data.message);
|
//console.log(" In get_partner_class res.data.message r_class = " + res.data.message);
|
||||||
setmyApiResponse("True");
|
setmyApiResponse("True");
|
||||||
setResult(res.data.message);
|
setResult(res.data.message);
|
||||||
var mylocaltraining = JSON.parse(res.data.message);
|
var mylocaltraining = JSON.parse(res.data.message);
|
||||||
|
@ -525,13 +528,15 @@ const AddClassManual = (props) => {
|
||||||
Gestion des champs spécifiques. ils commencent tous par 'my_'
|
Gestion des champs spécifiques. ils commencent tous par 'my_'
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
//console.log(" #### props.rows_champs_specifics = ", props.rows_champs_specifics);
|
||||||
for (let i = 0; i < rows_champs_specifics.length; i++) {
|
for (let i = 0; i < rows_champs_specifics.length; i++) {
|
||||||
|
|
||||||
var field_name = JSON.parse(rows_champs_specifics[i]).field_name;
|
var field_name = JSON.parse(rows_champs_specifics[i]).field_name;
|
||||||
var field_type = JSON.parse(rows_champs_specifics[i]).field_type;
|
var field_type = JSON.parse(rows_champs_specifics[i]).field_type;
|
||||||
var field_label = JSON.parse(rows_champs_specifics[i]).field_label;
|
var field_label = JSON.parse(rows_champs_specifics[i]).field_label;
|
||||||
var is_mandatory = JSON.parse(rows_champs_specifics[i]).is_mandatory;
|
var is_mandatory = JSON.parse(rows_champs_specifics[i]).is_mandatory;
|
||||||
|
|
||||||
|
//console.log(" field_name = ", field_name);
|
||||||
|
|
||||||
if (mylocaltraining.hasOwnProperty(field_name)) {
|
if (mylocaltraining.hasOwnProperty(field_name)) {
|
||||||
var local_valeur = mylocaltraining[String(field_name)]
|
var local_valeur = mylocaltraining[String(field_name)]
|
||||||
|
@ -814,11 +819,11 @@ const AddClassManual = (props) => {
|
||||||
}
|
}
|
||||||
if (String(spec_field_updated_values_hooks[i].is_mandatory) === "1") {
|
if (String(spec_field_updated_values_hooks[i].is_mandatory) === "1") {
|
||||||
if (String(local_value).trim().length <= 0) {
|
if (String(local_value).trim().length <= 0) {
|
||||||
alert("Le champ " + spec_field_updated_values_hooks[i].field_label + " est obligatoire.")
|
alert("Le champ " + spec_field_updated_values_hooks[i].field_label + " est obligatoire.")
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
formData.append(String(spec_field_updated_values_hooks[i].field_name), local_value);
|
formData.append(String(spec_field_updated_values_hooks[i].field_name), local_value);
|
||||||
}
|
}
|
||||||
|
@ -1321,7 +1326,11 @@ const AddClassManual = (props) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const [rows_champs_specifics, setrows_champs_specifics] = useState([]);
|
//const [rows_champs_specifics, setrows_champs_specifics] = useState([]);
|
||||||
|
|
||||||
|
// Cas spécifique de cette page.
|
||||||
|
const [rows_champs_specifics, setrows_champs_specifics] = useState(props.rows_champs_specifics);
|
||||||
|
|
||||||
const [display_champs_specifics, setdisplay_champs_specifics] = useState("0");
|
const [display_champs_specifics, setdisplay_champs_specifics] = useState("0");
|
||||||
|
|
||||||
function afficher_champs_spec() {
|
function afficher_champs_spec() {
|
||||||
|
@ -1364,16 +1373,16 @@ const AddClassManual = (props) => {
|
||||||
|
|
||||||
for (let i = 0; i < rows_champs_specifics.length; i++) {
|
for (let i = 0; i < rows_champs_specifics.length; i++) {
|
||||||
|
|
||||||
var field_name = JSON.parse(rows_champs_specifics[i]).field_name;
|
var field_name = JSON.parse(rows_champs_specifics[i]).field_name;
|
||||||
var field_type = JSON.parse(rows_champs_specifics[i]).field_type;
|
var field_type = JSON.parse(rows_champs_specifics[i]).field_type;
|
||||||
var field_label = JSON.parse(rows_champs_specifics[i]).field_label;
|
var field_label = JSON.parse(rows_champs_specifics[i]).field_label;
|
||||||
var is_mandatory = JSON.parse(rows_champs_specifics[i]).is_mandatory;
|
var is_mandatory = JSON.parse(rows_champs_specifics[i]).is_mandatory;
|
||||||
|
|
||||||
|
|
||||||
if (document.getElementsByName(String(field_name))[0]) {
|
if (document.getElementsByName(String(field_name))[0]) {
|
||||||
|
|
||||||
var field_value = document.getElementsByName(String(field_name))[0].value;
|
var field_value = document.getElementsByName(String(field_name))[0].value;
|
||||||
var new_val = { 'field_name': field_name, 'field_value': field_value, 'field_type':field_type, 'field_label':field_label, 'is_mandatory':is_mandatory }
|
var new_val = { 'field_name': field_name, 'field_value': field_value, 'field_type': field_type, 'field_label': field_label, 'is_mandatory': is_mandatory }
|
||||||
var johnIndex = findIndexByProperty(spec_field_updated_values, 'field_name', field_name);
|
var johnIndex = findIndexByProperty(spec_field_updated_values, 'field_name', field_name);
|
||||||
if (johnIndex > -1) {
|
if (johnIndex > -1) {
|
||||||
spec_field_updated_values[johnIndex] = new_val;
|
spec_field_updated_values[johnIndex] = new_val;
|
||||||
|
|
|
@ -713,11 +713,13 @@ const DisplayPartnerSession = (props) => {
|
||||||
else {
|
else {
|
||||||
setGetall_TrainingSession_api("false");
|
setGetall_TrainingSession_api("false");
|
||||||
setGetall_TrainingSession_message(res.data.message);
|
setGetall_TrainingSession_message(res.data.message);
|
||||||
|
alert(res.data.message)
|
||||||
}
|
}
|
||||||
|
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
console.warn('Not good man :( Getall_TrainingSession = ', error);
|
console.warn('Not good man :( Getall_TrainingSession = ', error);
|
||||||
setGetall_TrainingSession_api("false");
|
setGetall_TrainingSession_api("false");
|
||||||
|
alert("Impossible de lancer la recherche")
|
||||||
//setmyApimyApiMessage("")
|
//setmyApimyApiMessage("")
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -851,6 +853,10 @@ const DisplayPartnerSession = (props) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|
||||||
|
Get_Partner_Object_Specific_Fields_stagiaire();
|
||||||
|
|
||||||
|
|
||||||
GetCurrentPartnerClass();
|
GetCurrentPartnerClass();
|
||||||
Getall_TrainingSession();
|
Getall_TrainingSession();
|
||||||
GetAttestation_Certif();
|
GetAttestation_Certif();
|
||||||
|
@ -1368,6 +1374,10 @@ const DisplayPartnerSession = (props) => {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const [p_one_detail_client_rattachement_nom, setp_one_detail_client_rattachement_nom] = useState();
|
||||||
|
const [p_one_detail_client_rattachement_id, setp_one_detail_client_rattachement_id] = useState();
|
||||||
|
|
||||||
|
|
||||||
const [One_Create_Participant_api, setOne_Create_Participant_api] = useState();
|
const [One_Create_Participant_api, setOne_Create_Participant_api] = useState();
|
||||||
const [One_Create_Participant_message, setOne_Create_Participant_message] = useState();
|
const [One_Create_Participant_message, setOne_Create_Participant_message] = useState();
|
||||||
const [One_Create_Participant_result, setOne_Create_Participant_result] = useState();
|
const [One_Create_Participant_result, setOne_Create_Participant_result] = useState();
|
||||||
|
@ -1378,19 +1388,29 @@ const DisplayPartnerSession = (props) => {
|
||||||
var prix_session;
|
var prix_session;
|
||||||
|
|
||||||
|
|
||||||
var one_nom_part = p_one_nom_part;
|
var one_nom_part = "";
|
||||||
|
if (p_one_nom_part)
|
||||||
|
one_nom_part = p_one_nom_part;
|
||||||
|
|
||||||
if (one_nom_part.trim() == "") {
|
if (one_nom_part.trim() == "") {
|
||||||
alert(" Vous devez saisir le nom du participant");
|
alert(" Vous devez saisir le nom du participant");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var one_prenom_part = p_one_prenom_part;
|
var one_prenom_part = "";
|
||||||
|
if (p_one_prenom_part)
|
||||||
|
one_prenom_part = p_one_prenom_part;
|
||||||
|
|
||||||
|
|
||||||
if (one_prenom_part.trim() == "") {
|
if (one_prenom_part.trim() == "") {
|
||||||
alert(" Vous devez saisir le prenom du participant");
|
alert(" Vous devez saisir le prenom du participant");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var one_email_part = p_one_email_part;
|
var one_email_part = "";
|
||||||
|
if (p_one_email_part)
|
||||||
|
one_email_part = p_one_email_part;
|
||||||
|
|
||||||
console.log(" one_email_part = ", one_email_part);
|
console.log(" one_email_part = ", one_email_part);
|
||||||
if (one_email_part.trim() == "") {
|
if (one_email_part.trim() == "") {
|
||||||
alert(" Vous devez saisir l'email du participant");
|
alert(" Vous devez saisir l'email du participant");
|
||||||
|
@ -1405,7 +1425,10 @@ const DisplayPartnerSession = (props) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var one_phone_part = p_one_phone_part
|
var one_phone_part = "";
|
||||||
|
if (p_one_phone_part)
|
||||||
|
one_phone_part = p_one_phone_part;
|
||||||
|
|
||||||
if (one_phone_part.trim() == "") {
|
if (one_phone_part.trim() == "") {
|
||||||
alert(" Vous devez saisir le téléphone du participant");
|
alert(" Vous devez saisir le téléphone du participant");
|
||||||
return;
|
return;
|
||||||
|
@ -1430,6 +1453,43 @@ const DisplayPartnerSession = (props) => {
|
||||||
form.append("status", myinscript_status);
|
form.append("status", myinscript_status);
|
||||||
form.append("modefinancement", "");
|
form.append("modefinancement", "");
|
||||||
|
|
||||||
|
if (p_one_detail_client_rattachement_id)
|
||||||
|
form.append("client_rattachement_id", p_one_detail_client_rattachement_id);
|
||||||
|
else
|
||||||
|
form.append("client_rattachement_id", "");
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
Update du 22/10/2023 - Gestion des champs spécifiques ajoutés par le partenaire
|
||||||
|
*/
|
||||||
|
for (let i = 0; i < spec_field_updated_values_hooks_stagiaire.length; i++) {
|
||||||
|
var local_value = String(spec_field_updated_values_hooks_stagiaire[i].field_value);
|
||||||
|
|
||||||
|
if (String(spec_field_updated_values_hooks_stagiaire[i].field_type) === "float") {
|
||||||
|
|
||||||
|
local_value = local_value.replaceAll(",", ".");
|
||||||
|
|
||||||
|
if (isNaN(local_value)) {
|
||||||
|
alert("Le champ " + spec_field_updated_values_hooks_stagiaire[i].field_label + " doit être numérique.")
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
else if (String(spec_field_updated_values_hooks_stagiaire[i].field_type) === "string") {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
if (String(spec_field_updated_values_hooks_stagiaire[i].is_mandatory) === "1") {
|
||||||
|
if (String(local_value).trim().length <= 0) {
|
||||||
|
alert("Le champ " + spec_field_updated_values_hooks_stagiaire[i].field_label + " est obligatoire.")
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
form.append(String(spec_field_updated_values_hooks_stagiaire[i].field_name), local_value);
|
||||||
|
}
|
||||||
|
|
||||||
var myurl = process.env.REACT_APP_API_URL + "myclass/api/AddStagiairetoClass/";
|
var myurl = process.env.REACT_APP_API_URL + "myclass/api/AddStagiairetoClass/";
|
||||||
setLoading(true);
|
setLoading(true);
|
||||||
|
@ -1492,6 +1552,22 @@ const DisplayPartnerSession = (props) => {
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
const status_inscription_add = [
|
||||||
|
{
|
||||||
|
value: '1',
|
||||||
|
label: 'Inscription',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: '0',
|
||||||
|
label: 'PréInscription',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: '2',
|
||||||
|
label: 'En Cours',
|
||||||
|
},
|
||||||
|
|
||||||
|
];
|
||||||
|
|
||||||
const [myinscript_status, setmyinscript_status] = useState("");
|
const [myinscript_status, setmyinscript_status] = useState("");
|
||||||
|
|
||||||
|
|
||||||
|
@ -1827,11 +1903,43 @@ const DisplayPartnerSession = (props) => {
|
||||||
|
|
||||||
form.append("_id", selected_inscription_id);
|
form.append("_id", selected_inscription_id);
|
||||||
if (p_detail_client_rattachement_nom)
|
if (p_detail_client_rattachement_nom)
|
||||||
form.append("client_rattachement_id", p_detail_client_rattachement_nom);
|
form.append("client_rattachement_id", p_detail_client_rattachement_id);
|
||||||
else
|
else
|
||||||
form.append("client_rattachement_id", "");
|
form.append("client_rattachement_id", "");
|
||||||
|
|
||||||
console.log(" form == ", form);
|
/*
|
||||||
|
Update du 22/10/2023 - Gestion des champs spécifiques ajoutés par le partenaire
|
||||||
|
*/
|
||||||
|
for (let i = 0; i < spec_field_updated_values_hooks_stagiaire.length; i++) {
|
||||||
|
|
||||||
|
var local_value = String(spec_field_updated_values_hooks_stagiaire[i].field_value);
|
||||||
|
|
||||||
|
if (String(spec_field_updated_values_hooks_stagiaire[i].field_type) === "float") {
|
||||||
|
|
||||||
|
local_value = local_value.replaceAll(",", ".");
|
||||||
|
|
||||||
|
if (isNaN(local_value)) {
|
||||||
|
alert("Le champ " + spec_field_updated_values_hooks_stagiaire[i].field_label + " doit être numérique.")
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
else if (String(spec_field_updated_values_hooks_stagiaire[i].field_type) === "string") {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
if (String(spec_field_updated_values_hooks_stagiaire[i].is_mandatory) === "1") {
|
||||||
|
if (String(local_value).trim().length <= 0) {
|
||||||
|
alert("Le champ " + spec_field_updated_values_hooks_stagiaire[i].field_label + " est obligatoire.")
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
form.append(String(spec_field_updated_values_hooks_stagiaire[i].field_name), local_value);
|
||||||
|
}
|
||||||
|
|
||||||
|
//console.log(" form == ", form);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -3691,8 +3799,8 @@ const DisplayPartnerSession = (props) => {
|
||||||
|
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
if (String(res.data.status) === "true") {
|
if (String(res.data.status) === "true") {
|
||||||
console.log(" In GetAttendee res.data.status = " + res.data.status);
|
//console.log(" In GetAttendee res.data.status = " + res.data.status);
|
||||||
console.log(" In GetAttendee res.data.message r_class = " + res.data.message);
|
//console.log(" In GetAttendee res.data.message r_class = " + res.data.message);
|
||||||
setGetAttendee_api("true");
|
setGetAttendee_api("true");
|
||||||
setGetAttendee_result(res.data.message);
|
setGetAttendee_result(res.data.message);
|
||||||
|
|
||||||
|
@ -3858,6 +3966,43 @@ const DisplayPartnerSession = (props) => {
|
||||||
setattendee_lms_pwd("xxxxxx");
|
setattendee_lms_pwd("xxxxxx");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Update 22/10/2023 :
|
||||||
|
Gestion des champs spécifiques. ils commencent tous par 'my_'
|
||||||
|
*/
|
||||||
|
for (let i = 0; i < rows_champs_specifics_stagiaire.length; i++) {
|
||||||
|
|
||||||
|
var field_name = JSON.parse(rows_champs_specifics_stagiaire[i]).field_name;
|
||||||
|
var field_type = JSON.parse(rows_champs_specifics_stagiaire[i]).field_type;
|
||||||
|
var field_label = JSON.parse(rows_champs_specifics_stagiaire[i]).field_label;
|
||||||
|
var is_mandatory = JSON.parse(rows_champs_specifics_stagiaire[i]).is_mandatory;
|
||||||
|
|
||||||
|
|
||||||
|
if (mylocalattendee.hasOwnProperty(field_name)) {
|
||||||
|
var local_valeur = mylocalattendee[String(field_name)]
|
||||||
|
|
||||||
|
if (document.getElementById(String(field_name)))
|
||||||
|
document.getElementById(String(field_name)).value = local_valeur;
|
||||||
|
|
||||||
|
var new_val = { 'field_name': field_name, 'field_value': local_valeur, 'field_type': field_type, 'field_label': field_label, 'is_mandatory': is_mandatory }
|
||||||
|
var johnIndex = findIndexByProperty(spec_field_updated_values_stagiaire, 'field_name', field_name);
|
||||||
|
|
||||||
|
if (johnIndex > -1) {
|
||||||
|
spec_field_updated_values_stagiaire[johnIndex] = new_val;
|
||||||
|
|
||||||
|
} else {
|
||||||
|
spec_field_updated_values_stagiaire.push(new_val);
|
||||||
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
setspec_field_updated_values_hooks_stagiaire(spec_field_updated_values_stagiaire);
|
||||||
|
/*
|
||||||
|
* end Update 22/10/2023 :
|
||||||
|
*/
|
||||||
|
|
||||||
var myelement;
|
var myelement;
|
||||||
|
|
||||||
|
@ -4112,7 +4257,14 @@ const DisplayPartnerSession = (props) => {
|
||||||
if (document.getElementsByName("certif_date") && document.getElementsByName("certif_date")[0])
|
if (document.getElementsByName("certif_date") && document.getElementsByName("certif_date")[0])
|
||||||
document.getElementsByName("certif_date")[0].value = "";
|
document.getElementsByName("certif_date")[0].value = "";
|
||||||
|
|
||||||
|
// Pour les champs spécifiques
|
||||||
|
for (let i = 0; i < rows_champs_specifics_stagiaire.length; i++) {
|
||||||
|
|
||||||
|
var field_name = JSON.parse(rows_champs_specifics_stagiaire[i]).field_name;
|
||||||
|
if (document.getElementsByName(String(field_name))[0]) {
|
||||||
|
document.getElementsByName(String(field_name))[0].value = "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
setfield_evaluation();
|
setfield_evaluation();
|
||||||
setdetailuser_date_certification();
|
setdetailuser_date_certification();
|
||||||
|
@ -4478,9 +4630,9 @@ const DisplayPartnerSession = (props) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Pour les champs spécifiques
|
// Pour les champs spécifiques
|
||||||
for (let i = 0; i < rows_champs_specifics.length; i++) {
|
for (let i = 0; i < rows_champs_specifics_stagiaire.length; i++) {
|
||||||
|
|
||||||
var field_name = JSON.parse(rows_champs_specifics[i]).field_name;
|
var field_name = JSON.parse(rows_champs_specifics_stagiaire[i]).field_name;
|
||||||
|
|
||||||
if (document.getElementsByName(String(field_name))[0]) {
|
if (document.getElementsByName(String(field_name))[0]) {
|
||||||
document.getElementsByName(String(field_name))[0].disabled = true;
|
document.getElementsByName(String(field_name))[0].disabled = true;
|
||||||
|
@ -4493,87 +4645,148 @@ const DisplayPartnerSession = (props) => {
|
||||||
function EnableAttendeeDetailFields() {
|
function EnableAttendeeDetailFields() {
|
||||||
setparticipant_data_edit_mode("1");
|
setparticipant_data_edit_mode("1");
|
||||||
|
|
||||||
document.getElementsByName("detail_session_class")[0].disabled = false;
|
if (document.getElementsByName("detail_session_class")[0]) {
|
||||||
document.getElementsByName("detail_session_class")[0].style.backgroundColor = "#FFFFFF";
|
document.getElementsByName("detail_session_class")[0].disabled = false;
|
||||||
|
document.getElementsByName("detail_session_class")[0].style.backgroundColor = "#FFFFFF";
|
||||||
document.getElementsByName("detail_client_rattachement")[0].disabled = false;
|
}
|
||||||
document.getElementsByName("detail_client_rattachement")[0].style.backgroundColor = "#FFFFFF";
|
|
||||||
|
|
||||||
document.getElementsByName("detail_nom")[0].disabled = false;
|
|
||||||
document.getElementsByName("detail_nom")[0].style.backgroundColor = "#FFFFFF";
|
|
||||||
|
|
||||||
|
|
||||||
|
if (document.getElementsByName("detail_client_rattachement")[0]) {
|
||||||
document.getElementsByName("detail_status_inscript")[0].disabled = false;
|
document.getElementsByName("detail_client_rattachement")[0].disabled = false;
|
||||||
document.getElementsByName("detail_status_inscript")[0].style.backgroundColor = "#FFFFFF";
|
document.getElementsByName("detail_client_rattachement")[0].style.backgroundColor = "#FFFFFF";
|
||||||
|
}
|
||||||
document.getElementsByName("detail_opco")[0].disabled = false;
|
|
||||||
document.getElementsByName("detail_opco")[0].style.backgroundColor = "#FFFFFF";
|
|
||||||
|
|
||||||
document.getElementsByName("detail_cout")[0].disabled = false;
|
|
||||||
document.getElementsByName("detail_cout")[0].style.backgroundColor = "#FFFFFF";
|
|
||||||
|
|
||||||
document.getElementsByName("detail_employeur")[0].disabled = false;
|
|
||||||
document.getElementsByName("detail_employeur")[0].style.backgroundColor = "#FFFFFF";
|
|
||||||
|
|
||||||
document.getElementsByName("detail_mode_fin")[0].disabled = false;
|
|
||||||
document.getElementsByName("detail_mode_fin")[0].style.backgroundColor = "#FFFFFF";
|
|
||||||
|
|
||||||
|
|
||||||
document.getElementsByName("detail_prenom")[0].disabled = false;
|
if (document.getElementsByName("detail_nom")[0]) {
|
||||||
document.getElementsByName("detail_prenom")[0].style.backgroundColor = "#FFFFFF";
|
document.getElementsByName("detail_nom")[0].disabled = false;
|
||||||
|
document.getElementsByName("detail_nom")[0].style.backgroundColor = "#FFFFFF";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
document.getElementsByName("detail_mail")[0].disabled = false;
|
if (document.getElementsByName("detail_status_inscript")[0]) {
|
||||||
document.getElementsByName("detail_mail")[0].style.backgroundColor = "#FFFFFF";
|
document.getElementsByName("detail_status_inscript")[0].disabled = false;
|
||||||
|
document.getElementsByName("detail_status_inscript")[0].style.backgroundColor = "#FFFFFF";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
document.getElementsByName("detail_tel")[0].disabled = false;
|
if (document.getElementsByName("detail_opco")[0]) {
|
||||||
document.getElementsByName("detail_tel")[0].style.backgroundColor = "#FFFFFF";
|
document.getElementsByName("detail_opco")[0].disabled = false;
|
||||||
|
document.getElementsByName("detail_opco")[0].style.backgroundColor = "#FFFFFF";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
document.getElementsByName("detail_adresse")[0].disabled = false;
|
if (document.getElementsByName("detail_cout")[0]) {
|
||||||
document.getElementsByName("detail_adresse")[0].style.backgroundColor = "#FFFFFF";
|
document.getElementsByName("detail_cout")[0].disabled = false;
|
||||||
|
document.getElementsByName("detail_cout")[0].style.backgroundColor = "#FFFFFF";
|
||||||
document.getElementsByName("detail_code_postal")[0].disabled = false;
|
}
|
||||||
document.getElementsByName("detail_code_postal")[0].style.backgroundColor = "#FFFFFF";
|
|
||||||
|
|
||||||
document.getElementsByName("detail_ville")[0].disabled = false;
|
|
||||||
document.getElementsByName("detail_ville")[0].style.backgroundColor = "#FFFFFF";
|
|
||||||
|
|
||||||
document.getElementsByName("detail_pays")[0].disabled = false;
|
|
||||||
document.getElementsByName("detail_pays")[0].style.backgroundColor = "#FFFFFF";
|
|
||||||
|
|
||||||
document.getElementsByName("detail_cout")[0].disabled = false;
|
|
||||||
document.getElementsByName("detail_cout")[0].style.backgroundColor = "#FFFFFF";
|
|
||||||
|
|
||||||
|
|
||||||
document.getElementsByName("detail_mode_fin")[0].disabled = false;
|
if (document.getElementsByName("detail_employeur")[0]) {
|
||||||
document.getElementsByName("detail_mode_fin")[0].style.backgroundColor = "#FFFFFF";
|
document.getElementsByName("detail_employeur")[0].disabled = false;
|
||||||
|
document.getElementsByName("detail_employeur")[0].style.backgroundColor = "#FFFFFF";
|
||||||
document.getElementsByName("detail_employeur")[0].disabled = false;
|
}
|
||||||
document.getElementsByName("detail_employeur")[0].style.backgroundColor = "#FFFFFF";
|
|
||||||
|
|
||||||
document.getElementsByName("date_evaluation")[0].disabled = false;
|
|
||||||
document.getElementsByName("date_evaluation")[0].style.backgroundColor = "#FFFFFF";
|
|
||||||
|
|
||||||
document.getElementsByName("certif_date")[0].disabled = false;
|
|
||||||
document.getElementsByName("certif_date")[0].style.backgroundColor = "#FFFFFF";
|
|
||||||
|
|
||||||
document.getElementsByName("note_eval")[0].disabled = false;
|
|
||||||
document.getElementsByName("note_eval")[0].style.backgroundColor = "#FFFFFF";
|
|
||||||
|
|
||||||
|
|
||||||
document.getElementsByName("date_evaluation")[0].disabled = false;
|
if (document.getElementsByName("detail_mode_fin")[0]) {
|
||||||
document.getElementsByName("date_evaluation")[0].style.backgroundColor = "#FFFFFF";
|
document.getElementsByName("detail_mode_fin")[0].disabled = false;
|
||||||
|
document.getElementsByName("detail_mode_fin")[0].style.backgroundColor = "#FFFFFF";
|
||||||
|
}
|
||||||
|
|
||||||
|
if (document.getElementsByName("detail_prenom")[0]) {
|
||||||
|
document.getElementsByName("detail_prenom")[0].disabled = false;
|
||||||
|
document.getElementsByName("detail_prenom")[0].style.backgroundColor = "#FFFFFF";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
document.getElementsByName("detail_incr_date")[0].disabled = false;
|
if (document.getElementsByName("detail_mail")[0]) {
|
||||||
document.getElementsByName("detail_incr_date")[0].style.backgroundColor = "#FFFFFF";
|
document.getElementsByName("detail_mail")[0].disabled = false;
|
||||||
|
document.getElementsByName("detail_mail")[0].style.backgroundColor = "#FFFFFF";
|
||||||
|
}
|
||||||
|
|
||||||
|
if (document.getElementsByName("detail_tel")[0]) {
|
||||||
|
document.getElementsByName("detail_tel")[0].disabled = false;
|
||||||
|
document.getElementsByName("detail_tel")[0].style.backgroundColor = "#FFFFFF";
|
||||||
|
}
|
||||||
|
|
||||||
|
if (document.getElementsByName("detail_adresse")[0]) {
|
||||||
|
document.getElementsByName("detail_adresse")[0].disabled = false;
|
||||||
|
document.getElementsByName("detail_adresse")[0].style.backgroundColor = "#FFFFFF";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
document.getElementsByName("certif_date")[0].disabled = false;
|
if (document.getElementsByName("detail_code_postal")[0]) {
|
||||||
document.getElementsByName("certif_date")[0].style.backgroundColor = "#FFFFFF";
|
document.getElementsByName("detail_code_postal")[0].disabled = false;
|
||||||
|
document.getElementsByName("detail_code_postal")[0].style.backgroundColor = "#FFFFFF";
|
||||||
|
}
|
||||||
|
|
||||||
|
if (document.getElementsByName("detail_ville")[0]) {
|
||||||
|
document.getElementsByName("detail_ville")[0].disabled = false;
|
||||||
|
document.getElementsByName("detail_ville")[0].style.backgroundColor = "#FFFFFF";
|
||||||
|
}
|
||||||
|
|
||||||
|
if (document.getElementsByName("detail_pays")[0]) {
|
||||||
|
document.getElementsByName("detail_pays")[0].disabled = false;
|
||||||
|
document.getElementsByName("detail_pays")[0].style.backgroundColor = "#FFFFFF";
|
||||||
|
}
|
||||||
|
|
||||||
|
if (document.getElementsByName("detail_cout")[0]) {
|
||||||
|
document.getElementsByName("detail_cout")[0].disabled = false;
|
||||||
|
document.getElementsByName("detail_cout")[0].style.backgroundColor = "#FFFFFF";
|
||||||
|
}
|
||||||
|
|
||||||
|
if (document.getElementsByName("detail_mode_fin")[0]) {
|
||||||
|
document.getElementsByName("detail_mode_fin")[0].disabled = false;
|
||||||
|
document.getElementsByName("detail_mode_fin")[0].style.backgroundColor = "#FFFFFF";
|
||||||
|
}
|
||||||
|
|
||||||
|
if (document.getElementsByName("detail_employeur")[0]) {
|
||||||
|
document.getElementsByName("detail_employeur")[0].disabled = false;
|
||||||
|
document.getElementsByName("detail_employeur")[0].style.backgroundColor = "#FFFFFF";
|
||||||
|
}
|
||||||
|
|
||||||
|
if (document.getElementsByName("date_evaluation")[0]) {
|
||||||
|
document.getElementsByName("date_evaluation")[0].disabled = false;
|
||||||
|
document.getElementsByName("date_evaluation")[0].style.backgroundColor = "#FFFFFF";
|
||||||
|
}
|
||||||
|
|
||||||
|
if (document.getElementsByName("certif_date")[0]) {
|
||||||
|
document.getElementsByName("certif_date")[0].disabled = false;
|
||||||
|
document.getElementsByName("certif_date")[0].style.backgroundColor = "#FFFFFF";
|
||||||
|
}
|
||||||
|
|
||||||
|
if (document.getElementsByName("note_eval")[0]) {
|
||||||
|
document.getElementsByName("note_eval")[0].disabled = false;
|
||||||
|
document.getElementsByName("note_eval")[0].style.backgroundColor = "#FFFFFF";
|
||||||
|
}
|
||||||
|
|
||||||
|
if (document.getElementsByName("date_evaluation")[0]) {
|
||||||
|
document.getElementsByName("date_evaluation")[0].disabled = false;
|
||||||
|
document.getElementsByName("date_evaluation")[0].style.backgroundColor = "#FFFFFF";
|
||||||
|
}
|
||||||
|
|
||||||
|
if (document.getElementsByName("detail_incr_date")[0]) {
|
||||||
|
document.getElementsByName("detail_incr_date")[0].disabled = false;
|
||||||
|
document.getElementsByName("detail_incr_date")[0].style.backgroundColor = "#FFFFFF";
|
||||||
|
}
|
||||||
|
|
||||||
|
if (document.getElementsByName("certif_date")[0]) {
|
||||||
|
document.getElementsByName("certif_date")[0].disabled = false;
|
||||||
|
document.getElementsByName("certif_date")[0].style.backgroundColor = "#FFFFFF";
|
||||||
|
}
|
||||||
|
|
||||||
|
// Pour les champs spécifiques
|
||||||
|
for (let i = 0; i < rows_champs_specifics_stagiaire.length; i++) {
|
||||||
|
|
||||||
|
var field_name = JSON.parse(rows_champs_specifics_stagiaire[i]).field_name;
|
||||||
|
|
||||||
|
// console.log(" #### field_name = ", field_name);
|
||||||
|
|
||||||
|
if (document.getElementsByName(String(field_name))[0]) {
|
||||||
|
document.getElementsByName(String(field_name))[0].disabled = false;
|
||||||
|
document.getElementsByName(String(field_name))[0].style.backgroundColor = "#FFFFFF";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const [p_detail_nom, setp_detail_nom] = useState();
|
const [p_detail_nom, setp_detail_nom] = useState();
|
||||||
|
@ -5203,6 +5416,103 @@ const DisplayPartnerSession = (props) => {
|
||||||
//console.log(" OUTT spec_field_updated_values = ", spec_field_updated_values);
|
//console.log(" OUTT spec_field_updated_values = ", spec_field_updated_values);
|
||||||
setspec_field_updated_values_hooks(spec_field_updated_values)
|
setspec_field_updated_values_hooks(spec_field_updated_values)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// -- pour les stagiaires
|
||||||
|
const list_nom_champs_spec_stagiaire = []
|
||||||
|
const [spec_champs_valeur_stagiaire, setspec_champs_valeur_stagiaire] = useState([]);
|
||||||
|
|
||||||
|
//const spec_champs_valeur = ""
|
||||||
|
|
||||||
|
const [Get_Partner_Object_Specific_Fields_stagiaire_api, setGet_Partner_Object_Specific_Fields_stagiaire_api] = useState();
|
||||||
|
const [Get_Partner_Object_Specific_Fields_stagiaire_message, setGet_Partner_Object_Specific_Fields_stagiaire_message] = useState();
|
||||||
|
const [Get_Partner_Object_Specific_Fields_stagiaire_result, setGet_Partner_Object_Specific_Fields_stagiaire_result] = useState();
|
||||||
|
function Get_Partner_Object_Specific_Fields_stagiaire() {
|
||||||
|
|
||||||
|
var form = new FormData();
|
||||||
|
const stored_cookie = getCookie('tokenmysypart');
|
||||||
|
form.append("token", stored_cookie);
|
||||||
|
form.append("object_name", "inscription");
|
||||||
|
|
||||||
|
var myurl = process.env.REACT_APP_API_URL + "myclass/api/Get_Partner_Object_Specific_Valide_Displayed_Fields/";
|
||||||
|
|
||||||
|
axios.post(myurl, form).then(res => {
|
||||||
|
|
||||||
|
if (String(res.data.status) === String("true")) {
|
||||||
|
//console.log(" In Get_Partner_Object_Specific_Fields res.data.status = " + res.data.status);
|
||||||
|
//console.log(" In Get_Partner_Object_Specific_Fields res.data.message r_class = " + res.data.message);
|
||||||
|
|
||||||
|
setGet_Partner_Object_Specific_Fields_stagiaire_api("true");
|
||||||
|
setGet_Partner_Object_Specific_Fields_stagiaire_result(res.data.message);
|
||||||
|
|
||||||
|
|
||||||
|
setrows_champs_specifics_stagiaire(res.data.message);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
setGet_Partner_Object_Specific_Fields_stagiaire_api("false");
|
||||||
|
setGet_Partner_Object_Specific_Fields_stagiaire_message(res.data.message);
|
||||||
|
alert(res.data.message)
|
||||||
|
}
|
||||||
|
|
||||||
|
}).catch((error) => {
|
||||||
|
console.warn('Not good man :( Get_Partner_Object_Specific_Fields = ', error);
|
||||||
|
setGet_Partner_Object_Specific_Fields_stagiaire_api("false");
|
||||||
|
alert(" Impossible de recuperer la liste des collection et champs personnalisables");
|
||||||
|
//setmyApimyApiMessage("")
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
const [rows_champs_specifics_stagiaire, setrows_champs_specifics_stagiaire] = useState([]);
|
||||||
|
const [display_champs_specifics_stagiaire, setdisplay_champs_specifics_stagiaire] = useState("0");
|
||||||
|
|
||||||
|
function afficher_champs_spec_stagiaire() {
|
||||||
|
|
||||||
|
setdisplay_champs_specifics_stagiaire("1");
|
||||||
|
//setrows_champs_specifics(spec_champs_valeur);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
const spec_field_updated_values_stagiaire = []
|
||||||
|
const [spec_field_updated_values_hooks_stagiaire, setspec_field_updated_values_hooks_stagiaire] = useState([]);
|
||||||
|
|
||||||
|
|
||||||
|
function change_champs_spec_handle_stagiaire() {
|
||||||
|
|
||||||
|
for (let i = 0; i < rows_champs_specifics_stagiaire.length; i++) {
|
||||||
|
|
||||||
|
var field_name = JSON.parse(rows_champs_specifics_stagiaire[i]).field_name;
|
||||||
|
var field_type = JSON.parse(rows_champs_specifics_stagiaire[i]).field_type;
|
||||||
|
var field_label = JSON.parse(rows_champs_specifics_stagiaire[i]).field_label;
|
||||||
|
var is_mandatory = JSON.parse(rows_champs_specifics_stagiaire[i]).is_mandatory;
|
||||||
|
|
||||||
|
if (document.getElementsByName(String(field_name))[0]) {
|
||||||
|
|
||||||
|
var field_value = document.getElementsByName(String(field_name))[0].value;
|
||||||
|
var new_val = { 'field_name': field_name, 'field_value': field_value, 'field_type': field_type, 'field_label': field_label, 'is_mandatory': is_mandatory, 'is_mandatory': is_mandatory }
|
||||||
|
var johnIndex = findIndexByProperty(spec_field_updated_values_stagiaire, 'field_name', field_name);
|
||||||
|
if (johnIndex > -1) {
|
||||||
|
spec_field_updated_values_stagiaire[johnIndex] = new_val;
|
||||||
|
|
||||||
|
} else {
|
||||||
|
spec_field_updated_values_stagiaire.push(new_val);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
//setrows_champs_specifics(spec_champs_valeur);
|
||||||
|
|
||||||
|
//console.log(" OUTT spec_field_updated_values = ", spec_field_updated_values);
|
||||||
|
setspec_field_updated_values_hooks_stagiaire(spec_field_updated_values_stagiaire)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// -- end champs specifiques
|
// -- end champs specifiques
|
||||||
|
|
||||||
|
|
||||||
|
@ -5251,6 +5561,8 @@ const DisplayPartnerSession = (props) => {
|
||||||
<MenuItem value="code_session" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }}>Code Session </MenuItem>
|
<MenuItem value="code_session" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }}>Code Session </MenuItem>
|
||||||
<MenuItem value="class_external_code" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Code Formation (code externe) </MenuItem>
|
<MenuItem value="class_external_code" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Code Formation (code externe) </MenuItem>
|
||||||
<MenuItem value="class_title" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Titre Formation </MenuItem>
|
<MenuItem value="class_title" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Titre Formation </MenuItem>
|
||||||
|
<MenuItem value="session_start_date" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Date debut session </MenuItem>
|
||||||
|
<MenuItem value="session_end_date" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Date fin session </MenuItem>
|
||||||
|
|
||||||
</TextField>
|
</TextField>
|
||||||
</div>
|
</div>
|
||||||
|
@ -5328,6 +5640,9 @@ const DisplayPartnerSession = (props) => {
|
||||||
<MenuItem value="code_session" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }}>Code Session </MenuItem>
|
<MenuItem value="code_session" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }}>Code Session </MenuItem>
|
||||||
<MenuItem value="class_external_code" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Code Formation (code externe) </MenuItem>
|
<MenuItem value="class_external_code" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Code Formation (code externe) </MenuItem>
|
||||||
<MenuItem value="class_title" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Titre Formation </MenuItem>
|
<MenuItem value="class_title" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Titre Formation </MenuItem>
|
||||||
|
<MenuItem value="session_start_date" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Date debut session </MenuItem>
|
||||||
|
<MenuItem value="session_end_date" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Date fin session </MenuItem>
|
||||||
|
|
||||||
|
|
||||||
</TextField>
|
</TextField>
|
||||||
</div>
|
</div>
|
||||||
|
@ -6904,7 +7219,7 @@ const DisplayPartnerSession = (props) => {
|
||||||
|
|
||||||
|
|
||||||
{String(addOneParticipant) === "1" && <div className="div_row session_data" style={{ "border": "None", "backgroundColor": "#F0F0F0" }}>
|
{String(addOneParticipant) === "1" && <div className="div_row session_data" style={{ "border": "None", "backgroundColor": "#F0F0F0" }}>
|
||||||
<div className="titre1"> Ajout d'un nouveau participant à la session <u> {selected_code_session} </u> de la formation <u> {selected_class_title} </u></div>
|
<div className="titre1"> Ajout d'un nouveau participant à la session <u> {selected_code_session} </u> de la formation <u> {selected_class_title} </u></div>
|
||||||
|
|
||||||
<div className="session_caract"> Nom *<br />
|
<div className="session_caract"> Nom *<br />
|
||||||
<TextField
|
<TextField
|
||||||
|
@ -7003,7 +7318,7 @@ const DisplayPartnerSession = (props) => {
|
||||||
disabled={false}
|
disabled={false}
|
||||||
className="disabled_style enable_style"
|
className="disabled_style enable_style"
|
||||||
>
|
>
|
||||||
{status_inscription.map((option) => (
|
{status_inscription_add.map((option) => (
|
||||||
<MenuItem key={option.value} value={option.value} style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%", "fontSize": "12px" }}>
|
<MenuItem key={option.value} value={option.value} style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%", "fontSize": "12px" }}>
|
||||||
{option.label} <br />
|
{option.label} <br />
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
|
@ -7011,7 +7326,77 @@ const DisplayPartnerSession = (props) => {
|
||||||
</TextField>
|
</TextField>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div className="session_caract"> Client <br />
|
||||||
|
<TextField
|
||||||
|
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||||
|
required
|
||||||
|
name="one_detail_client_rattachement"
|
||||||
|
id="one_detail_client_rattachement"
|
||||||
|
select
|
||||||
|
InputLabelProps={{
|
||||||
|
shrink: true,
|
||||||
|
}}
|
||||||
|
disabled={false}
|
||||||
|
className="disabled_style"
|
||||||
|
value={p_one_detail_client_rattachement_nom}
|
||||||
|
onChange={(e) => {
|
||||||
|
setp_one_detail_client_rattachement_id(e.target.value);
|
||||||
|
setp_one_detail_client_rattachement_nom(e.target.value);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
>
|
||||||
|
{Get_List_Partner_Clients_result &&
|
||||||
|
Get_List_Partner_Clients_result.map((myclient) => (
|
||||||
|
<MenuItem key={JSON.parse(myclient)._id} value={JSON.parse(myclient)._id}
|
||||||
|
style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%", "fontSize": "12px" }}>
|
||||||
|
{JSON.parse(myclient).nom}
|
||||||
|
|
||||||
|
</MenuItem>
|
||||||
|
))}
|
||||||
|
</TextField>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
{/* -- debut champs specifiques **/}
|
||||||
|
<div className="div_row" style={{ "border": 'none' }}>
|
||||||
|
<hr />
|
||||||
|
</div>
|
||||||
|
<div className="div_row" style={{ "padding": "5px", "border": 'none' }}> Vos champs spécifiques<br />
|
||||||
|
|
||||||
|
{rows_champs_specifics_stagiaire &&
|
||||||
|
rows_champs_specifics_stagiaire.map((champ_spec) => (
|
||||||
|
|
||||||
|
<div className="session_caract"> {JSON.parse(champ_spec).field_label} <br />
|
||||||
|
|
||||||
|
<TextField
|
||||||
|
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||||
|
required
|
||||||
|
name={JSON.parse(champ_spec).field_name}
|
||||||
|
id={JSON.parse(champ_spec).field_name}
|
||||||
|
|
||||||
|
InputLabelProps={{
|
||||||
|
shrink: true,
|
||||||
|
}}
|
||||||
|
|
||||||
|
|
||||||
|
className="disabled_style"
|
||||||
|
onChange={(e) => {
|
||||||
|
change_champs_spec_handle_stagiaire(e.target.value);
|
||||||
|
setparticipant_data_changed("1");
|
||||||
|
}}
|
||||||
|
//onChange={change_champs_spec_handle}
|
||||||
|
|
||||||
|
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
))}
|
||||||
|
|
||||||
|
<br />
|
||||||
|
|
||||||
|
</div>
|
||||||
|
{/* -- end champs specifiques **/}
|
||||||
|
|
||||||
<div className="div_row" style={{ "border": "None" }}>
|
<div className="div_row" style={{ "border": "None" }}>
|
||||||
|
|
||||||
|
@ -7224,7 +7609,7 @@ const DisplayPartnerSession = (props) => {
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="session_caract"> Email ss*<br />
|
<div className="session_caract"> Email *<br />
|
||||||
<TextField
|
<TextField
|
||||||
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||||
required
|
required
|
||||||
|
@ -7243,7 +7628,7 @@ const DisplayPartnerSession = (props) => {
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="session_caract"> téléphone ss*<br />
|
<div className="session_caract"> téléphone *<br />
|
||||||
<TextField
|
<TextField
|
||||||
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||||
required
|
required
|
||||||
|
@ -7260,7 +7645,7 @@ const DisplayPartnerSession = (props) => {
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="session_caract"> Statut Inscription *<br />
|
<div className="session_caract"> Statut Inscription ss*<br />
|
||||||
<TextField
|
<TextField
|
||||||
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||||
required
|
required
|
||||||
|
@ -7284,7 +7669,44 @@ const DisplayPartnerSession = (props) => {
|
||||||
</TextField>
|
</TextField>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{/* -- debut champs specifiques **/}
|
||||||
|
<div className="div_row" style={{ "border": 'none' }}>
|
||||||
|
<hr />
|
||||||
|
</div>
|
||||||
|
<div className="div_row" style={{ "padding": "5px", "border": 'none' }}> Vos champs spécifiques<br />
|
||||||
|
|
||||||
|
{rows_champs_specifics_stagiaire &&
|
||||||
|
rows_champs_specifics_stagiaire.map((champ_spec) => (
|
||||||
|
|
||||||
|
<div className="session_caract"> {JSON.parse(champ_spec).field_label} <br />
|
||||||
|
|
||||||
|
<TextField
|
||||||
|
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||||
|
required
|
||||||
|
name={JSON.parse(champ_spec).field_name}
|
||||||
|
id={JSON.parse(champ_spec).field_name}
|
||||||
|
|
||||||
|
InputLabelProps={{
|
||||||
|
shrink: true,
|
||||||
|
}}
|
||||||
|
|
||||||
|
|
||||||
|
className="disabled_style"
|
||||||
|
onChange={(e) => {
|
||||||
|
change_champs_spec_handle_stagiaire(e.target.value);
|
||||||
|
setparticipant_data_changed("1");
|
||||||
|
}}
|
||||||
|
//onChange={change_champs_spec_handle}
|
||||||
|
|
||||||
|
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
))}
|
||||||
|
|
||||||
|
<br />
|
||||||
|
|
||||||
|
</div>
|
||||||
|
{/* -- end champs specifiques **/}
|
||||||
|
|
||||||
<div className="div_row" style={{ "border": "None" }}>
|
<div className="div_row" style={{ "border": "None" }}>
|
||||||
|
|
||||||
|
@ -7369,9 +7791,9 @@ const DisplayPartnerSession = (props) => {
|
||||||
}}
|
}}
|
||||||
disabled={false}
|
disabled={false}
|
||||||
className="disabled_style enable_style"
|
className="disabled_style enable_style"
|
||||||
value={p_one_status_part}
|
value={p_one_email_part}
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
setp_one_status_part(e.target.value);
|
setp_one_email_part(e.target.value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
@ -7413,7 +7835,7 @@ const DisplayPartnerSession = (props) => {
|
||||||
disabled={false}
|
disabled={false}
|
||||||
className="disabled_style enable_style"
|
className="disabled_style enable_style"
|
||||||
>
|
>
|
||||||
{status_inscription.map((option) => (
|
{status_inscription_add.map((option) => (
|
||||||
<MenuItem key={option.value} value={option.value} style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%", "fontSize": "12px" }}>
|
<MenuItem key={option.value} value={option.value} style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%", "fontSize": "12px" }}>
|
||||||
{option.label} <br />
|
{option.label} <br />
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
|
@ -7421,7 +7843,76 @@ const DisplayPartnerSession = (props) => {
|
||||||
</TextField>
|
</TextField>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div className="session_caract"> Client <br />
|
||||||
|
<TextField
|
||||||
|
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||||
|
required
|
||||||
|
name="one_detail_client_rattachement"
|
||||||
|
id="one_detail_client_rattachement"
|
||||||
|
select
|
||||||
|
InputLabelProps={{
|
||||||
|
shrink: true,
|
||||||
|
}}
|
||||||
|
disabled={false}
|
||||||
|
className="disabled_style"
|
||||||
|
value={p_one_detail_client_rattachement_nom}
|
||||||
|
onChange={(e) => {
|
||||||
|
setp_one_detail_client_rattachement_id(e.target.value);
|
||||||
|
setp_one_detail_client_rattachement_nom(e.target.value);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
>
|
||||||
|
{Get_List_Partner_Clients_result &&
|
||||||
|
Get_List_Partner_Clients_result.map((myclient) => (
|
||||||
|
<MenuItem key={JSON.parse(myclient)._id} value={JSON.parse(myclient)._id}
|
||||||
|
style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%", "fontSize": "12px" }}>
|
||||||
|
{JSON.parse(myclient).nom}
|
||||||
|
|
||||||
|
</MenuItem>
|
||||||
|
))}
|
||||||
|
</TextField>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* -- debut champs specifiques **/}
|
||||||
|
<div className="div_row" style={{ "border": 'none' }}>
|
||||||
|
<hr />
|
||||||
|
</div>
|
||||||
|
<div className="div_row" style={{ "padding": "5px", "border": 'none' }}> Vos champs spécifiques<br />
|
||||||
|
|
||||||
|
{rows_champs_specifics_stagiaire &&
|
||||||
|
rows_champs_specifics_stagiaire.map((champ_spec) => (
|
||||||
|
|
||||||
|
<div className="session_caract"> {JSON.parse(champ_spec).field_label} <br />
|
||||||
|
|
||||||
|
<TextField
|
||||||
|
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||||
|
required
|
||||||
|
name={JSON.parse(champ_spec).field_name}
|
||||||
|
id={JSON.parse(champ_spec).field_name}
|
||||||
|
|
||||||
|
InputLabelProps={{
|
||||||
|
shrink: true,
|
||||||
|
}}
|
||||||
|
|
||||||
|
|
||||||
|
className="disabled_style"
|
||||||
|
onChange={(e) => {
|
||||||
|
change_champs_spec_handle_stagiaire(e.target.value);
|
||||||
|
setparticipant_data_changed("1");
|
||||||
|
}}
|
||||||
|
//onChange={change_champs_spec_handle}
|
||||||
|
|
||||||
|
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
))}
|
||||||
|
|
||||||
|
<br />
|
||||||
|
|
||||||
|
</div>
|
||||||
|
{/* -- end champs specifiques **/}
|
||||||
|
|
||||||
<div className="div_row" style={{ "border": "None" }}>
|
<div className="div_row" style={{ "border": "None" }}>
|
||||||
|
|
||||||
|
@ -8063,6 +8554,47 @@ const DisplayPartnerSession = (props) => {
|
||||||
/>
|
/>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{/* -- debut champs specifiques **/}
|
||||||
|
<div className="div_row" style={{ "border": 'none' }}>
|
||||||
|
<hr />
|
||||||
|
</div>
|
||||||
|
<div className="div_row" style={{ "padding": "5px", "border": 'none' }}> Vos champs spécifiques<br />
|
||||||
|
|
||||||
|
{rows_champs_specifics_stagiaire &&
|
||||||
|
rows_champs_specifics_stagiaire.map((champ_spec) => (
|
||||||
|
|
||||||
|
<div className="session_caract"> {JSON.parse(champ_spec).field_label} <br />
|
||||||
|
|
||||||
|
<TextField
|
||||||
|
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||||
|
required
|
||||||
|
name={JSON.parse(champ_spec).field_name}
|
||||||
|
id={JSON.parse(champ_spec).field_name}
|
||||||
|
|
||||||
|
InputLabelProps={{
|
||||||
|
shrink: true,
|
||||||
|
}}
|
||||||
|
|
||||||
|
|
||||||
|
className="disabled_style"
|
||||||
|
onChange={(e) => {
|
||||||
|
change_champs_spec_handle_stagiaire(e.target.value);
|
||||||
|
setparticipant_data_changed("1");
|
||||||
|
}}
|
||||||
|
//onChange={change_champs_spec_handle}
|
||||||
|
|
||||||
|
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
))}
|
||||||
|
|
||||||
|
<br />
|
||||||
|
|
||||||
|
</div>
|
||||||
|
{/* -- end champs specifiques **/}
|
||||||
|
|
||||||
|
|
||||||
<div className="div_row">
|
<div className="div_row">
|
||||||
<div className="div_row" style={{ "border": "None" }}>
|
<div className="div_row" style={{ "border": "None" }}>
|
||||||
|
|
||||||
|
|
|
@ -2570,7 +2570,7 @@ const DisplayPartnerStagiaires = (props) => {
|
||||||
|
|
||||||
form.append("_id", selected_id);
|
form.append("_id", selected_id);
|
||||||
if (p_detail_client_rattachement_nom)
|
if (p_detail_client_rattachement_nom)
|
||||||
form.append("client_rattachement_id", p_detail_client_rattachement_nom);
|
form.append("client_rattachement_id", p_detail_client_rattachement_id);
|
||||||
else
|
else
|
||||||
form.append("client_rattachement_id", "");
|
form.append("client_rattachement_id", "");
|
||||||
|
|
||||||
|
|
|
@ -234,12 +234,12 @@ const DistplayPartnerTraningsPage = (props) => {
|
||||||
{ field: 'lms_class_code', headerName: 'lms_class_code', hide: true },
|
{ field: 'lms_class_code', headerName: 'lms_class_code', hide: true },
|
||||||
{ field: 'zone_diffusion', headerName: 'zone_diffusion', hide: true },
|
{ field: 'zone_diffusion', headerName: 'zone_diffusion', hide: true },
|
||||||
{ field: 'internal_url', headerName: 'internal_url', hide: true },
|
{ field: 'internal_url', headerName: 'internal_url', hide: true },
|
||||||
{ field: 'external_code', headerName: 'Code Formation', flex:1, hideable: false, resizable: true },
|
{ field: 'external_code', headerName: 'Code Formation', flex: 1, hideable: false, resizable: true },
|
||||||
{ field: 'title', headerName: 'Titre', flex: 1, hideable: false, },
|
{ field: 'title', headerName: 'Titre', flex: 1, hideable: false, },
|
||||||
{ field: 'domain', headerName: 'Domaine', width: datagrid_columns_size_model1, hideable: true, },
|
{ field: 'domain', headerName: 'Domaine', width: datagrid_columns_size_model1, hideable: true, },
|
||||||
{ field: 'metier', headerName: 'Métier', width: datagrid_columns_size_model1, hideable: true, hide: true },
|
{ field: 'metier', headerName: 'Métier', width: datagrid_columns_size_model1, hideable: true, hide: true },
|
||||||
{ field: 'url', headerName: 'lien', width: datagrid_columns_size_model1, hideable: true, hide: true },
|
{ field: 'url', headerName: 'lien', width: datagrid_columns_size_model1, hideable: true, hide: true },
|
||||||
{ field: 'description', headerName: 'Description', hide: true, resizable: true, with:1 },
|
{ field: 'description', headerName: 'Description', hide: true, resizable: true, with: 1 },
|
||||||
|
|
||||||
{ field: 'price', headerName: 'Prix', width: datagrid_columns_size_model2, align: "center", resizable: true, hide: ismobilephone_columns_hide },
|
{ field: 'price', headerName: 'Prix', width: datagrid_columns_size_model2, align: "center", resizable: true, hide: ismobilephone_columns_hide },
|
||||||
{
|
{
|
||||||
|
@ -309,24 +309,24 @@ const DistplayPartnerTraningsPage = (props) => {
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
field: "push_to_lms", headerName: 'E-learning Creation' , width: 150,
|
field: "push_to_lms", headerName: 'E-learning Creation', width: 150,
|
||||||
renderCell: (cellValues) => {
|
renderCell: (cellValues) => {
|
||||||
return (
|
return (
|
||||||
<nav style={{ "textAlign":"center"}}>
|
<nav style={{ "textAlign": "center" }}>
|
||||||
<Popup
|
<Popup
|
||||||
trigger={
|
trigger={
|
||||||
<Button style={{ "marginLeft": "auto", "marginRight": "auto", "cursor": "pointer" , "textAlign":"center"}}
|
<Button style={{ "marginLeft": "auto", "marginRight": "auto", "cursor": "pointer", "textAlign": "center" }}
|
||||||
|
|
||||||
onClick={(event) => {
|
onClick={(event) => {
|
||||||
handlepush_to_lms(event, cellValues);
|
handlepush_to_lms(event, cellValues);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|
||||||
{cellValues.row.lms_class_code && String(cellValues.row.lms_class_code).length > 2 && <CiFileOff />}
|
{cellValues.row.lms_class_code && String(cellValues.row.lms_class_code).length > 2 && <CiFileOff />}
|
||||||
{cellValues.row.lms_class_code && String(cellValues.row.lms_class_code).length <= 2 && <CiDesktop />}
|
{cellValues.row.lms_class_code && String(cellValues.row.lms_class_code).length <= 2 && <CiDesktop />}
|
||||||
{!cellValues.row.lms_class_code && <CiDesktop />}
|
{!cellValues.row.lms_class_code && <CiDesktop />}
|
||||||
|
|
||||||
</Button>}
|
</Button>}
|
||||||
|
|
||||||
modal
|
modal
|
||||||
nested
|
nested
|
||||||
|
@ -779,8 +779,52 @@ const DistplayPartnerTraningsPage = (props) => {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const [rows_champs_specifics, setrows_champs_specifics] = useState([]);
|
||||||
|
|
||||||
|
const [Get_Partner_Object_Specific_Fields_api, setGet_Partner_Object_Specific_Fields_api] = useState();
|
||||||
|
const [Get_Partner_Object_Specific_Fields_message, setGet_Partner_Object_Specific_Fields_message] = useState();
|
||||||
|
const [Get_Partner_Object_Specific_Fields_result, setGet_Partner_Object_Specific_Fields_result] = useState();
|
||||||
|
function Get_Partner_Object_Specific_Fields(local_collection_obj_metier) {
|
||||||
|
|
||||||
|
var form = new FormData();
|
||||||
|
const stored_cookie = getCookie('tokenmysypart');
|
||||||
|
form.append("token", stored_cookie);
|
||||||
|
form.append("object_name", local_collection_obj_metier);
|
||||||
|
|
||||||
|
var myurl = process.env.REACT_APP_API_URL + "myclass/api/Get_Partner_Object_Specific_Valide_Displayed_Fields/";
|
||||||
|
|
||||||
|
axios.post(myurl, form).then(res => {
|
||||||
|
|
||||||
|
if (String(res.data.status) === String("true")) {
|
||||||
|
//console.log(" In Get_Partner_Object_Specific_Fields res.data.status = " + res.data.status);
|
||||||
|
//console.log(" In Get_Partner_Object_Specific_Fields res.data.message r_class = " + res.data.message);
|
||||||
|
|
||||||
|
setGet_Partner_Object_Specific_Fields_api("true");
|
||||||
|
setGet_Partner_Object_Specific_Fields_result(res.data.message);
|
||||||
|
|
||||||
|
|
||||||
|
setrows_champs_specifics(res.data.message);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
setGet_Partner_Object_Specific_Fields_api("false");
|
||||||
|
setGet_Partner_Object_Specific_Fields_message(res.data.message);
|
||||||
|
alert(res.data.message)
|
||||||
|
}
|
||||||
|
|
||||||
|
}).catch((error) => {
|
||||||
|
console.warn('Not good man :( Get_Partner_Object_Specific_Fields = ', error);
|
||||||
|
setGet_Partner_Object_Specific_Fields_api("false");
|
||||||
|
alert(" Impossible de recuperer la liste des collection et champs personnalisables");
|
||||||
|
//setmyApimyApiMessage("")
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
const [ismobilephone, setismobilephone] = useState();
|
const [ismobilephone, setismobilephone] = useState();
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
Get_Partner_Object_Specific_Fields("myclass");
|
||||||
|
|
||||||
//GetAllClass();
|
//GetAllClass();
|
||||||
GetAllClass_new();
|
GetAllClass_new();
|
||||||
window.scrollTo({
|
window.scrollTo({
|
||||||
|
@ -972,8 +1016,8 @@ const DistplayPartnerTraningsPage = (props) => {
|
||||||
const value = event.target.value;
|
const value = event.target.value;
|
||||||
|
|
||||||
|
|
||||||
if (String(value) === "publier" || String(value) === "depublier" ||
|
if (String(value) === "publier" || String(value) === "depublier" ||
|
||||||
String(value) === "desactiver" || String(value) === "supprimer") {
|
String(value) === "desactiver" || String(value) === "supprimer") {
|
||||||
setactionmass_ftion_val(value);
|
setactionmass_ftion_val(value);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -1046,7 +1090,7 @@ const DistplayPartnerTraningsPage = (props) => {
|
||||||
var form = new FormData();
|
var form = new FormData();
|
||||||
//form.append("token","K3cw63eKokKSbV4spjQ48SUNnfy80yrXfA");
|
//form.append("token","K3cw63eKokKSbV4spjQ48SUNnfy80yrXfA");
|
||||||
|
|
||||||
// console.log(" #### local_liste_class = ", local_liste_class)
|
// console.log(" #### local_liste_class = ", local_liste_class)
|
||||||
|
|
||||||
const stored_cookie = getCookie('tokenmysypart');
|
const stored_cookie = getCookie('tokenmysypart');
|
||||||
form.append("token", stored_cookie);
|
form.append("token", stored_cookie);
|
||||||
|
@ -1096,7 +1140,7 @@ const DistplayPartnerTraningsPage = (props) => {
|
||||||
<div className='detail_training'>
|
<div className='detail_training'>
|
||||||
<TrainingForm mytrainingclass={{
|
<TrainingForm mytrainingclass={{
|
||||||
'ref': reftrainingtoupdate, 'class_external_code': externalcodetraining_toupdate
|
'ref': reftrainingtoupdate, 'class_external_code': externalcodetraining_toupdate
|
||||||
}} ispending={props.ispending} currentpack={props.currentpack} closeTrainingForm={closeTrainingForm} />
|
}} ispending={props.ispending} currentpack={props.currentpack} closeTrainingForm={closeTrainingForm} rows_champs_specifics={rows_champs_specifics} />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
@ -1463,10 +1507,10 @@ const DistplayPartnerTraningsPage = (props) => {
|
||||||
value={actionmass_ftion_val}
|
value={actionmass_ftion_val}
|
||||||
onChange={actionmass_ftion}
|
onChange={actionmass_ftion}
|
||||||
>
|
>
|
||||||
<MenuItem value="" style={{ "paddingLeft": "5px", "textAlign": "left", "width":"100%" }}>Action </MenuItem>
|
<MenuItem value="" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }}>Action </MenuItem>
|
||||||
<MenuItem value="publier" style={{ "paddingLeft": "5px", "textAlign": "left", "width":"100%" }}>Publier </MenuItem>
|
<MenuItem value="publier" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }}>Publier </MenuItem>
|
||||||
<MenuItem value="depublier" style={{ "paddingLeft": "5px", "textAlign": "left", "width":"100%" }}>Dépublier </MenuItem>
|
<MenuItem value="depublier" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }}>Dépublier </MenuItem>
|
||||||
<MenuItem value="supprimer" style={{ "paddingLeft": "5px", "textAlign": "left", "width":"100%" }}>Supprimer </MenuItem>
|
<MenuItem value="supprimer" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }}>Supprimer </MenuItem>
|
||||||
|
|
||||||
</TextField>
|
</TextField>
|
||||||
|
|
||||||
|
@ -1493,7 +1537,7 @@ const DistplayPartnerTraningsPage = (props) => {
|
||||||
{' '}
|
{' '}
|
||||||
|
|
||||||
<font color="red"> Confirmer l'action <b> {actionmass_ftion_val} </b> en masse pour {selectionModel.length} lignes.
|
<font color="red"> Confirmer l'action <b> {actionmass_ftion_val} </b> en masse pour {selectionModel.length} lignes.
|
||||||
</font>
|
</font>
|
||||||
</div>
|
</div>
|
||||||
<div className="gest_actions">
|
<div className="gest_actions">
|
||||||
<div style={{ "width": "45%", "float": "left" }}>
|
<div style={{ "width": "45%", "float": "left" }}>
|
||||||
|
|
|
@ -5087,13 +5087,24 @@ function GestionAdministrative(props) {
|
||||||
document.getElementsByName("detail_employeur")[0].disabled = false;
|
document.getElementsByName("detail_employeur")[0].disabled = false;
|
||||||
document.getElementsByName("detail_employeur")[0].style.backgroundColor = "#FFFFFF";
|
document.getElementsByName("detail_employeur")[0].style.backgroundColor = "#FFFFFF";
|
||||||
|
|
||||||
|
|
||||||
|
// Pour les champs spécifiques
|
||||||
|
for (let i = 0; i < rows_champs_specifics_stagiaire.length; i++) {
|
||||||
|
|
||||||
|
var field_name = JSON.parse(rows_champs_specifics_stagiaire[i]).field_name;
|
||||||
|
|
||||||
|
if (document.getElementsByName(String(field_name))[0]) {
|
||||||
|
document.getElementsByName(String(field_name))[0].disabled = false;
|
||||||
|
document.getElementsByName(String(field_name))[0].style.backgroundColor = "#FFFFFF";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function disableAttendeeDetailFields() {
|
function disableAttendeeDetailFields() {
|
||||||
setparticipant_data_edit_mode("0");
|
setparticipant_data_edit_mode("0");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
document.getElementsByName("detail_session_class")[0].disabled = true;
|
document.getElementsByName("detail_session_class")[0].disabled = true;
|
||||||
document.getElementsByName("detail_session_class")[0].style.backgroundColor = "#ECEFF1";
|
document.getElementsByName("detail_session_class")[0].style.backgroundColor = "#ECEFF1";
|
||||||
|
|
||||||
|
@ -5153,6 +5164,17 @@ function GestionAdministrative(props) {
|
||||||
|
|
||||||
document.getElementsByName("certif_date")[0].disabled = true;
|
document.getElementsByName("certif_date")[0].disabled = true;
|
||||||
document.getElementsByName("certif_date")[0].style.backgroundColor = "#ECEFF1";
|
document.getElementsByName("certif_date")[0].style.backgroundColor = "#ECEFF1";
|
||||||
|
|
||||||
|
// Pour les champs spécifiques
|
||||||
|
for (let i = 0; i < rows_champs_specifics_stagiaire.length; i++) {
|
||||||
|
|
||||||
|
var field_name = JSON.parse(rows_champs_specifics_stagiaire[i]).field_name;
|
||||||
|
|
||||||
|
if (document.getElementsByName(String(field_name))[0]) {
|
||||||
|
document.getElementsByName(String(field_name))[0].disabled = true;
|
||||||
|
document.getElementsByName(String(field_name))[0].style.backgroundColor = "#ECEFF1";
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function AnnuleAttendeeDetailFields() {
|
function AnnuleAttendeeDetailFields() {
|
||||||
|
@ -5843,8 +5865,6 @@ Update du 22/10/2023 - Gestion des champs spécifiques ajoutés par le partenair
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const spec_field_updated_values_stagiaire = []
|
const spec_field_updated_values_stagiaire = []
|
||||||
const [spec_field_updated_values_hooks_stagiaire, setspec_field_updated_values_hooks_stagiaire] = useState([]);
|
const [spec_field_updated_values_hooks_stagiaire, setspec_field_updated_values_hooks_stagiaire] = useState([]);
|
||||||
|
|
||||||
|
@ -5861,7 +5881,7 @@ Update du 22/10/2023 - Gestion des champs spécifiques ajoutés par le partenair
|
||||||
if (document.getElementsByName(String(field_name))[0]) {
|
if (document.getElementsByName(String(field_name))[0]) {
|
||||||
|
|
||||||
var field_value = document.getElementsByName(String(field_name))[0].value;
|
var field_value = document.getElementsByName(String(field_name))[0].value;
|
||||||
var new_val = { 'field_name': field_name, 'field_value': field_value, 'field_type': field_type, 'field_label': field_label, 'is_mandatory': is_mandatory, 'is_mandatory':is_mandatory }
|
var new_val = { 'field_name': field_name, 'field_value': field_value, 'field_type': field_type, 'field_label': field_label, 'is_mandatory': is_mandatory, 'is_mandatory': is_mandatory }
|
||||||
var johnIndex = findIndexByProperty(spec_field_updated_values_stagiaire, 'field_name', field_name);
|
var johnIndex = findIndexByProperty(spec_field_updated_values_stagiaire, 'field_name', field_name);
|
||||||
if (johnIndex > -1) {
|
if (johnIndex > -1) {
|
||||||
spec_field_updated_values_stagiaire[johnIndex] = new_val;
|
spec_field_updated_values_stagiaire[johnIndex] = new_val;
|
||||||
|
@ -5878,10 +5898,6 @@ Update du 22/10/2023 - Gestion des champs spécifiques ajoutés par le partenair
|
||||||
//console.log(" OUTT spec_field_updated_values = ", spec_field_updated_values);
|
//console.log(" OUTT spec_field_updated_values = ", spec_field_updated_values);
|
||||||
setspec_field_updated_values_hooks_stagiaire(spec_field_updated_values_stagiaire)
|
setspec_field_updated_values_hooks_stagiaire(spec_field_updated_values_stagiaire)
|
||||||
}
|
}
|
||||||
// -- end champs specifiques
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -587,7 +587,7 @@
|
||||||
border: none;
|
border: none;
|
||||||
background: #F8F9F9;
|
background: #F8F9F9;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
margin-top: 10rem;
|
margin-top: 11rem;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1148,7 +1148,7 @@
|
||||||
border: none;
|
border: none;
|
||||||
background: #F8F9F9;
|
background: #F8F9F9;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
margin-top: 10rem;
|
margin-top: 11rem;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1630,7 +1630,7 @@
|
||||||
border: none;
|
border: none;
|
||||||
background: #F8F9F9;
|
background: #F8F9F9;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
margin-top: 5rem;
|
margin-top: 6rem;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2199,7 +2199,7 @@
|
||||||
border: none;
|
border: none;
|
||||||
background: #F8F9F9;
|
background: #F8F9F9;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
margin-top: 5rem;
|
margin-top: 6rem;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue