diff --git a/src/components/DisplayPartnerSession.js b/src/components/DisplayPartnerSession.js index 50083c8..72606e0 100644 --- a/src/components/DisplayPartnerSession.js +++ b/src/components/DisplayPartnerSession.js @@ -1761,12 +1761,12 @@ const DisplayPartnerSession = (props) => { async function submenu_historique() { setsubmenu("historique"); - // await sleep(5); + // await sleep(5); if (!edit_session_form) { desableSessionFields(); } - + if (document.getElementById("historique")) { document.getElementById("historique").style.backgroundColor = "#104277"; document.getElementById("historique").style.color = "white"; @@ -2064,8 +2064,8 @@ const DisplayPartnerSession = (props) => { var myelement; - if (document.getElementById('ajout_participant')) { - var divh = document.getElementById('ajout_participant').offsetTop; + if (document.getElementById('myRef_add_session')) { + var divh = document.getElementById('myRef_add_session').offsetTop; window.scrollTo({ top: divh, behavior: "smooth", @@ -2415,7 +2415,7 @@ const DisplayPartnerSession = (props) => { 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() == "") { alert(" Vous devez saisir l'email du participant"); return; @@ -2583,6 +2583,27 @@ const DisplayPartnerSession = (props) => { ]; + const New_status_inscription_add = [ + { "id": "0", "label": "PréInscription", "value": "0" }, + { "id": "1", "label": "Inscription", "value": "1" }, + { "id": "2", "label": "En Cours", "value": "2" }, + ] + + const New_civilite = [ + { "id": "Mme", "label": "Mme", "value": "Mme" }, + { "id": "M", "label": "M", "value": "M" }, + { "id": "Neutre", "label": "Neutre", "value": "Neutre" }, + ] + + const New_type_apprenant = [ + { "id": "0", "label": "Autre", "value": "0" }, + { "id": "1", "label": "Salariés", "value": "1" }, + { "id": "2", "label": "Apprentis", "value": "2" }, + { "id": "3", "label": "Particuliers", "value": "3" }, + { "id": "4", "label": "Rech. Emploi", "value": "4" }, + + ] + const [myinscript_status, setmyinscript_status] = useState(""); @@ -3670,6 +3691,9 @@ const DisplayPartnerSession = (props) => { function One_clearParticipantFields() { + if (document.getElementsByName("one_detail_client_rattachement")[0]) + document.getElementsByName("one_detail_client_rattachement")[0].value = ""; + if (document.getElementsByName("one_civilite_part")[0]) document.getElementsByName("one_civilite_part")[0].value = ""; @@ -3697,6 +3721,8 @@ const DisplayPartnerSession = (props) => { setp_one_naissance_part(new Date().toLocaleDateString('fr-FR')); setp_one_phone_part(); setp_one_status_part(); + setp_one_detail_client_rattachement_id(''); + setp_one_detail_client_rattachement_nom(''); @@ -8523,6 +8549,8 @@ const DisplayPartnerSession = (props) => { ] + + return (
@@ -9122,46 +9150,46 @@ const DisplayPartnerSession = (props) => {
- {String(selected_convention_type) === "email" && -
Type Document
- Type Document
+ { - setselected_convention_type(e.target.value); - } - - } - > - - Email   - PDF   - - {String(selected_convention_type) === "email" &&
+ {String(selected_convention_type) === "email" && } + }} >   Test} -
} + } {String(selected_convention_type) === "pdf" &&
Type Document
{
Ajout d'un nouveau participant à la session {selected_code_session} de la formation {selected_class_title}
Civilité
- { + if (value && value.value) { + setp_one_civilite_part(value.value); + } + }} + renderInput={(params) => + } + /> + + {/* { Neutre   - + */}
Nom
@@ -12344,7 +12389,24 @@ const DisplayPartnerSession = (props) => {
Statut Inscription
- { + if (value && value.value) { + setmyinscript_status(value.value); + } + }} + renderInput={(params) => + } + /> + + {/* { {option.label}  
))} -
+
*/}
@@ -12391,7 +12453,24 @@ const DisplayPartnerSession = (props) => {
Type apprenant
- { + if (value && value._id) { + setp_one_detail_type_apprenant(value._id); + + } + }} + + renderInput={(params) => + } + /> + + {/* { Particuliers   Rech. Emploi   - + */}
{/* -- début champs specifiques **/} @@ -12648,7 +12727,23 @@ const DisplayPartnerSession = (props) => {
Ajout d'un nouveau participant
Civilité
- { + if (value && value.value) { + setp_one_civilite_part(value.value); + } + }} + renderInput={(params) => + } + /> + + {/* { Neutre   - + */}
@@ -12854,7 +12949,24 @@ const DisplayPartnerSession = (props) => {
Ajout d'un nouveau participant a la session {selected_code_session} de la formation {selected_class_title}
Civilité
- { + if (value && value.value) { + setp_one_civilite_part(value.value); + } + }} + renderInput={(params) => + } + /> + + {/* { Neutre   - + */}
@@ -12979,7 +13091,24 @@ const DisplayPartnerSession = (props) => {
Statut Inscription
- { + if (value && value.value) { + setmyinscript_status(value.value); + + } + }} + renderInput={(params) => + } + /> + + {/* { {option.label}  
))} -
+
*/}
Client
@@ -13024,7 +13153,26 @@ const DisplayPartnerSession = (props) => {
Type apprenant
- { + if (value && value._id) { + setp_one_detail_type_apprenant(value._id); + + + } + }} + + renderInput={(params) => + } + /> + + + {/* { Particuliers   Rech. Emploi   - + */}
{/* -- début champs specifiques **/} @@ -14361,9 +14509,9 @@ const DisplayPartnerSession = (props) => { {String(submenu) === String("editique") &&
- - + +
} diff --git a/src/components/TestUrl_new.js b/src/components/TestUrl_new.js index 689b60a..b826c5b 100644 --- a/src/components/TestUrl_new.js +++ b/src/components/TestUrl_new.js @@ -607,7 +607,7 @@ const TestUrl_New = (props) => {

Module Ediditique

- +