diff --git a/src/components/AddClassManual.js b/src/components/AddClassManual.js index 422f6cd..f43393d 100644 --- a/src/components/AddClassManual.js +++ b/src/components/AddClassManual.js @@ -39,7 +39,7 @@ import DialogActions from '@mui/material/DialogActions'; import DialogContent from '@mui/material/DialogContent'; import DialogContentText from '@mui/material/DialogContentText'; import DialogTitle from '@mui/material/DialogTitle'; - +import AttachFileIcon from '@mui/icons-material/AttachFile'; const AddClassManual = (props) => { const history = useHistory(); @@ -2759,7 +2759,7 @@ const AddClassManual = (props) => { {Dialog_1_message} - + {add_one_eu_to_class && String(add_one_eu_to_class) === "1" &&
Choisir une unité d'enseignement {New_Getall_Partner_List_UE_result && New_Getall_Partner_List_UE_result.length > 0 && @@ -2790,22 +2790,22 @@ const AddClassManual = (props) => {
} - - {add_one_eu_to_class && String(add_one_eu_to_class) !== "1" && - New_Getall_Partner_List_UE_result && New_Getall_Partner_List_UE_result.length > 0 && - selected_ue_id &&
Unité d'enseignement - (data)._id === String(selected_ue_id))[0].label} - - /> + {add_one_eu_to_class && String(add_one_eu_to_class) !== "1" && + New_Getall_Partner_List_UE_result && New_Getall_Partner_List_UE_result.length > 0 && + selected_ue_id &&
Unité d'enseignement + + name="event_dialog_credit" + id="event_dialog_credit" + fullWidth + value={New_Getall_Partner_List_UE_result.filter((data) => (data)._id === String(selected_ue_id))[0].label} + + /> + +
} @@ -2830,7 +2830,7 @@ const AddClassManual = (props) => {
Est Evalué
- {
} + + {String(props.formation_initiale) !== "1" && +
+ +
}
@@ -3123,8 +3128,159 @@ const AddClassManual = (props) => {
} + {submenu && String(submenu) === "admission" &&
admission
} - {submenu && String(submenu) === "piece_jointe" &&
piece_jointe
} + + {submenu && String(submenu) === "piece_jointe" &&
+ + +
+ +
+
+ +
+ +
+ +
+ {file_1_name && file_1_name.name && + } + + {Record_All_PJ_api && String(Record_All_PJ_api) === "true" &&
Pièce jointe enregistrée
} + + {Record_All_PJ_api && String(Record_All_PJ_api) === "false" &&
{Record_All_PJ_message}
} + + +
+ + + {file_1_name && file_1_name.name &&
+ +
+ +
+ + +
} + + {Get_List_Of_All_PJ_result &&
+
+ +
+ {Get_List_Of_All_PJ_result && Get_List_Of_All_PJ_result.map((val) => ( +
+ + + + + Supprimer + + + } + modal + nested + position="center center" + > + {close => ( +
+ +
MySy Information
+
+ {' '} + + En confirmant cette opération, la pièce jointe sera définitivement supprimée.
+ + +
+
+
+ + +
+
+ +
+
+
+ )} +
+ +
+ ))} +
+
+
} +
+ +
+ +
} {submenu && String(submenu) === "detail_formation" &&
@@ -3690,7 +3846,618 @@ const AddClassManual = (props) => {
-
+ + + {submenu && String(submenu) === "detail_formation" &&
+ +
+ {String(datamodification) === String("1") &&
+
/!\ Pensez à enregistrer les modifications
+
} + + {String(props.ispending) === String("0") &&
+ + + {(String(datamodification) === String("1") || String(editor_tochange) === String("1")) &&
+ +
+ } + + {/*String(datamodification) === String("0") &&
+ +
+ */ } + + + + {String(datamodification) !== String("1") && String(editor_tochange) !== String("1") && String(props.mytrainingclass.ref) !== "" && +
+ + } className="bton_suppr2"> SUPPRIMER LA FORMATION + + } + 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. + +
+
+
+ + +
+
+ +
+
+
+ )} +
+ +
+ } + + + {(String(datamodification) === String("1") || String(editor_tochange) === String("1")) && String(props.mytrainingclass.ref) !== "" &&
+ + +
} + +
} + + {String(props.ispending) !== String("0") &&
+ + datamodification = {datamodification} + {String(datamodification) === String("1") &&
+ ENREGISTRER +
+ } + + + {String(datamodification) === String("0") &&
+ MODIFICATION +
+ } + + +
+ + +
+ +
} + + + {String(myApiResponse) === String("true") && importmessage && +
+ {importmessage} + +
} + + {String(myApiResponse) === String("false") && +
+ {importmessage} + +
} +
+ + +
+ +
+
+
Description * (max 1000 caractères)
+ editorRef_description.current = editor} + initialValue={field_description} + onKeyUp={editor_keyup} + onEditorChange={(newValue, editor) => { + + if (String(editor_tochange) === "1") { + //alert(" change"); + DataUpdated() + seteditor_tochange(""); + } + }} + + init={{ + resize: false, + height: 300, + menubar: false, + plugins: [ + 'advlist autolink lists link image charmap print preview anchor', + 'searchreplace visualblocks code fullscreen', + 'insertdatetime media table paste code help wordcount' + ], + + content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px; }' + }} + /> + +
+
+ +
+
+
Objectif* (max 1000 caractères)
+ editorRef_objectif.current = editor} + initialValue={field_objectif} + onKeyUp={editor_keyup} + onEditorChange={(newValue, editor) => { + if (String(editor_tochange) === "1") { + //alert(" change"); + DataUpdated(); + seteditor_tochange(""); + } + }} + init={{ + resize: false, + height: 300, + menubar: false, + plugins: [ + 'advlist autolink lists link image charmap print preview anchor', + 'searchreplace visualblocks code fullscreen', + 'insertdatetime media table paste code help wordcount' + ], + + content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px; }' + }} + /> + +
+
+ +
+
+
Programme (max 1000 caractères)
+ editorRef_programme.current = editor} + initialValue={field_programme} + onKeyUp={editor_keyup} + onEditorChange={(newValue, editor) => { + if (String(editor_tochange) === "1") { + //alert(" change"); + DataUpdated(); + seteditor_tochange(""); + } + }} + init={{ + resize: false, + height: 300, + menubar: false, + plugins: [ + 'advlist autolink lists link image charmap print preview anchor', + 'searchreplace visualblocks code fullscreen', + 'insertdatetime media table paste code help wordcount' + ], + + content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px; }' + }} + /> + +
+
+ +
+
+
Ressources Pédagogiques et techniques (max 1000 caractères)
+ editorRef_methode_pedago.current = editor} + initialValue={field_methode_pedago} + onKeyUp={editor_keyup} + onEditorChange={(newValue, editor) => { + if (String(editor_tochange) === "1") { + //alert(" change"); + DataUpdated(); + seteditor_tochange(""); + } + }} + init={{ + resize: false, + height: 300, + menubar: false, + plugins: [ + 'advlist autolink lists link image charmap print preview anchor', + 'searchreplace visualblocks code fullscreen', + 'insertdatetime media table paste code help wordcount' + ], + + content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px; }' + }} + /> + +
+
+ + +
+
+
Suivi et Évaluation (max 1000 caractères)
+ editorRef_suivi_eval.current = editor} + initialValue={field_suivi_eval} + onKeyUp={editor_keyup} + onEditorChange={(newValue, editor) => { + if (String(editor_tochange) === "1") { + //alert(" change"); + DataUpdated(); + seteditor_tochange(""); + } + }} + init={{ + resize: false, + height: 300, + menubar: false, + plugins: [ + 'advlist autolink lists link image charmap print preview anchor', + 'searchreplace visualblocks code fullscreen', + 'insertdatetime media table paste code help wordcount' + ], + + content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px; }' + }} + /> + +
+
+ + + +
+
+
Accès handicapé (max 1000 caractères)
+ editorRef_handicap.current = editor} + initialValue={field_handicap} + onKeyUp={editor_keyup} + onEditorChange={(newValue, editor) => { + if (String(editor_tochange) === "1") { + //alert(" change"); + DataUpdated(); + seteditor_tochange(""); + } + }} + init={{ + resize: false, + height: 300, + menubar: false, + plugins: [ + 'advlist autolink lists link image charmap print preview anchor', + 'searchreplace visualblocks code fullscreen', + 'insertdatetime media table paste code help wordcount' + ], + + content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px; }' + }} + /> + +
+
+ + +
+
+
Pré-requis
+ editorRef_prerequis.current = editor} + initialValue={field_prerequis} + onKeyUp={editor_keyup} + onEditorChange={(newValue, editor) => { + if (String(editor_tochange) === "1") { + //alert(" change"); + DataUpdated(); + seteditor_tochange(""); + } + }} + init={{ + resize: false, + height: 300, + menubar: false, + plugins: [ + 'advlist autolink lists link image charmap print preview anchor', + 'searchreplace visualblocks code fullscreen', + 'insertdatetime media table paste code help wordcount' + ], + + content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px; }' + }} + /> + +
+
+ +
+
+
Pour Qui ?
+ editorRef_pourqui.current = editor} + initialValue={field_pourqui} + onKeyUp={editor_keyup} + onEditorChange={(newValue, editor) => { + if (String(editor_tochange) === "1") { + //alert(" change"); + DataUpdated(); + seteditor_tochange(""); + } + }} + init={{ + resize: false, + height: 300, + menubar: false, + plugins: [ + 'advlist autolink lists link image charmap print preview anchor', + 'searchreplace visualblocks code fullscreen', + 'insertdatetime media table paste code help wordcount' + ], + + content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px; }' + }} + /> + +
+
+ +
+
+
Mots clés
+ editorRef_mots_cle.current = editor} + initialValue={field_mots_cle} + onKeyUp={editor_keyup} + onEditorChange={(newValue, editor) => { + if (String(editor_tochange) === "1") { + //alert(" change"); + DataUpdated(); + seteditor_tochange(""); + } + }} + init={{ + resize: false, + height: 300, + menubar: false, + plugins: [ + 'advlist autolink lists link image charmap print preview anchor', + 'searchreplace visualblocks code fullscreen', + 'insertdatetime media table paste code help wordcount' + ], + + content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px; }' + }} + /> + +
+
+ +
+
+
Plus produit
+ editorRef_plus_produit.current = editor} + initialValue={field_plus_produit} + onKeyUp={editor_keyup} + onEditorChange={(newValue, editor) => { + if (String(editor_tochange) === "1") { + //alert(" change"); + DataUpdated(); + seteditor_tochange(""); + } + }} + init={{ + resize: false, + height: 300, + menubar: false, + plugins: [ + 'advlist autolink lists link image charmap print preview anchor', + 'searchreplace visualblocks code fullscreen', + 'insertdatetime media table paste code help wordcount' + ], + + content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px; }' + }} + /> + +
+
+ + + +
+ +   + +
+ + {(String(props.currentpack).toLocaleLowerCase() === String("gold") || + String(props.currentpack).toLocaleLowerCase() === String("mesure")) + &&
+ + +
} + + + + {String(props.currentpack).toLocaleLowerCase() === String("decouverte") &&
+ + + + + {/* */} + + + +
+ } + + {String(props.currentpack).toLocaleLowerCase() === String("standard") && +
+ + {/* +*/} + + + + + +
+ } + + +
+ + + + + +
Image de profil
+
+ +
+
+
+
+
+
+ {/*isimgclassSelected && */} + {isimgclassdeleted && String(isimgclassdeleted) === "1" && } + {isimgclassdeleted && String(isimgclassdeleted) === "0" && } + {isimgclassSelected && String(isimgclassSaved) === "0" && } +
+ +
+
+
  • + L'image doit etre carrée. +
  • +
  • + Les formats autorisés sont : ['jpg', 'jpeg', 'png', 'jpe', 'webp'] +
  • +
  • + Les dimensions recommandées: 128pixels X 128pixels -- 144pixels X 144pixels -- 168pixels X 168pixels
    + Les dimensions maximales sont de 256pixels X 256pixels +
  • +
  • + La taille de l'image ne doit pas dépasser 1 mega octet +
  • +
    +
    + +
    + +
    +
    +
    +
    + +
    + + {String(datamodification) === String("1") &&
    /!\ Pensez à enregistrer les modifications
    } @@ -3710,70 +4477,23 @@ const AddClassManual = (props) => { - {String(datamodification) !== String("1") && String(editor_tochange) !== String("1") && String(props.mytrainingclass.ref) !== "" && -
    - - } className="bton_suppr2"> SUPPRIMER LA FORMATION - - } - 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. - -
    -
    -
    - - -
    -
    - -
    -
    -
    - )} -
    + {String(datamodification) !== String("1") && String(editor_tochange) !== String("1") && + String(props.mytrainingclass.ref) !== "" &&
    +
    } - {(String(datamodification) === String("1") || String(editor_tochange) === String("1")) && String(props.mytrainingclass.ref) !== "" &&
    - + {(String(datamodification) === String("1") || String(editor_tochange) === String("1")) && + String(props.mytrainingclass.ref) !== "" &&
    + -
    } +
    }
    } {String(props.ispending) !== String("0") &&
    - - datamodification = {datamodification} {String(datamodification) === String("1") &&
    ENREGISTRER
    @@ -3805,731 +4525,9 @@ const AddClassManual = (props) => { {importmessage}
    } -
    - - -
    - -
    -
    -
    Description * (max 1000 caractères)
    - editorRef_description.current = editor} - initialValue={field_description} - onKeyUp={editor_keyup} - onEditorChange={(newValue, editor) => { - - if (String(editor_tochange) === "1") { - //alert(" change"); - DataUpdated() - seteditor_tochange(""); - } - }} - - init={{ - resize: false, - height: 300, - menubar: false, - plugins: [ - 'advlist autolink lists link image charmap print preview anchor', - 'searchreplace visualblocks code fullscreen', - 'insertdatetime media table paste code help wordcount' - ], - - content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px; }' - }} - /> - -
    -
    - -
    -
    -
    Objectif* (max 1000 caractères)
    - editorRef_objectif.current = editor} - initialValue={field_objectif} - onKeyUp={editor_keyup} - onEditorChange={(newValue, editor) => { - if (String(editor_tochange) === "1") { - //alert(" change"); - DataUpdated(); - seteditor_tochange(""); - } - }} - init={{ - resize: false, - height: 300, - menubar: false, - plugins: [ - 'advlist autolink lists link image charmap print preview anchor', - 'searchreplace visualblocks code fullscreen', - 'insertdatetime media table paste code help wordcount' - ], - - content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px; }' - }} - /> - -
    -
    - -
    -
    -
    Programme (max 1000 caractères)
    - editorRef_programme.current = editor} - initialValue={field_programme} - onKeyUp={editor_keyup} - onEditorChange={(newValue, editor) => { - if (String(editor_tochange) === "1") { - //alert(" change"); - DataUpdated(); - seteditor_tochange(""); - } - }} - init={{ - resize: false, - height: 300, - menubar: false, - plugins: [ - 'advlist autolink lists link image charmap print preview anchor', - 'searchreplace visualblocks code fullscreen', - 'insertdatetime media table paste code help wordcount' - ], - - content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px; }' - }} - /> - -
    -
    - -
    -
    -
    Ressources Pédagogiques et techniques (max 1000 caractères)
    - editorRef_methode_pedago.current = editor} - initialValue={field_methode_pedago} - onKeyUp={editor_keyup} - onEditorChange={(newValue, editor) => { - if (String(editor_tochange) === "1") { - //alert(" change"); - DataUpdated(); - seteditor_tochange(""); - } - }} - init={{ - resize: false, - height: 300, - menubar: false, - plugins: [ - 'advlist autolink lists link image charmap print preview anchor', - 'searchreplace visualblocks code fullscreen', - 'insertdatetime media table paste code help wordcount' - ], - - content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px; }' - }} - /> - -
    -
    - - -
    -
    -
    Suivi et Évaluation (max 1000 caractères)
    - editorRef_suivi_eval.current = editor} - initialValue={field_suivi_eval} - onKeyUp={editor_keyup} - onEditorChange={(newValue, editor) => { - if (String(editor_tochange) === "1") { - //alert(" change"); - DataUpdated(); - seteditor_tochange(""); - } - }} - init={{ - resize: false, - height: 300, - menubar: false, - plugins: [ - 'advlist autolink lists link image charmap print preview anchor', - 'searchreplace visualblocks code fullscreen', - 'insertdatetime media table paste code help wordcount' - ], - - content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px; }' - }} - /> - -
    -
    - - - -
    -
    -
    Accès handicapé (max 1000 caractères)
    - editorRef_handicap.current = editor} - initialValue={field_handicap} - onKeyUp={editor_keyup} - onEditorChange={(newValue, editor) => { - if (String(editor_tochange) === "1") { - //alert(" change"); - DataUpdated(); - seteditor_tochange(""); - } - }} - init={{ - resize: false, - height: 300, - menubar: false, - plugins: [ - 'advlist autolink lists link image charmap print preview anchor', - 'searchreplace visualblocks code fullscreen', - 'insertdatetime media table paste code help wordcount' - ], - - content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px; }' - }} - /> - -
    -
    - - -
    -
    -
    Pré-requis
    - editorRef_prerequis.current = editor} - initialValue={field_prerequis} - onKeyUp={editor_keyup} - onEditorChange={(newValue, editor) => { - if (String(editor_tochange) === "1") { - //alert(" change"); - DataUpdated(); - seteditor_tochange(""); - } - }} - init={{ - resize: false, - height: 300, - menubar: false, - plugins: [ - 'advlist autolink lists link image charmap print preview anchor', - 'searchreplace visualblocks code fullscreen', - 'insertdatetime media table paste code help wordcount' - ], - - content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px; }' - }} - /> - -
    -
    - -
    -
    -
    Pour Qui ?
    - editorRef_pourqui.current = editor} - initialValue={field_pourqui} - onKeyUp={editor_keyup} - onEditorChange={(newValue, editor) => { - if (String(editor_tochange) === "1") { - //alert(" change"); - DataUpdated(); - seteditor_tochange(""); - } - }} - init={{ - resize: false, - height: 300, - menubar: false, - plugins: [ - 'advlist autolink lists link image charmap print preview anchor', - 'searchreplace visualblocks code fullscreen', - 'insertdatetime media table paste code help wordcount' - ], - - content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px; }' - }} - /> - -
    -
    - -
    -
    -
    Mots clés
    - editorRef_mots_cle.current = editor} - initialValue={field_mots_cle} - onKeyUp={editor_keyup} - onEditorChange={(newValue, editor) => { - if (String(editor_tochange) === "1") { - //alert(" change"); - DataUpdated(); - seteditor_tochange(""); - } - }} - init={{ - resize: false, - height: 300, - menubar: false, - plugins: [ - 'advlist autolink lists link image charmap print preview anchor', - 'searchreplace visualblocks code fullscreen', - 'insertdatetime media table paste code help wordcount' - ], - - content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px; }' - }} - /> - -
    -
    - -
    -
    -
    Plus produit
    - editorRef_plus_produit.current = editor} - initialValue={field_plus_produit} - onKeyUp={editor_keyup} - onEditorChange={(newValue, editor) => { - if (String(editor_tochange) === "1") { - //alert(" change"); - DataUpdated(); - seteditor_tochange(""); - } - }} - init={{ - resize: false, - height: 300, - menubar: false, - plugins: [ - 'advlist autolink lists link image charmap print preview anchor', - 'searchreplace visualblocks code fullscreen', - 'insertdatetime media table paste code help wordcount' - ], - - content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px; }' - }} - /> - -
    -
    - - {/*
    -
    -
    Zone de diffusion
    -