05/06/2024 - 23h
parent
94a200c6fe
commit
806708a266
|
@ -10,7 +10,7 @@ import { DataGrid, GridToolbar, frFR } from '@mui/x-data-grid';
|
|||
import "react-draft-wysiwyg/dist/react-draft-wysiwyg.css";
|
||||
import { Editor } from '@tinymce/tinymce-react';
|
||||
import parse from 'html-react-parser';
|
||||
import { FcViewDetails, FcDisapprove, FcInfo } from "react-icons/fc";
|
||||
import { FcViewDetails, FcDisapprove, FcInfo, FcExpired } from "react-icons/fc";
|
||||
import 'react-tooltip/dist/react-tooltip.css'
|
||||
import { Tooltip } from 'react-tooltip'
|
||||
import add_plus from "../mysy_img/plus.png";
|
||||
|
@ -195,7 +195,31 @@ const DisplayPartnerSession = (props) => {
|
|||
const columns = [
|
||||
{ field: 'id', headerName: 'id', hide: true },
|
||||
{ field: '_id', headerName: '_id', hide: true },
|
||||
{ field: 'session_alert_message', headerName: 'session_alert_message', hide: true },
|
||||
{ field: 'class_internal_url', headerName: 'class_internal_url', hide: true },
|
||||
|
||||
{
|
||||
field: 'is_session_alert', headerName: '', hide: false, Width: 50, flex: 1,
|
||||
|
||||
|
||||
renderCell: (cellValues) => {
|
||||
return (
|
||||
<div style={{ paddingLeft: "5px", paddingRight: "15px", "display": "block", wordBreak: "break-all" }}>
|
||||
{cellValues.row.is_session_alert && String(cellValues.row.is_session_alert) === "1" && <nav>
|
||||
<Tooltip className="tooltip_css" id="my_tooltip_alert_1" />
|
||||
<a data-tooltip-id="my_tooltip_alert_1" data-tooltip-html={`${cellValues.row.session_alert_message}`}>
|
||||
<FcExpired />
|
||||
</a>
|
||||
</nav>}
|
||||
{cellValues.row.is_session_alert && String(cellValues.row.is_session_alert) !== "1" && ""}
|
||||
|
||||
</div>
|
||||
|
||||
);
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
{ field: 'code_session', headerName: 'Code session', hide: false, minWidth: 200, flex: 1, renderCell: (params) => <ExpandableCell_50 {...params} />, },
|
||||
{ field: 'session_title', headerName: 'Titre', hide: false, flex: 1, minWidth: 250, renderCell: (params) => <ExpandableCell_50 {...params} />, },
|
||||
|
||||
|
@ -286,8 +310,8 @@ const DisplayPartnerSession = (props) => {
|
|||
{ field: 'published', headerName: 'publié', minWidth: datagrid_columns_size_model1, align: "center", hide: true, renderCell: (params) => <ExpandableCell_50 {...params} />, },
|
||||
|
||||
{ field: 'site_formation_id', headerName: 'site_formation_id', with: 0, align: "center", hide: true, },
|
||||
|
||||
|
||||
|
||||
|
||||
{ field: 'qty_in_quotation', headerName: 'Place Non validé ', with: 150, align: "center", hide: false, renderCell: (params) => <ExpandableCell_50 {...params} />, },
|
||||
{ field: 'qty_in_quotation_list_quotation', headerName: 'List Devis ', with: 150, align: "center", hide: false, renderCell: (params) => <ExpandableCell_50 {...params} />, },
|
||||
|
||||
|
@ -2456,7 +2480,7 @@ const DisplayPartnerSession = (props) => {
|
|||
const [selectionModel_insc, setSelectionModel_insc] = React.useState([]);
|
||||
const [rowss_insc, setRows_insc] = useState([]);
|
||||
const [rowss_preinsc, setRows_preinsc] = useState([]);
|
||||
|
||||
|
||||
const [GetListePreinscrit_insc_api, setGetListePreinscrit_insc_api] = useState();
|
||||
const [GetListePreinscrit_insc_meassage, setGetListePreinscrit_insc_meassage] = useState();
|
||||
const [GetListePreinscrit_insc_result, setGetListePreinscrit_insc_result] = useState([])
|
||||
|
@ -8637,7 +8661,7 @@ const DisplayPartnerSession = (props) => {
|
|||
}
|
||||
|
||||
|
||||
|
||||
|
||||
const [Add_One_Sequence_Session_Ressource_Mass_api, setAdd_One_Sequence_Session_Ressource_Mass_api] = useState();
|
||||
const [Add_One_Sequence_Session_Ressource_Mass_message, setAdd_One_Sequence_Session_Ressource_Mass_message] = useState();
|
||||
const [Add_One_Sequence_Session_Ressource_Mass_result, setAdd_One_Sequence_Session_Ressource_Mass_result] = useState();
|
||||
|
@ -13030,7 +13054,8 @@ const DisplayPartnerSession = (props) => {
|
|||
qty_in_quotation: JSON.parse(item).qty_in_quotation,
|
||||
qty_in_quotation_list_quotation: JSON.parse(item).qty_in_quotation_list_quotation,
|
||||
|
||||
|
||||
is_session_alert: JSON.parse(item).is_session_alert,
|
||||
session_alert_message: JSON.parse(item).session_alert_message,
|
||||
}
|
||||
))}
|
||||
|
||||
|
@ -14471,7 +14496,7 @@ const DisplayPartnerSession = (props) => {
|
|||
{String(addOneSession) === "1" && <div className="div_row session_data" style={{ "border": "None", "backgroundColor": "#F0F0F0" }} >
|
||||
<h5> Ajout d'une session de formation</h5>
|
||||
|
||||
|
||||
|
||||
|
||||
<div className="session_caract" > <b>Choisir une formation </b> <br />
|
||||
|
||||
|
@ -14591,7 +14616,7 @@ const DisplayPartnerSession = (props) => {
|
|||
}
|
||||
/>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
@ -14622,7 +14647,7 @@ const DisplayPartnerSession = (props) => {
|
|||
}
|
||||
/>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
@ -14654,7 +14679,7 @@ const DisplayPartnerSession = (props) => {
|
|||
}
|
||||
/>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
@ -14688,7 +14713,7 @@ const DisplayPartnerSession = (props) => {
|
|||
/>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div className="session_caract">
|
||||
|
@ -14802,7 +14827,7 @@ const DisplayPartnerSession = (props) => {
|
|||
}
|
||||
/>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div className="session_caract">A distance <br />
|
||||
|
@ -14826,7 +14851,7 @@ const DisplayPartnerSession = (props) => {
|
|||
/>
|
||||
}
|
||||
/>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div className="session_caract"> Site de Formation<br />
|
||||
|
|
Loading…
Reference in New Issue