<\/span>\n
\n <\/p>\n <\/div>\n <\/fieldset>\n\n
\n \n \n <\/div>\n <\/form>\n<\/div>\n","process":"\nlet _annCode = 'null';\n(async ()=>{\n let queryList;\n let formData;\n let annCode = null;\n let row = null;\n \/\/Si mode modification\n if(typeof _annCode !== 'undefined') {\n \/\/change le titre\n document.querySelector('.annonce-detail-form-title').textContent = \"Detail de l'annonce\";\n \/\/extrait les donn\u00e9es\n annCode = JSON.parse(_annCode);\n \/\/extraction des donn\u00e9es\n queryList = JSON.stringify(new Array(\n {link:\"\", column:\"code\", operation:\"=\", value:annCode},\n ));\n formData = new FormData();\n formData.append(\"queryList\", queryList);\n formData.append(\"rowsPerPage\", 10);\n await sjs.Socket.connect({\n method: 'POST',\n url: 'https:\/\/www.eminence-afrique.net\/scane\/scane\/2\/ann\/_detail_list',\n data: formData,\n })\n .then(rep => {\n return rep.json();\n })\n .then(data => {\n row = data[\"rows\"][0];\n document.querySelector(\"input[name='ann-code']\").value = annCode;\n document.querySelector(\"span[id='secteur_activite']\").textContent = row[\"secteur\"];\n document.querySelector(\"span[id='qualification']\").textContent = row[\"qualification\"];\n document.querySelector(\"span[id='profil_recherche']\").textContent = row[\"profil_recherche\"];\n document.querySelector(\"span[id='libelle']\").textContent = row[\"libelle\"];\n document.querySelector(\"span[id='date_limite']\").textContent = row[\"date_limite\"];\n document.querySelector(\"span[id='exp']\").textContent = row[\"experience_professionnel\"];\n document.querySelector(\"span[id='age_min']\").textContent = row[\"age_min\"];\n document.querySelector(\"span[id='age_max']\").textContent = row[\"age_max\"];\n document.querySelector(\"span[id='place_disponible']\").textContent = row[\"place_disponible\"];\n document.querySelector(\"span[id='disponibilite']\").textContent = row[\"disponibilite\"];\n document.querySelector(\"p[id='description']\").textContent = row[\"description\"];\n })\n .catch(e => {\n alert(e);\n })\n }\n\n \/\/VALIDATION DU FORAULAIRE\n document.querySelector(\".annonce-detail-form\").addEventListener(\"submit\", function(e){\n e.preventDefault();\n formData = new FormData(this);\n formData.append(\"ann-code\", annCode);\n let url = 'https:\/\/www.eminence-afrique.net\/scane\/scane\/2\/ann\/_init_postulate';\n sjs.Socket.connect({\n method:'POST',\n url: url,\n data: formData,\n })\n .then(rep=>{\n return rep.json();\n })\n .then(data=>{\n \/\/si aucune erreur ou undefined\n if(!data[\"error\"]){\n let postulateDlgBox = makeModalWindow(\"Postuler \u00e0 une annonce\");\n \/\/la vue\n postulateDlgBox.setContent(data[\"ui\"]).refresh().show();\n \/\/le process\n new Function(\"detailDlgBox\", \"postulateDlgBox\", \"annCode\", data[\"process\"])(\n detailDlgBox,\n postulateDlgBox,\n annCode,\n );\n }\n else {\n alert(data[\"log\"]);\n }\n });\n });\n\n \n})();\n"}