31/12/2024 - 12h30

recette2
cherif 2024-12-31 12:48:46 +01:00
parent 1040b9aa3a
commit a4e297a7db
7 changed files with 75 additions and 16 deletions

View File

@ -89,6 +89,12 @@
<priority>1.0000</priority> <priority>1.0000</priority>
</url> </url>
<url>
<loc>https://www.mysy-training.com/Display-Detail-Article/logiciel-gestion-organismes-formation-guide-complet</loc>
<lastmod>2024-12-31T12:15:41+00:00</lastmod>
<changefreq>daily</changefreq>
<priority>1.0000</priority>
</url>
<url> <url>

View File

@ -380,7 +380,7 @@ const Article = (props) => {
} }
form.append("meta_description", local_meta_description); form.append("meta_description", local_meta_description);
setLoading(true);
// console.log(" ## form = ", form); // console.log(" ## form = ", form);
var myurl = ""; var myurl = "";
@ -394,7 +394,7 @@ const Article = (props) => {
axios.post(myurl, form).then(res => { axios.post(myurl, form).then(res => {
setLoading(false);
if (String(res.data.status) === String("false")) { if (String(res.data.status) === String("false")) {
alert(res.data.message); alert(res.data.message);
} }
@ -409,6 +409,7 @@ const Article = (props) => {
} }
}).catch((error) => { }).catch((error) => {
setLoading(false);
console.warn('contact-nous Not good man :( mysearchtext = '); console.warn('contact-nous Not good man :( mysearchtext = ');
@ -477,7 +478,7 @@ const Article = (props) => {
const handleSubmission_logo = event => { const handleSubmission_logo = event => {
clear_message(); clear_message();
setis_data_changed("1");
const fileUploaded = event.target.files[0]; const fileUploaded = event.target.files[0];
let file_size = event.target.files[0].size; let file_size = event.target.files[0].size;
@ -681,6 +682,14 @@ const Article = (props) => {
} }
/***** Fin gestion de l'image de l'article */ /***** Fin gestion de l'image de l'article */
// Prevent Bootstrap dialog from blocking focusin
document.addEventListener('focusin', (e) => {
if (e.target.closest(".tox-tinymce-aux, .moxman-window, .tam-assetmanager-root") !== null) {
e.stopImmediatePropagation();
}
});
return ( return (
<div className="article"> <div className="article">
@ -875,8 +884,8 @@ const Article = (props) => {
<TextField <TextField
maxRows={4} maxRows={4}
minRows={4} minRows={3}
inputProps={{ maxLength: 154 }} inputProps={{ maxLength: 180 }}
multiline multiline
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }} sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
@ -902,7 +911,7 @@ const Article = (props) => {
<div className="div_row_dialog"> <div className="div_row_dialog">
<div className="div_row_dialog" style={{ "textAlign": 'left' }}> <div className="div_row_dialog" style={{ "textAlign": 'left' }}>
<b> Texte Article </b> <b> Texte Article o</b>
</div> </div>
<div className="div_row_dialog" > <div className="div_row_dialog" >
@ -916,13 +925,13 @@ const Article = (props) => {
value={field_texte_avis} value={field_texte_avis}
onEditorChange={(newValue, editor) => { onEditorChange={(newValue, editor) => {
setfield_texte_avis(editorRef_texte_avis.current.getContent()); setfield_texte_avis(editorRef_texte_avis.current.getContent());
setis_data_changed("1");
}} }}
init={{ init={{
resize: false, resize: false,
height: 700, height: 700,
menubar: true, menubar: true,
plugins: [ plugins: [
'advlist', 'autolink', 'lists', 'link', 'image', 'charmap', 'print', 'preview', 'anchor', 'searchreplace', 'advlist', 'autolink', 'lists', 'link', 'image', 'charmap', 'print', 'preview', 'anchor', 'searchreplace',
'visualblocks', 'code', 'fullscreen', 'insertdatetime', 'media', 'table', 'paste', 'code', 'help', 'wordcount', 'visualblocks', 'code', 'fullscreen', 'insertdatetime', 'media', 'table', 'paste', 'code', 'help', 'wordcount',
@ -943,6 +952,12 @@ const Article = (props) => {
<div className="koUpdateData" style={{ "color": "orange", "textAlign": "center" }}> /!\ Pensez à enregistrer les modifications</div> <div className="koUpdateData" style={{ "color": "orange", "textAlign": "center" }}> /!\ Pensez à enregistrer les modifications</div>
</div>} </div>}
<button onClick={(e) => {
if (document.getElementsByName('one_detail_document_principal') && document.getElementsByName('one_detail_document_principal')[0])
document.getElementsByName('one_detail_document_principal')[0].focus();
}}> editer </button>
</div> </div>

View File

@ -2107,6 +2107,13 @@ const Config_Documents = (props) => {
{ "id": "1", "label": "", "value": "1" }, // Cette ligne pour couvrir l'ajout d'une ligne de filter. C'est fait expres. { "id": "1", "label": "", "value": "1" }, // Cette ligne pour couvrir l'ajout d'une ligne de filter. C'est fait expres.
] ]
// Prevent Bootstrap dialog from blocking focusin
document.addEventListener('focusin', (e) => {
if (e.target.closest(".tox-tinymce-aux, .moxman-window, .tam-assetmanager-root") !== null) {
e.stopImmediatePropagation();
}
});
return ( return (
<div className="config_document"> <div className="config_document">
{isLoading && <div className="loader-container"> {isLoading && <div className="loader-container">
@ -2691,7 +2698,7 @@ const Config_Documents = (props) => {
<Checkbox <Checkbox
name="document_join_pdf" name="document_join_pdf"
className="disabled_style" className="disabled_style"
checked={p_detail_joint_pdf} checked={p_detail_joint_pdf}
/> />
</div>} </div>}
@ -3006,7 +3013,7 @@ const Config_Documents = (props) => {
</div> </div>
</div>} </div>}
</div>} </div>}
{String(partner_document_data_edit_mode) === "1" && <div className="div_row"> {String(partner_document_data_edit_mode) === "1" && <div className="div_row">

View File

@ -323,7 +323,7 @@ const DisplayDetailArticle_new_v2 = (props) => {
axios.post(myurl, form).then(res => { axios.post(myurl, form).then(res => {
// console.log(" In test res.data.status = " + res.data.status); // console.log(" In test res.data.status = " + res.data.status);
//console.log(" In test res.data.message = " + res.data.message); console.log(" In Display iiii res.data.message = " + res.data.message);
if (String(res.data.status) === "true") { if (String(res.data.status) === "true") {
setmyApiResponse("True"); setmyApiResponse("True");

View File

@ -779,6 +779,7 @@ const RechercheArticles_new_v2 = (props) => {
setarticle_avis_sujet(""); setarticle_avis_sujet("");
setarticle_avis_avis(""); setarticle_avis_avis("");
setis_data_changed(""); setis_data_changed("");
setarticle_avis_internal_url("");
} }
const [article_avis_date_publication, setarticle_avis_date_publication] = useState(new Date().toLocaleDateString('fr-FR')); const [article_avis_date_publication, setarticle_avis_date_publication] = useState(new Date().toLocaleDateString('fr-FR'));
@ -807,6 +808,10 @@ const RechercheArticles_new_v2 = (props) => {
form.append("qualite", " --- "); form.append("qualite", " --- ");
form.append("note", "---"); form.append("note", "---");
if( article_avis_internal_url && String(article_avis_internal_url).trim().length > 5 ){
form.append("internal_url", article_avis_internal_url);
}
if (img_img_article_file2) { if (img_img_article_file2) {
form.append('File', img_img_article_file2); form.append('File', img_img_article_file2);
form.append('img_file_name', img_img_article_file2.name); form.append('img_file_name', img_img_article_file2.name);
@ -855,8 +860,10 @@ const RechercheArticles_new_v2 = (props) => {
// console.log(" ## form = ", form); // console.log(" ## form = ", form);
var myurl = process.env.REACT_APP_API_URL + "myclass/api/add_articles_avis/"; var myurl = process.env.REACT_APP_API_URL + "myclass/api/add_articles_avis/";
axios.post(myurl, form).then(res => { setLoading(true);
axios.post(myurl, form).then(res => {
setLoading(false);
if (String(res.data.status) === String("false")) { if (String(res.data.status) === String("false")) {
alert(res.data.message); alert(res.data.message);
} }
@ -871,9 +878,8 @@ const RechercheArticles_new_v2 = (props) => {
} }
}).catch((error) => { }).catch((error) => {
setLoading(false);
console.warn('contact-nous Not good man :( mysearchtext = '); console.warn('contact-nous Not good man :( mysearchtext = ');
}) })
@ -1191,6 +1197,27 @@ const RechercheArticles_new_v2 = (props) => {
</div> </div>
</div> </div>
<div className="div_row_dialog">
<div className="div_row_dialog" style={{ "textAlign": 'left' }}>
Url souhaitée
</div>
<div className="div_row_dialog" >
<div className="div_row_dialog" style={{ "textAlign": 'left' }}>
<input
type='text'
name='name'
value={article_avis_internal_url}
onChange={(e) => {
setarticle_avis_internal_url(e.target.value);
setis_data_changed("1");
}}
className='disabled_style_width_100_percent'
></input>
</div>
</div>
</div>
<div className="div_row_dialog"> <div className="div_row_dialog">
@ -1322,8 +1349,8 @@ const RechercheArticles_new_v2 = (props) => {
<TextField <TextField
maxRows={4} maxRows={4}
minRows={4} minRows={3}
inputProps={{ maxLength: 154 }} inputProps={{ maxLength: 180 }}
multiline multiline
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }} sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}

View File

@ -806,7 +806,7 @@
} }
} }
.lire_plus { .lire_plus {
cursor: pointer; cursor: pointer;
@ -826,6 +826,9 @@
.lire_plus:hover { .lire_plus:hover {
font-style: italic; font-style: italic;
} }
.tox-dialog {
z-index: 150002 !important;
}
// end media // end media

View File

@ -2692,6 +2692,7 @@
// end media // end media
.DialogContent_width_700px { .DialogContent_width_700px {
width: 700px !important; width: 700px !important;
} }