diff --git a/src/components/DisplayPartnerSession.js b/src/components/DisplayPartnerSession.js index d5c8f5c..be174f2 100644 --- a/src/components/DisplayPartnerSession.js +++ b/src/components/DisplayPartnerSession.js @@ -4104,79 +4104,124 @@ const DisplayPartnerSession = (props) => { function disableAttendeeDetailFields() { setparticipant_data_edit_mode("0"); + if (document.getElementsByName("detail_session_class")[0]) { + document.getElementsByName("detail_session_class")[0].disabled = true; + document.getElementsByName("detail_session_class")[0].style.backgroundColor = "#ECEFF1"; + } - document.getElementsByName("detail_session_class")[0].disabled = true; - document.getElementsByName("detail_session_class")[0].style.backgroundColor = "#ECEFF1"; + if (document.getElementsByName("detail_client_rattachement")[0]) { + document.getElementsByName("detail_client_rattachement")[0].disabled = true; + document.getElementsByName("detail_client_rattachement")[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"; + } - document.getElementsByName("detail_client_rattachement")[0].disabled = true; - document.getElementsByName("detail_client_rattachement")[0].style.backgroundColor = "#ECEFF1"; - - document.getElementsByName("detail_nom")[0].disabled = true; - document.getElementsByName("detail_nom")[0].style.backgroundColor = "#ECEFF1"; - - document.getElementsByName("detail_status_inscript")[0].disabled = true; - document.getElementsByName("detail_status_inscript")[0].style.backgroundColor = "#ECEFF1"; - - document.getElementsByName("detail_opco")[0].disabled = true; - document.getElementsByName("detail_opco")[0].style.backgroundColor = "#ECEFF1"; + if (document.getElementsByName("detail_status_inscript")[0]) { + document.getElementsByName("detail_status_inscript")[0].disabled = true; + document.getElementsByName("detail_status_inscript")[0].style.backgroundColor = "#ECEFF1"; + } - document.getElementsByName("detail_prenom")[0].disabled = true; - document.getElementsByName("detail_prenom")[0].style.backgroundColor = "#ECEFF1"; + if (document.getElementsByName("detail_opco")[0]) { + document.getElementsByName("detail_opco")[0].disabled = true; + document.getElementsByName("detail_opco")[0].style.backgroundColor = "#ECEFF1"; + } - document.getElementsByName("detail_mail")[0].disabled = true; - document.getElementsByName("detail_mail")[0].style.backgroundColor = "#ECEFF1"; + if (document.getElementsByName("detail_prenom")[0]) { + document.getElementsByName("detail_prenom")[0].disabled = true; + document.getElementsByName("detail_prenom")[0].style.backgroundColor = "#ECEFF1"; + } - document.getElementsByName("detail_tel")[0].disabled = true; - document.getElementsByName("detail_tel")[0].style.backgroundColor = "#ECEFF1"; + if (document.getElementsByName("detail_mail")[0]) { + document.getElementsByName("detail_mail")[0].disabled = true; + document.getElementsByName("detail_mail")[0].style.backgroundColor = "#ECEFF1"; + } + + if (document.getElementsByName("detail_tel")[0]) { + document.getElementsByName("detail_tel")[0].disabled = true; + document.getElementsByName("detail_tel")[0].style.backgroundColor = "#ECEFF1"; + } + + if (document.getElementsByName("detail_adresse")[0]) { + document.getElementsByName("detail_adresse")[0].disabled = true; + document.getElementsByName("detail_adresse")[0].style.backgroundColor = "#ECEFF1"; + } - document.getElementsByName("detail_adresse")[0].disabled = true; - document.getElementsByName("detail_adresse")[0].style.backgroundColor = "#ECEFF1"; - - document.getElementsByName("detail_code_postal")[0].disabled = true; - document.getElementsByName("detail_code_postal")[0].style.backgroundColor = "#ECEFF1"; - - document.getElementsByName("detail_ville")[0].disabled = true; - document.getElementsByName("detail_ville")[0].style.backgroundColor = "#ECEFF1"; - - document.getElementsByName("detail_pays")[0].disabled = true; - document.getElementsByName("detail_pays")[0].style.backgroundColor = "#ECEFF1"; - - document.getElementsByName("detail_cout")[0].disabled = true; - document.getElementsByName("detail_cout")[0].style.backgroundColor = "#ECEFF1"; + if (document.getElementsByName("detail_code_postal")[0]) { + document.getElementsByName("detail_code_postal")[0].disabled = true; + document.getElementsByName("detail_code_postal")[0].style.backgroundColor = "#ECEFF1"; + } - document.getElementsByName("detail_mode_fin")[0].disabled = true; - document.getElementsByName("detail_mode_fin")[0].style.backgroundColor = "#ECEFF1"; - - document.getElementsByName("detail_employeur")[0].disabled = true; - document.getElementsByName("detail_employeur")[0].style.backgroundColor = "#ECEFF1"; - - document.getElementsByName("date_evaluation")[0].disabled = true; - document.getElementsByName("date_evaluation")[0].style.backgroundColor = "#ECEFF1"; - - document.getElementsByName("certif_date")[0].disabled = true; - document.getElementsByName("certif_date")[0].style.backgroundColor = "#ECEFF1"; - - document.getElementsByName("note_eval")[0].disabled = true; - document.getElementsByName("note_eval")[0].style.backgroundColor = "#ECEFF1"; + if (document.getElementsByName("detail_ville")[0]) { + document.getElementsByName("detail_ville")[0].disabled = true; + document.getElementsByName("detail_ville")[0].style.backgroundColor = "#ECEFF1"; + } - document.getElementsByName("date_evaluation")[0].disabled = true; - document.getElementsByName("date_evaluation")[0].style.backgroundColor = "#ECEFF1"; + if (document.getElementsByName("detail_pays")[0]) { + document.getElementsByName("detail_pays")[0].disabled = true; + document.getElementsByName("detail_pays")[0].style.backgroundColor = "#ECEFF1"; + } - document.getElementsByName("detail_incr_date")[0].disabled = true; - document.getElementsByName("detail_incr_date")[0].style.backgroundColor = "#ECEFF1"; + if (document.getElementsByName("detail_cout")[0]) { + document.getElementsByName("detail_cout")[0].disabled = true; + document.getElementsByName("detail_cout")[0].style.backgroundColor = "#ECEFF1"; + } + + if (document.getElementsByName("detail_mode_fin")[0]) { + document.getElementsByName("detail_mode_fin")[0].disabled = true; + document.getElementsByName("detail_mode_fin")[0].style.backgroundColor = "#ECEFF1"; + } - document.getElementsByName("certif_date")[0].disabled = true; - document.getElementsByName("certif_date")[0].style.backgroundColor = "#ECEFF1"; + if (document.getElementsByName("detail_employeur")[0]) { + document.getElementsByName("detail_employeur")[0].disabled = true; + document.getElementsByName("detail_employeur")[0].style.backgroundColor = "#ECEFF1"; + } + + if (document.getElementsByName("date_evaluation")[0]) { + document.getElementsByName("date_evaluation")[0].disabled = true; + document.getElementsByName("date_evaluation")[0].style.backgroundColor = "#ECEFF1"; + } + + + if (document.getElementsByName("certif_date")[0]) { + document.getElementsByName("certif_date")[0].disabled = true; + document.getElementsByName("certif_date")[0].style.backgroundColor = "#ECEFF1"; + } + + + if (document.getElementsByName("note_eval")[0]) { + document.getElementsByName("note_eval")[0].disabled = true; + document.getElementsByName("note_eval")[0].style.backgroundColor = "#ECEFF1"; + } + + if (document.getElementsByName("date_evaluation")[0]) { + document.getElementsByName("date_evaluation")[0].disabled = true; + document.getElementsByName("date_evaluation")[0].style.backgroundColor = "#ECEFF1"; + } + + if (document.getElementsByName("detail_incr_date")[0]) { + + document.getElementsByName("detail_incr_date")[0].disabled = true; + document.getElementsByName("detail_incr_date")[0].style.backgroundColor = "#ECEFF1"; + } + + if (document.getElementsByName("certif_date")[0]) { + document.getElementsByName("certif_date")[0].disabled = true; + document.getElementsByName("certif_date")[0].style.backgroundColor = "#ECEFF1"; + + } } function EnableAttendeeDetailFields() { @@ -5941,7 +5986,7 @@ const DisplayPartnerSession = (props) => { /> -
Status Inscription *
+
Statut Inscription *
{ />
-
Status Inscription *
+
Statut Inscription *
{ />
-
Status Inscription *
+
Statut Inscription *
{
} - {String(addOneParticipant) !== "1" && String(display_detail_insc) === "1" && selected_code_session &&
+ {String(addOneParticipant) !== "1" && String(display_detail_insc) === "1" && selected_code_session &&
{String(GetAttendee_api) === "true" &&
@@ -6559,7 +6604,7 @@ const DisplayPartnerSession = (props) => { {String(Resend_LMS_Credentials_api) === "false" &&
{Resend_LMS_Credentials_message}
} - +
@@ -7090,15 +7135,13 @@ const DisplayPartnerSession = (props) => {
- {String(participant_data_edit_mode) !== "1" &&
+ {String(participant_data_edit_mode) !== "1" &&
-
-   -
+
-
@@ -7290,7 +7333,7 @@ const DisplayPartnerSession = (props) => {
- diff --git a/src/components/DisplayPartnerStagiaires.js b/src/components/DisplayPartnerStagiaires.js index 93636da..a2de640 100644 --- a/src/components/DisplayPartnerStagiaires.js +++ b/src/components/DisplayPartnerStagiaires.js @@ -3547,7 +3547,7 @@ const DisplayPartnerStagiaires = (props) => { -
Status Inscription *
+
Statut Inscription *
-
Status Inscription *
+
Statut Inscription *
- Votre évaluation à bien été prise en compte. Merci. + Votre évaluation a bien été prise en compte. Merci.
} diff --git a/src/components/ResetUserPwd.js b/src/components/ResetUserPwd.js index f2e1395..315ff87 100644 --- a/src/components/ResetUserPwd.js +++ b/src/components/ResetUserPwd.js @@ -195,7 +195,7 @@ function ResetUserPwd() { setUpdateUserPwd_api("true") setupdatepwd(true); setfields1desabled(true); - alert(" le mot de passe à bien été mis à jour"); + alert(" le mot de passe a bien été mis à jour"); // history.push("/Connexion"); } else { diff --git a/src/styles/components/_displaypartnersession.scss b/src/styles/components/_displaypartnersession.scss index 144258d..afc9950 100644 --- a/src/styles/components/_displaypartnersession.scss +++ b/src/styles/components/_displaypartnersession.scss @@ -12,9 +12,9 @@ z-index: 1; top: 0px; opacity: 80%; - } - - .spinner { + } + + .spinner { width: 20rem; height: 10rem; border: 8px solid; @@ -23,14 +23,15 @@ 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%; - } - - + } + + .Mui-disabled { font-size: small !important; @@ -599,6 +600,14 @@ margin-bottom: 1rem; padding-top: 0.5rem !important; } + + .block_detail_inscrit { + border: none; + background: #F8F9F9; + padding: 5px; + margin-top: 10rem; + + } } @media only screen and (min-width: 601px) and (max-width: 991px) { @@ -1146,6 +1155,14 @@ padding-top: 0.5rem !important; } + .block_detail_inscrit { + border: none; + background: #F8F9F9; + padding: 5px; + margin-top: 10rem; + + } + } @media only screen and (min-width: 992px) and (max-width: 1199px) { @@ -1594,6 +1611,14 @@ font-weight: normal; } + .block_detail_inscrit { + border: none; + background: #F8F9F9; + padding: 5px; + margin-top: 5rem; + + } + } @media only screen and (min-width: 1200px) { @@ -2134,7 +2159,16 @@ text-align: center; } - + + + .block_detail_inscrit { + border: none; + background: #F8F9F9; + padding: 5px; + margin-top: 5rem; + + } + } // end media