Type apprenant
@@ -12241,6 +12295,7 @@ const DisplayPartnerSession = (props) => {
amount: JSON.parse(item).price,
opco: JSON.parse(item).opco,
modefinancement: JSON.parse(item).modefinancement,
+ civilite: JSON.parse(item).civilite,
}
))}
@@ -12490,36 +12545,28 @@ const DisplayPartnerSession = (props) => {
{String(participant_data_edit_mode) === "1" &&
Client
- {
+ if (value && value._id) {
+ setp_detail_client_rattachement_id(value._id);
+ setp_detail_client_rattachement_nom(value.nom);
+ setparticipant_data_changed("1");
+ Dialog_1_handle_change_participant_session(" Attention, vous allez modifier le client de rattachement du participant");
+
+
+ }
+ }}
value={p_detail_client_rattachement_nom}
- onChange={(e) => {
- setp_detail_client_rattachement_id(e.target.value);
- //setp_detail_client_rattachement_nom(e.target.value);
- setparticipant_data_changed("1");
- Dialog_1_handle_change_participant_session(" Attention, vous allez modifier le client de rattachement du participant");
- }
- }
- >
- {Get_List_Partner_Clients_result &&
- Get_List_Partner_Clients_result.map((myclient) => (
-
- ))}
-
}
{String(participant_data_edit_mode) !== "1" &&
Client
diff --git a/src/components/DisplayPartnerStagiaires.js b/src/components/DisplayPartnerStagiaires.js
index d93ef77..3e8feec 100644
--- a/src/components/DisplayPartnerStagiaires.js
+++ b/src/components/DisplayPartnerStagiaires.js
@@ -89,6 +89,7 @@ const DisplayPartnerStagiaires = (props) => {
{ field: 'id', headerName: 'id', hide: true },
{ field: 'class_internal_url', headerName: 'class_internal_url', hide: true, editable: false },
+ { field: 'civilite', headerName: 'Civ.', minWidth: 70, flex: 1, maxWidth: 100, hide: false, editable: false, editable: false },
{ field: 'nom', headerName: 'Nom', minWidth: 150, flex: 1, hide: false, editable: false, editable: false },
{ field: 'prenom', headerName: 'Prénom', minWidth: 150, flex: 1, hide: false, editable: false },
@@ -583,6 +584,10 @@ const DisplayPartnerStagiaires = (props) => {
setDeleteStagiaireData_result(res.data.message);
Getall_TrainingParticipant();
+ setaddOneParticipant('');
+ setdisplay_detail_stagiaire('');
+ setselected_code_session('');
+ setsubmenu('');
alert(" La mise à jour été correctement faite.")
}
@@ -1028,6 +1033,11 @@ const DisplayPartnerStagiaires = (props) => {
if (document.getElementsByName("detail_session_class") && document.getElementsByName("detail_session_class")[0])
document.getElementsByName("detail_session_class")[0].value = "";
+
+ if (document.getElementsByName("detail_civilite") && document.getElementsByName("detail_nom")[0])
+ document.getElementsByName("detail_civilite")[0].value = "";
+
+
if (document.getElementsByName("detail_nom") && document.getElementsByName("detail_nom")[0])
document.getElementsByName("detail_nom")[0].value = "";
@@ -1076,6 +1086,7 @@ const DisplayPartnerStagiaires = (props) => {
if (document.getElementsByName("certif_date") && document.getElementsByName("certif_date")[0])
document.getElementsByName("certif_date")[0].value = "";
+ setp_detail_civilite();
setp_detail_nom();
setp_detail_prenom();
setp_detail_mail();
@@ -1448,6 +1459,11 @@ const DisplayPartnerStagiaires = (props) => {
}
+ if (document.getElementsByName("detail_civilite")[0]) {
+ document.getElementsByName("detail_civilite")[0].disabled = true;
+ document.getElementsByName("detail_civilite")[0].style.backgroundColor = "#ECEFF1";
+ }
+
if (document.getElementsByName("detail_nom")[0]) {
document.getElementsByName("detail_nom")[0].disabled = true;
document.getElementsByName("detail_nom")[0].style.backgroundColor = "#ECEFF1";
@@ -2205,7 +2221,7 @@ const DisplayPartnerStagiaires = (props) => {
];
-
+ const [p_detail_civilite, setp_detail_civilite] = useState();
const [p_detail_nom, setp_detail_nom] = useState();
const [p_detail_prenom, setp_detail_prenom] = useState();
const [p_detail_mail, setp_detail_mail] = useState();
@@ -2257,6 +2273,7 @@ const DisplayPartnerStagiaires = (props) => {
//---
+ const [p_one_civilite_part, setp_one_civilite_part] = useState();
const [p_one_formation, setp_one_formation] = useState();
const [p_one_detail_session_class, setp_one_detail_session_class] = useState();
const [p_one_nom_part, setp_one_nom_part] = useState();
@@ -2397,9 +2414,16 @@ const DisplayPartnerStagiaires = (props) => {
}
+ if (mylocalattendee.civilite)
+ setp_detail_civilite(mylocalattendee.civilite);
+ else
+ setp_detail_civilite("");
+
+
if (mylocalattendee.nom)
setp_detail_nom(mylocalattendee.nom);
+
if (mylocalattendee.apprenant_id)
setp_detail_apprenant_id(mylocalattendee.apprenant_id);
else
@@ -2741,7 +2765,12 @@ const DisplayPartnerStagiaires = (props) => {
var nb_participant = "0";
var prix_session;
+
+ if (!p_one_civilite_part || p_one_civilite_part.trim() == "") {
+ alert(" Vous devez saisir la civilité du participant");
+ return;
+ }
if (!p_one_nom_part || p_one_nom_part.trim() == "") {
alert(" Vous devez saisir le nom du participant");
@@ -2785,11 +2814,17 @@ const DisplayPartnerStagiaires = (props) => {
form.append("token", stored_cookie);
form.append("class_internal_url", p_one_formation);
form.append("session_id", p_one_detail_session_class);
+ form.append("civilite", p_one_civilite_part.trim());
form.append("nom", p_one_nom_part.trim());
form.append("prenom", p_one_prenom_part.trim());
form.append("email", p_one_email_part.trim());
form.append("telephone", p_one_phone_part.trim());
+ if (String(p_one_civilite_part).trim().length == 0) {
+ alert("La civilité est invalide.");
+ return;
+ }
+
if (String(p_one_nom_part).trim().length < 2) {
alert("Le nom est invalide.");
return;
@@ -2937,30 +2972,38 @@ const DisplayPartnerStagiaires = (props) => {
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", p_detail_session_class_id);
+ form.append("civilite", p_detail_civilite);
form.append("nom", p_detail_nom);
form.append("prenom", p_detail_prenom);
form.append("email", p_detail_mail);
form.append("telephone", p_detail_tel);
- if (String(p_detail_nom).trim().length < 2) {
+ if (!p_detail_nom || String(p_detail_nom).trim().length < 2) {
alert("Le nom est invalide.");
return;
}
- if (String(p_detail_prenom).trim().length < 2) {
+ if (!p_detail_prenom || String(p_detail_prenom).trim().length < 2) {
alert("Le prenom est invalide.");
return;
}
- if (String(p_detail_tel).trim().length < 2) {
+ if (!p_detail_civilite || String(p_detail_civilite).trim().length < 2) {
+ alert("La civilité est invalide.");
+ return;
+ }
+
+ if (!p_detail_tel || String(p_detail_tel).trim().length < 2) {
alert("Le numéro de téléphone est invalide.");
return;
}
+
var validRegex = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/;
if (!p_detail_mail.trim().match(validRegex)) {
alert("L'adresse email est invalide.");
@@ -3134,6 +3177,7 @@ const DisplayPartnerStagiaires = (props) => {
+ const [New_Get_List_Partner_Clients_result, setNew_Get_List_Partner_Clients_result] = useState([]);
const [Get_List_Partner_Clients_api, setGet_List_Partner_Clients_api] = useState();
const [Get_List_Partner_Clients_message, setGet_List_Partner_Clients_message] = useState();
@@ -3155,6 +3199,30 @@ const DisplayPartnerStagiaires = (props) => {
if (String(res.data.status) === String("true")) {
setGet_List_Partner_Clients_api("true");
setGet_List_Partner_Clients_result(res.data.message);
+
+ var new_data2 = [];
+ const new_data = res.data.message.map((x) => {
+
+ //---
+ var localid = JSON.parse(x).id;
+ var local_id = JSON.parse(x)._id;
+ var local_nom = JSON.parse(x).nom;
+ var local_raison_sociale = JSON.parse(x).raison_sociale;
+
+ //---
+ var node = {
+ "_id": local_id,
+ "id": localid,
+ "label": local_nom,
+ "nom": local_nom,
+ "raison_sociale": local_raison_sociale,
+
+ };
+ new_data2.push(node);
+ });
+
+ if (new_data2.length > 0)
+ setNew_Get_List_Partner_Clients_result(new_data2);
}
else if (String(res.data.status) === String("Err_Connexion")) {
alert('Erreur: ' + res.data.message);
@@ -6016,6 +6084,7 @@ const DisplayPartnerStagiaires = (props) => {
date_debut: JSON.parse(item).date_du,
date_fin: JSON.parse(item).date_au,
class_internal_url: JSON.parse(item).class_internal_url,
+ civilite: JSON.parse(item).civilite,
}
))}
@@ -6352,6 +6421,33 @@ const DisplayPartnerStagiaires = (props) => {
*/}
+
Civilité
+ {
+ setp_one_civilite_part(e.target.value);
+
+ }
+ }
+
+ >
+
+
+
+
+
+
Nom
{
-
Client
-
Client a
+
+ {
- setp_one_detail_client_rattachement_id(e.target.value);
- }
+ options={New_Get_List_Partner_Clients_result}
+ onChange={(event, value) => {
+ if (value && value._id) {
+ setp_one_detail_client_rattachement_id(value._id);
+ setp_one_detail_client_rattachement_nom(value.nom);
+
+ }
+ }}
+
+ renderInput={(params) =>
}
+ />
- >
-
- {Get_List_Partner_Clients_result &&
- Get_List_Partner_Clients_result.map((myclient) => (
-
- ))}
-
-
Type apprenant
@@ -6858,36 +6941,30 @@ const DisplayPartnerStagiaires = (props) => {
{String(participant_data_edit_mode) === "1" &&
Client
- {
+ if (value && value._id) {
+ setp_detail_client_rattachement_id(value._id);
+ setp_detail_client_rattachement_nom(value.nom);
+
+ setparticipant_data_changed("1");
+ Dialog_1_handle_change_participant_session(" Attention, vous allez modifier le client de rattachement du participant");
+
+
+ }
}}
- disabled={false}
- className="disabled_style "
value={p_detail_client_rattachement_nom}
- onChange={(e) => {
- setp_detail_client_rattachement_id(e.target.value);
- //setp_detail_client_rattachement_nom(e.target.value);
- setparticipant_data_changed("1");
- Dialog_1_handle_change_participant_session(" Attention, vous allez modifier le client de rattachement du participant");
- }
- }
- >
- {Get_List_Partner_Clients_result &&
- Get_List_Partner_Clients_result.map((myclient) => (
-
- ))}
-
}
{String(participant_data_edit_mode) !== "1" &&
Client
@@ -7023,6 +7100,52 @@ const DisplayPartnerStagiaires = (props) => {
}
+ {String(participant_data_edit_mode) === "1" &&
Civilité
+ {
+ setp_detail_civilite(e.target.value);
+ setparticipant_data_changed("1");
+ }
+ }
+
+ >
+
+
+
+
+
}
+
+ {String(participant_data_edit_mode) !== "1" &&
Civilité
+
+
+
}
+
Nom
{
{selected_id_status && String(selected_id_status) === "1" && p_detail_apprenant_id &&
String(p_detail_apprenant_id).trim().length > 3 && }
diff --git a/src/components/DisplayPartnerTrainingsPagination.js b/src/components/DisplayPartnerTrainingsPagination.js
index 0a75fc5..3474cb5 100644
--- a/src/components/DisplayPartnerTrainingsPagination.js
+++ b/src/components/DisplayPartnerTrainingsPagination.js
@@ -1226,7 +1226,7 @@ const DistplayPartnerTraningsPage = (props) => {
- }
+ }
{createtraining &&
diff --git a/src/styles/components/_addclassmanual.scss b/src/styles/components/_addclassmanual.scss
index 671eaee..ef8b328 100644
--- a/src/styles/components/_addclassmanual.scss
+++ b/src/styles/components/_addclassmanual.scss
@@ -12,9 +12,9 @@
z-index: 1;
top: 0px;
opacity: 80%;
-}
+ }
-.spinner {
+ .spinner {
width: 20rem;
height: 10rem;
border: 8px solid;
@@ -23,16 +23,16 @@
animation: spin-anim 1.2s linear infinite;
background-color: red;
color: black;
-}
+ }
-.mysy_spinner {
+ .mysy_spinner {
border-radius: 5px;
border: 1px solid black;
opacity: 100%;
-}
+ }
- .css-1d6wzja-MuiButton-startIcon{
+ .css-1d6wzja-MuiButton-startIcon {
margin-left: 4px !important;
}
@@ -40,7 +40,7 @@
display: none !important;
}
- .css-1v4ccyo{
+ .css-1v4ccyo {
height: 3rem !important;
}
@@ -107,6 +107,7 @@
color: red;
font-style: italic;
}
+
.parter_div_filtrer_row_gauche {
float: left;
border-width: 0.1rem;
@@ -129,7 +130,7 @@
font-size: small;
cursor: pointer;
}
-
+
.disabled_style {
//background-color: #ECEFF1;
font-size: medium !important;
@@ -164,6 +165,7 @@
.css-7gyl3q-MuiButtonBase-root-MuiButton-root {
font-size: small !important;
}
+
.img_class_logo {
display: block;
width: 128px;
@@ -198,6 +200,7 @@
border-radius: 1rem;
text-align: left;
}
+
.div_row_droite_image {
float: left;
//border:0px solid black;
@@ -554,6 +557,7 @@
border-radius: 1rem;
text-align: left;
}
+
.div_row_droite_image {
float: left;
//border:0px solid black;
@@ -622,6 +626,7 @@
.bton_supprime_image_class:hover {
box-shadow: 5px 1px 5px 1px rgb(0 0 0 / 25%);
}
+
.plus_produit_desabled {
width: 100% !important;
margin-right: 0.1rem !important;
@@ -724,7 +729,7 @@
padding-left: 5px;
}
- .div_row_ch{
+ .div_row_ch {
width: 100%;
display: flex;
flex-direction: row;
@@ -739,12 +744,12 @@
}
- .row_block{
+ .row_block {
width: 50%;
}
-
- .zone_gestion_admin{
+
+ .zone_gestion_admin {
border-radius: 5rem;
font-size: small;
text-align: right;
@@ -752,10 +757,10 @@
}
- .bton_gestion_admin{
+ .bton_gestion_admin {
border-radius: 5rem;
font-size: small;
- background: #81BC3A!important;
+ background: #81BC3A !important;
text-align: right;
height: 2.5rem;
width: 80%;
@@ -763,8 +768,8 @@
}
-
- .zone_retour_liste{
+
+ .zone_retour_liste {
border-radius: 5rem;
font-size: small;
text-align: left;
@@ -772,10 +777,10 @@
}
- .bton_retour_list{
+ .bton_retour_list {
border-radius: 5rem;
font-size: small;
- background: white!important;
+ background: white !important;
text-align: left;
border: solid 1px;
height: 2.5rem;
@@ -783,7 +788,7 @@
color: black;
}
-
+
}
@media only screen and (min-width: 992px) and (max-width: 1199px) {
@@ -817,7 +822,7 @@
border-radius: 1rem;
}
-
+
.div_row_gauche {
float: left;
@@ -886,6 +891,7 @@
background-color: white;
margin-right: 5px;
}
+
.div_gauche {
float: left;
border: 1px solid black;
@@ -969,6 +975,7 @@
border-radius: 1rem;
text-align: left;
}
+
.div_row_droite_image {
float: left;
//border:0px solid black;
@@ -1140,7 +1147,7 @@
padding-left: 5px;
}
- .div_row_ch{
+ .div_row_ch {
width: 100%;
display: flex;
flex-direction: row;
@@ -1155,12 +1162,12 @@
}
- .row_block{
+ .row_block {
width: 50%;
}
-
- .zone_gestion_admin{
+
+ .zone_gestion_admin {
border-radius: 5rem;
font-size: small;
text-align: right;
@@ -1168,10 +1175,10 @@
}
- .bton_gestion_admin{
+ .bton_gestion_admin {
border-radius: 5rem;
font-size: small;
- background: #81BC3A!important;
+ background: #81BC3A !important;
text-align: right;
height: 2.5rem;
width: 60%;
@@ -1179,8 +1186,8 @@
}
-
- .zone_retour_liste{
+
+ .zone_retour_liste {
border-radius: 5rem;
font-size: small;
text-align: left;
@@ -1188,10 +1195,10 @@
}
- .bton_retour_list{
+ .bton_retour_list {
border-radius: 5rem;
font-size: small;
- background: white!important;
+ background: white !important;
text-align: left;
border: solid 1px;
height: 2.5rem;
@@ -1199,7 +1206,7 @@
color: black;
}
-
+
}
@media only screen and (min-width: 1200px) {
@@ -1241,6 +1248,7 @@
border-radius: 1rem;
text-align: left;
}
+
.div_row_droite {
float: right;
//border:0px solid black;
@@ -1387,6 +1395,7 @@
border-radius: 1rem;
text-align: left;
}
+
.div_row_droite_image {
float: left;
//border:0px solid black;
@@ -1397,7 +1406,7 @@
font-size: small;
padding-left: 0.2rem;
}
-
+
.bton_suppr2 {
background: transparent;
color: red;
@@ -1406,7 +1415,7 @@
text-align: center;
height: 2.5rem;
width: 50%;
- }
+ }
.bton_enreg2 {
border-radius: 5rem;
@@ -1538,7 +1547,7 @@
margin-bottom: 10px;
padding-top: 10px;
padding-bottom: 10px;
- }
+ }
.training_caract {
width: 30%;
@@ -1561,7 +1570,7 @@
padding-left: 5px;
}
- .div_row_ch{
+ .div_row_ch {
width: 100%;
display: flex;
flex-direction: row;
@@ -1576,12 +1585,12 @@
}
- .row_block{
+ .row_block {
width: 50%;
}
-
- .zone_gestion_admin{
+
+ .zone_gestion_admin {
border-radius: 5rem;
font-size: small;
text-align: right;
@@ -1589,10 +1598,10 @@
}
- .bton_gestion_admin{
+ .bton_gestion_admin {
border-radius: 5rem;
font-size: small;
- background: #81BC3A!important;
+ background: #81BC3A !important;
text-align: right;
height: 2.5rem;
width: 50%;
@@ -1600,8 +1609,8 @@
}
-
- .zone_retour_liste{
+
+ .zone_retour_liste {
border-radius: 5rem;
font-size: small;
text-align: left;
@@ -1609,10 +1618,10 @@
}
- .bton_retour_list{
+ .bton_retour_list {
border-radius: 5rem;
font-size: small;
- background: white!important;
+ background: white !important;
text-align: left;
border: solid 1px;
height: 2.5rem;
@@ -1620,7 +1629,16 @@
color: black;
}
-
+
+ }
+
+ .MuiOutlinedInput-root {
+ height: 3rem !important;
+ }
+
+ .MuiAutocomplete-input {
+ height: 2rem !important;
+ padding: 0px !important;
}
// - end media
@@ -1629,7 +1647,7 @@
.MuiMenuItem-root {
color: black !important;
}
-.mce-content-body{
- line-height: 1.2rem !important;
-}
+.mce-content-body {
+ line-height: 1.2rem !important;
+}
\ No newline at end of file