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>
</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>

View File

@ -380,7 +380,7 @@ const Article = (props) => {
}
form.append("meta_description", local_meta_description);
setLoading(true);
// console.log(" ## form = ", form);
var myurl = "";
@ -394,7 +394,7 @@ const Article = (props) => {
axios.post(myurl, form).then(res => {
setLoading(false);
if (String(res.data.status) === String("false")) {
alert(res.data.message);
}
@ -409,6 +409,7 @@ const Article = (props) => {
}
}).catch((error) => {
setLoading(false);
console.warn('contact-nous Not good man :( mysearchtext = ');
@ -477,7 +478,7 @@ const Article = (props) => {
const handleSubmission_logo = event => {
clear_message();
setis_data_changed("1");
const fileUploaded = event.target.files[0];
let file_size = event.target.files[0].size;
@ -681,6 +682,14 @@ const Article = (props) => {
}
/***** 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 (
<div className="article">
@ -875,8 +884,8 @@ const Article = (props) => {
<TextField
maxRows={4}
minRows={4}
inputProps={{ maxLength: 154 }}
minRows={3}
inputProps={{ maxLength: 180 }}
multiline
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
@ -902,7 +911,7 @@ const Article = (props) => {
<div className="div_row_dialog">
<div className="div_row_dialog" style={{ "textAlign": 'left' }}>
<b> Texte Article </b>
<b> Texte Article o</b>
</div>
<div className="div_row_dialog" >
@ -916,13 +925,13 @@ const Article = (props) => {
value={field_texte_avis}
onEditorChange={(newValue, editor) => {
setfield_texte_avis(editorRef_texte_avis.current.getContent());
setis_data_changed("1");
}}
init={{
resize: false,
height: 700,
menubar: true,
plugins: [
'advlist', 'autolink', 'lists', 'link', 'image', 'charmap', 'print', 'preview', 'anchor', 'searchreplace',
'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>}
<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>

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.
]
// 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 (
<div className="config_document">
{isLoading && <div className="loader-container">

View File

@ -323,7 +323,7 @@ const DisplayDetailArticle_new_v2 = (props) => {
axios.post(myurl, form).then(res => {
// 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") {
setmyApiResponse("True");

View File

@ -779,6 +779,7 @@ const RechercheArticles_new_v2 = (props) => {
setarticle_avis_sujet("");
setarticle_avis_avis("");
setis_data_changed("");
setarticle_avis_internal_url("");
}
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("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) {
form.append('File', img_img_article_file2);
form.append('img_file_name', img_img_article_file2.name);
@ -855,8 +860,10 @@ const RechercheArticles_new_v2 = (props) => {
// console.log(" ## form = ", form);
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")) {
alert(res.data.message);
}
@ -871,9 +878,8 @@ const RechercheArticles_new_v2 = (props) => {
}
}).catch((error) => {
setLoading(false);
console.warn('contact-nous Not good man :( mysearchtext = ');
})
@ -1191,6 +1197,27 @@ const RechercheArticles_new_v2 = (props) => {
</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">
@ -1322,8 +1349,8 @@ const RechercheArticles_new_v2 = (props) => {
<TextField
maxRows={4}
minRows={4}
inputProps={{ maxLength: 154 }}
minRows={3}
inputProps={{ maxLength: 180 }}
multiline
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}

View File

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

View File

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