diff --git a/src/components/DisplayPartnerSession.js b/src/components/DisplayPartnerSession.js index 548b2f0..20e0930 100644 --- a/src/components/DisplayPartnerSession.js +++ b/src/components/DisplayPartnerSession.js @@ -22,10 +22,12 @@ import { Editor } from '@tinymce/tinymce-react'; import { IoArrowUndoCircle } from "react-icons/io5"; import { GrUserAdmin, GrOrderedList } from "react-icons/gr"; import parse from 'html-react-parser'; - +import { FcViewDetails } from "react-icons/fc"; import 'react-tooltip/dist/react-tooltip.css' import { Tooltip } from 'react-tooltip' - +import add_plus from "../mysy_img/plus.png"; +import excel_icone from "../mysy_img/excel_icone.png"; +import participants from "../mysy_img/participants.png"; import GestionAdministrative from "./GestionAdministrative"; import { IoMdAddCircle, IoIosRemoveCircleOutline } from "react-icons/io"; import { Fab } from "@material-ui/core"; @@ -50,18 +52,18 @@ const DisplayPartnerSession = (props) => { const columns = [ { field: 'id', headerName: 'id', hide: true }, { field: 'class_internal_url', headerName: 'class_internal_url', hide: true }, - { field: 'code_session', headerName: 'code_session', hide: false }, - { field: 'date_debut', headerName: 'date_debut', hide: false }, - { field: 'date_fin', headerName: 'Code date_fin', width: 100, hideable: false, flex: 1 }, - { field: 'distantiel', headerName: 'distantiel', width: 100, hideable: false, flex: 1 }, - { field: 'presentiel', headerName: 'presentiel', width: 150, flex: 1 }, - { field: 'formateur', headerName: 'formateur', width: 150, flex: 1 }, + { field: 'code_session', headerName: 'code session', hide: false }, + { field: 'date_debut', headerName: 'date debut', hide: false }, + { field: 'date_fin', headerName: 'Datefin', width: 100, hideable: false, flex: 1 }, + { field: 'distantiel', headerName: 'Distantiel', width: 100, hideable: false, flex: 1 }, + { field: 'presentiel', headerName: 'Presentiel', width: 150, flex: 1 }, + { field: 'formateur', headerName: 'Formateur', width: 150, flex: 1 }, { field: 'nb_participant', headerName: 'nb_participant', width: 100, align: "center", flex: 1 }, - { field: 'prix_session', headerName: 'prix_session', width: 100, align: "center", flex: 1 }, - { field: 'title', headerName: 'title', width: 100, align: "center", flex: 1 }, - { field: 'domaine', headerName: 'domaine', width: 100, align: "center", flex: 1 }, - { field: 'duration', headerName: 'duration', width: 100, align: "center", flex: 1 }, - { field: 'duration_unit', headerName: 'duration_unit', width: 100, align: "center", flex: 1 }, + { field: 'prix_session', headerName: 'Prix', width: 100, align: "center", flex: 1 }, + { field: 'title', headerName: 'Formation', width: 100, align: "center", flex: 1 }, + { field: 'domaine', headerName: 'Domaine', width: 100, align: "center", flex: 1 }, + { field: 'duration', headerName: 'Durée', width: 100, align: "center", flex: 1 }, + { field: 'duration_unit', headerName: 'unité', width: 100, align: "center", flex: 1 }, { @@ -72,7 +74,7 @@ const DisplayPartnerSession = (props) => { - - ); - } - }, { field: "Print", headerName: 'Editer', renderCell: (cellValues) => { @@ -119,76 +103,274 @@ const DisplayPartnerSession = (props) => { } }, + + + ] + + const columns_preinscrit = [ + { field: 'id', headerName: 'id', hide: true }, + { field: 'email', headerName: 'email', width: 200, hideable: false, flex: 1 }, + { field: 'nom', headerName: 'nom', width: 150, hide: false, editable: true }, + { field: 'prenom', headerName: 'prenom', width: 150, hide: false, editable: true }, + { field: 'employeur', headerName: 'Employeur', width: 200, hide: false, editable: true }, + { field: 'opco', headerName: 'Centre Opco', width: 150, hide: false, editable: true }, + { field: 'modefinancement', headerName: 'Financement', width: 150, hide: false, editable: true }, + { field: 'amount', headerName: 'Montant Formation', width: 150, type: 'number', hideable: false, flex: 1, editable: true }, { - field: "push_to_lms", headerName: 'Push Elearning', + field: "update", headerName: 'Mise à jour', renderCell: (cellValues) => { return ( - + + )} + ); } }, + { + field: "valide", headerName: 'Valider', + renderCell: (cellValues) => { + return ( + + { + //handleClick_accept(event, cellValues); + }} + > + + + } + modal + nested + position="center center" + > + {close => ( +
+ +
MySy Info
+
+ {' '} + + En confirmant cette opération, l'inscription du stagiaire sera définitivement validée.
+ Il (le stagiaire) sera automatiquement notifié par email de la validation de son inscription.
+ Le stagiaire passera de l'onglet "préinscrit" vers l'onglet "inscription".
+
+
+
+ + +
+
+ +
+
+
+ )} +
+ + ); + } + }, + + { + field: "refuse", headerName: 'Refuser', + renderCell: (cellValues) => { + return ( + + { + //handleClick_refuse(event, cellValues); + }} + > + + + } + modal + nested + position="center center" + > + {close => ( +
+ +
MySy Info
+
+ {' '} + + En confirmant cette opération, l'inscription du stagiaire sera refusée.
+ Il (le stagiaire) sera automatiquement notifié par email du refus de son inscription.
+
Motif du refus :
+