diff --git a/src/components/AddClassManual.js b/src/components/AddClassManual.js index 7a82e85..c6058c2 100644 --- a/src/components/AddClassManual.js +++ b/src/components/AddClassManual.js @@ -1664,7 +1664,7 @@ const AddClassManual = (props) => { } /// zzzz - console.log(" ### titre = ", p_detail_title); + // console.log(" ### titre = ", p_detail_title); var title = p_detail_title; if (String(title).length > title_limite) { @@ -3201,7 +3201,8 @@ const AddClassManual = (props) => { const [submenu, setsubmenu] = useState(""); function submenu_color_management(current_menu) { - const list_sous_menu = ["detail_formation", "unite_enseignement", "admission", "piece_jointe", "note_evaluation", "historique"] + const list_sous_menu = ["detail_formation", "unite_enseignement", "admission", "piece_jointe", "note_evaluation", + "historique", "aide_ia"] for (let i = 0; i < list_sous_menu.length; i++) { @@ -3252,6 +3253,11 @@ const AddClassManual = (props) => { submenu_color_management("piece_jointe"); } + function submenu_aide_ia() { + setsubmenu("aide_ia"); + submenu_color_management("aide_ia"); + } + function submenu_statistiques() { setsubmenu("statistiques"); @@ -3802,9 +3808,19 @@ const AddClassManual = (props) => { function function_of_text_replacement_ia(text_result) { if (fiels_of_text_replacement_ia === "description") setfield_description(text_result); + else if (fiels_of_text_replacement_ia === "objectif") setfield_objectif(text_result) + else if (fiels_of_text_replacement_ia === "programme") + setfield_programme(text_result) + + else if (fiels_of_text_replacement_ia === "prerequis") + setfield_prerequis(text_result) + + else if (fiels_of_text_replacement_ia === "plusproduit") + setfield_plus_produit(text_result) + DataUpdated(); } @@ -3818,7 +3834,6 @@ const AddClassManual = (props) => { {/*** GESTION IA */} { {String(history_securite_read) === "1" && } + + + } {String(props.formation_initiale) !== "1" && @@ -5464,6 +5485,55 @@ const AddClassManual = (props) => { write_access={props.write_access} /> } + {submenu && String(submenu) === "aide_ia" &&
+ +
+   + + + + + + + +
+ +
+ +
} + + + @@ -5604,7 +5674,7 @@ const AddClassManual = (props) => { onClick={(e) => { const regex = /(<([^>]+)>)/gi; - var initial_text_no_html = field_description.replace(regex, " "); + var initial_text_no_html = editorRef_description.current.getContent().replace(regex, " "); initial_text_no_html = initial_text_no_html.replace(/[^ -~]/g, function (chr) { return "&#" + chr.charCodeAt(0) + ";"; }); @@ -5660,7 +5730,7 @@ const AddClassManual = (props) => { onClick={(e) => { const regex = /(<([^>]+)>)/gi; - var initial_text_no_html = field_objectif.replace(regex, " "); + var initial_text_no_html = editorRef_objectif.current.getContent().replace(regex, " "); initial_text_no_html = initial_text_no_html.replace(/[^ -~]/g, function (chr) { return "&#" + chr.charCodeAt(0) + ";"; }); @@ -5673,8 +5743,6 @@ const AddClassManual = (props) => { - - editorRef_objectif.current = editor} @@ -5706,7 +5774,33 @@ const AddClassManual = (props) => {
-
Programme (max 1000 caractères)
+
+ + + + + + + + +
editorRef_programme.current = editor} initialValue={field_programme} @@ -5834,7 +5928,30 @@ const AddClassManual = (props) => {
-
Pré-requis
+ editorRef_prerequis.current = editor} initialValue={field_prerequis} @@ -5927,7 +6044,30 @@ const AddClassManual = (props) => {
-
Plus produit
+ editorRef_plus_produit.current = editor} initialValue={field_plus_produit} diff --git a/src/components/AddPartnerClient.js b/src/components/AddPartnerClient.js index 261980f..664d945 100644 --- a/src/components/AddPartnerClient.js +++ b/src/components/AddPartnerClient.js @@ -3468,7 +3468,7 @@ const AddParnerClient = (props) => { - + {/**/} - - ); - } - },*/ { field: "visual", headerName: 'Visualiser', minWidth: 50, flex: 1, maxWidth: 100, disableExport: true, renderCell: (cellValues) => { @@ -535,52 +604,318 @@ const DistplayPartnerTraningsPage = (props) => { ); } }, + /* { + field: "Print", headerName: 'Editer', minWidth: 50, flex: 1, maxWidth: 100, disableExport: true, + renderCell: (cellValues) => { + return ( + + + + ); + } + }, + + { + field: "push_to_lms", headerName: 'E-learning Creation', minWidth: 100, flex: 1, maxWidth: 150, disableExport: true, + renderCell: (cellValues) => { + return ( + + + ); + } + }, + { + field: "delete", headerName: 'Supprimer', minWidth: 50, flex: 1, maxWidth: 100, disableExport: true, + renderCell: (cellValues) => { + return ( + + { + // handleClick_delete(event, cellValues); + }} + > + + + } + modal + nested + position="center center" + > + {close => ( +
+ +
MySy Information
+
+ {' '} + + En confirmant cette opération, la formation sera définitivement supprimée.
+ Avant, assurez-vous de n'avoir aucune session rattachée à la formation. + +
+
+
+ + +
+
+ +
+
+
+ )} +
+ + + ); + } + },*/ { - field: "Print", headerName: 'Editer', minWidth: 50, flex: 1, maxWidth: 100, disableExport: true, + field: 'bton_vertif', headerName: 'Gestion', minWidth: 50, flex: 1, maxWidth: 100, hideable: true, hide: false, editable: false, align: "center", renderCell: (cellValues) => { return ( - + if (option && String(option) === "Supprimer") { + setdialogOpen_supp(true); + } - ); - } - }, + else if (option && String(option) === "Editer") { + handleClick(e, cellValues); + } - { - field: "push_to_lms", headerName: 'E-learning Creation', minWidth: 100, flex: 1, maxWidth: 150, disableExport: true, - renderCell: (cellValues) => { - return ( -
- )} - + + + + + + +
} + {/*** FIN GESTION Dialog menu item pour push lms*/} + + ); - } + }, }, - { - field: "delete", headerName: 'Supprimer', minWidth: 50, flex: 1, maxWidth: 100, disableExport: true, - renderCell: (cellValues) => { - return ( - - { - // handleClick_delete(event, cellValues); - }} - > - - - } - modal - nested - position="center center" - > - {close => ( -
- -
MySy Information
-
- {' '} - - En confirmant cette opération, la formation sera définitivement supprimée.
- Avant, assurez-vous de n'avoir aucune session rattachée à la formation. - -
-
-
- - -
-
- -
-
-
- )} -
- - - ); - } - } - - ] + const [dialogOpen_supp, setdialogOpen_supp] = useState(false); + const Dialog_menuitem_close_supp = () => { + setdialogOpen_supp(false) + }; + + + + const [dialogOpen_push_lms, setdialogOpen_push_lms] = useState(false); + const Dialog_menuitem_close_push_lms = () => { + setdialogOpen_push_lms(false) + }; + function Visualiser(event, cellValues) { @@ -1470,9 +1762,7 @@ const DistplayPartnerTraningsPage = (props) => { function handleClick_delete(event, cellValues) { - var local_class_id = cellValues.row._id; - Delete_Class(local_class_id); } @@ -1921,6 +2211,7 @@ const DistplayPartnerTraningsPage = (props) => { } // FIN EXPORT EXCEL DATAGRID + const classes = useStyles(); return ( @@ -1932,8 +2223,27 @@ const DistplayPartnerTraningsPage = (props) => { null} + + PaperProps={{ + className: classes.paper, // Apply the paper style + style: { + overflowY: 'unset', + position: 'absolute', + top: '5rem', + margin: "2px", + }, + }} + hideBackdrop={true} + disableScrollLock + classes={{ + paper: classes.dialog + }} + + PaperComponent={PaperComponent} + aria-labelledby="draggable-dialog-title" > Info Formation @@ -2044,6 +2354,16 @@ const DistplayPartnerTraningsPage = (props) => { + + + + +
diff --git a/src/components/Module_IA.js b/src/components/Module_IA.js index 75a2d2d..7154840 100644 --- a/src/components/Module_IA.js +++ b/src/components/Module_IA.js @@ -265,7 +265,7 @@ const Module_IA = (props) => { return ( -
+
{isLoading &&
@@ -287,7 +287,7 @@ const Module_IA = (props) => {
- Texte Article + Votre texte
@@ -311,9 +311,7 @@ const Module_IA = (props) => {
-
-   -
+
    @@ -328,16 +326,14 @@ const Module_IA = (props) => {
-
-   -
+
Résultat
- {/* editorRef_texte_resultat.current = editor} @@ -387,14 +383,14 @@ const Module_IA = (props) => {
-
+ >   Accepter et remplacer
} -
diff --git a/src/styles/components/_moduleia.scss b/src/styles/components/_moduleia.scss index 1e3f930..2b349b9 100644 --- a/src/styles/components/_moduleia.scss +++ b/src/styles/components/_moduleia.scss @@ -76,6 +76,8 @@ width: 100%; margin-bottom: 1rem; border-radius: 1rem; + border: none; + margin-bottom: 0.5rem; } .div_row_dialog { @@ -492,6 +494,8 @@ width: 100%; border-radius: 1rem; + border: none; + margin-bottom: 0.5rem; } .div_row_dialog { @@ -774,6 +778,7 @@ font-weight: 500; line-height: 2.25rem; padding-top: 3rem; + text-align: center; } .li_button { @@ -1255,6 +1260,8 @@ width: 100%; //margin-bottom: 1rem; border-radius: 1rem; + border: none; + margin-bottom: 0.5rem; } .div_row_dialog { @@ -1521,6 +1528,7 @@ font-weight: 500; line-height: 2.25rem; padding-top: 3rem; + text-align: center; } .li_button { @@ -1600,6 +1608,8 @@ width: 100%; margin-bottom: 1rem; border-radius: 1rem; + border: none; + margin-bottom: 0.5rem; } @@ -2191,6 +2201,7 @@ font-weight: 500; line-height: 2.25rem; padding-top: 3rem; + text-align: center; } .li_button { @@ -2270,6 +2281,8 @@ width: 100%; //margin-bottom: 1rem; border-radius: 1rem; + border: none; + margin-bottom: 0.5rem; } .div_row_dialog { @@ -3037,6 +3050,7 @@ font-weight: 500; line-height: 2.25rem; padding-top: 3rem; + text-align: center; } .li_button { diff --git a/src/styles/components/_partner.scss b/src/styles/components/_partner.scss index 7669d7e..fdb117a 100644 --- a/src/styles/components/_partner.scss +++ b/src/styles/components/_partner.scss @@ -754,7 +754,7 @@ } .div_mobile { - position: absolute; + // position: absolute; top: 8.5rem; z-index: 1; width: 100%; @@ -1260,7 +1260,7 @@ } .div_mobile { - position: absolute; + // position: absolute; top: 8.5rem; z-index: 1; width: 100%; @@ -1741,7 +1741,7 @@ } .div_mobile { - position: absolute; + // position: absolute; top: 8.5rem; z-index: 1; width: 100%;