recette2
parent
90cee8c6ec
commit
21b878092c
|
@ -3096,7 +3096,7 @@ const Config_Documents = (props) => {
|
|||
</div>
|
||||
{String(partner_document_data_edit_mode) !== "1" && <div className="div_row">
|
||||
|
||||
{p_detail_joint_pdf === true && <div className="div_row" style={{ "border": "None", "width": "98%", "marginLeft": "1%", "marginRight": "1%", "float": "left" }}>
|
||||
{p_detail_joint_pdf === true && p_detail_type_doc === "email" && <div className="div_row" style={{ "border": "None", "width": "98%", "marginLeft": "1%", "marginRight": "1%", "float": "left" }}>
|
||||
<Button variant="outlined"
|
||||
onClick={(event) => {
|
||||
setdocument_principal_ou_corp_mail("1");
|
||||
|
@ -3110,7 +3110,7 @@ const Config_Documents = (props) => {
|
|||
</div>}
|
||||
|
||||
|
||||
{p_detail_joint_pdf === true && String(document_principal_ou_corp_mail) === "2" &&
|
||||
{p_detail_joint_pdf === true && p_detail_type_doc === "email" && String(document_principal_ou_corp_mail) === "2" &&
|
||||
<div style={{ "width": "98%", "marginLeft": "1%", "marginRight": "1%", "float": "left" }}>
|
||||
|
||||
<div className="titre_training_text"> Corps du mail </div>
|
||||
|
@ -3180,7 +3180,7 @@ const Config_Documents = (props) => {
|
|||
|
||||
<div className="div_row" >
|
||||
|
||||
{p_detail_joint_pdf === true && <div className="div_row" style={{ "border": "None", "width": "98%", "marginLeft": "1%", "marginRight": "1%", "float": "left" }}>
|
||||
{p_detail_joint_pdf === true && p_detail_type_doc === "email" && <div className="div_row" style={{ "border": "None", "width": "98%", "marginLeft": "1%", "marginRight": "1%", "float": "left" }}>
|
||||
<Button variant="outlined"
|
||||
onClick={(event) => {
|
||||
setdocument_principal_ou_corp_mail("1");
|
||||
|
@ -3194,7 +3194,7 @@ const Config_Documents = (props) => {
|
|||
</div>}
|
||||
|
||||
|
||||
{p_detail_joint_pdf === true && String(document_principal_ou_corp_mail) === "2" &&
|
||||
{p_detail_joint_pdf === true && p_detail_type_doc === "email" && String(document_principal_ou_corp_mail) === "2" &&
|
||||
<div style={{ "width": "98%", "marginLeft": "1%", "marginRight": "1%", "float": "left" }}>
|
||||
|
||||
<div className="titre_training_text"> Modifier le Corps du mail </div>
|
||||
|
@ -3556,7 +3556,7 @@ const Config_Documents = (props) => {
|
|||
|
||||
<div className="div_row" >
|
||||
|
||||
{p_detail_joint_pdf === true && <div className="div_row" style={{ "border": "None", "width": "98%", "marginLeft": "1%", "marginRight": "1%", "float": "left" }}>
|
||||
{p_detail_joint_pdf === true && p_detail_type_doc === "email" && <div className="div_row" style={{ "border": "None", "width": "98%", "marginLeft": "1%", "marginRight": "1%", "float": "left" }}>
|
||||
<Button variant="outlined"
|
||||
onClick={(event) => {
|
||||
setdocument_principal_ou_corp_mail("1");
|
||||
|
@ -3570,7 +3570,7 @@ const Config_Documents = (props) => {
|
|||
</div>}
|
||||
|
||||
|
||||
{p_detail_joint_pdf === true && String(document_principal_ou_corp_mail) === "2" &&
|
||||
{p_detail_joint_pdf === true && p_detail_type_doc === "email" && String(document_principal_ou_corp_mail) === "2" &&
|
||||
<div style={{ "width": "98%", "marginLeft": "1%", "marginRight": "1%", "float": "left" }}>
|
||||
|
||||
<div className="titre_training_text"> Créer le Corps du mail </div>
|
||||
|
|
|
@ -2969,7 +2969,8 @@ const Config_Documents_Super_Admin = (props) => {
|
|||
</div>
|
||||
{String(partner_document_data_edit_mode) !== "1" && <div className="div_row">
|
||||
|
||||
{p_detail_joint_pdf === true && <div className="div_row" style={{ "border": "None", "width": "98%", "marginLeft": "1%", "marginRight": "1%", "float": "left" }}>
|
||||
|
||||
{p_detail_joint_pdf === true && p_detail_type_doc === "email" && <div className="div_row" style={{ "border": "None", "width": "98%", "marginLeft": "1%", "marginRight": "1%", "float": "left" }}>
|
||||
<Button variant="outlined"
|
||||
onClick={(event) => {
|
||||
setdocument_principal_ou_corp_mail("1");
|
||||
|
@ -2979,11 +2980,11 @@ const Config_Documents_Super_Admin = (props) => {
|
|||
onClick={(event) => {
|
||||
setdocument_principal_ou_corp_mail("2");
|
||||
}}
|
||||
className="detail_class_submenu" id='detail_corps_mail' name='detail_corps_mail'>Corps du mail </Button>
|
||||
className="detail_class_submenu" id='detail_corps_mail' name='detail_corps_mail'>Corps du mail </Button>
|
||||
</div>}
|
||||
|
||||
|
||||
{p_detail_joint_pdf === true && String(document_principal_ou_corp_mail) === "2" &&
|
||||
{p_detail_joint_pdf === true && p_detail_type_doc === "email" && String(document_principal_ou_corp_mail) === "2" &&
|
||||
<div style={{ "width": "98%", "marginLeft": "1%", "marginRight": "1%", "float": "left" }}>
|
||||
|
||||
<div className="titre_training_text"> Corps du mail </div>
|
||||
|
@ -3053,7 +3054,7 @@ const Config_Documents_Super_Admin = (props) => {
|
|||
|
||||
<div className="div_row" >
|
||||
|
||||
{p_detail_joint_pdf === true && <div className="div_row" style={{ "border": "None", "width": "98%", "marginLeft": "1%", "marginRight": "1%", "float": "left" }}>
|
||||
{p_detail_joint_pdf === true && p_detail_type_doc === "email" && <div className="div_row" style={{ "border": "None", "width": "98%", "marginLeft": "1%", "marginRight": "1%", "float": "left" }}>
|
||||
<Button variant="outlined"
|
||||
onClick={(event) => {
|
||||
setdocument_principal_ou_corp_mail("1");
|
||||
|
@ -3067,7 +3068,7 @@ const Config_Documents_Super_Admin = (props) => {
|
|||
</div>}
|
||||
|
||||
|
||||
{p_detail_joint_pdf === true && String(document_principal_ou_corp_mail) === "2" &&
|
||||
{p_detail_joint_pdf === true && p_detail_type_doc === "email" && String(document_principal_ou_corp_mail) === "2" &&
|
||||
<div style={{ "width": "98%", "marginLeft": "1%", "marginRight": "1%", "float": "left" }}>
|
||||
|
||||
<div className="titre_training_text"> Modifier le Corps du mail </div>
|
||||
|
@ -3386,7 +3387,7 @@ const Config_Documents_Super_Admin = (props) => {
|
|||
|
||||
<div className="div_row" >
|
||||
|
||||
{p_detail_joint_pdf === true && <div className="div_row" style={{ "border": "None", "width": "98%", "marginLeft": "1%", "marginRight": "1%", "float": "left" }}>
|
||||
{p_detail_joint_pdf === true && p_detail_type_doc === "email" && <div className="div_row" style={{ "border": "None", "width": "98%", "marginLeft": "1%", "marginRight": "1%", "float": "left" }}>
|
||||
<Button variant="outlined"
|
||||
onClick={(event) => {
|
||||
setdocument_principal_ou_corp_mail("1");
|
||||
|
@ -3400,7 +3401,7 @@ const Config_Documents_Super_Admin = (props) => {
|
|||
</div>}
|
||||
|
||||
|
||||
{p_detail_joint_pdf === true && String(document_principal_ou_corp_mail) === "2" &&
|
||||
{p_detail_joint_pdf === true && p_detail_type_doc === "email" && String(document_principal_ou_corp_mail) === "2" &&
|
||||
<div style={{ "width": "98%", "marginLeft": "1%", "marginRight": "1%", "float": "left" }}>
|
||||
|
||||
<div className="titre_training_text"> Créer le Corps du mail </div>
|
||||
|
|
|
@ -1,25 +1,18 @@
|
|||
import React, { useState, useEffect } from "react";
|
||||
import ReactPlayer from 'react-player'
|
||||
import { FacebookShareButton, LinkedinShareButton, TwitterShareButton } from "react-share";
|
||||
import { SocialIcon } from 'react-social-icons';
|
||||
import { Button, } from "reactstrap";
|
||||
|
||||
import { useHistory } from "react-router-dom";
|
||||
import { Helmet } from "react-helmet";
|
||||
|
||||
import { useCookies } from "react-cookie";
|
||||
import { confirmAlert } from 'react-confirm-alert';
|
||||
import topimg from "../mysy_img/top.png";
|
||||
import coeurimg from "../mysy_img/coeur.png";
|
||||
|
||||
import img_met_program from "../mysy_img/met_programmation.jpg";
|
||||
import img_met_hotel from "../mysy_img/met_hotel.jpg";
|
||||
|
||||
import img_met_graphisme from "../mysy_img/metier_graphisme.jpg";
|
||||
|
||||
import img_met_autre from "../mysy_img/met_autre.jpg";
|
||||
import img_met_digital from "../mysy_img/met_digital.jpg";
|
||||
import img_met_management from "../mysy_img/met_management.jpg";
|
||||
import img_met_projet from "../mysy_img/met_projet.jpg";
|
||||
|
||||
import img_met_market from "../mysy_img/met_market.jpg";
|
||||
import img_met_autre2 from "../mysy_img/met_autre2.jpg";
|
||||
import img_met_dev_perso from "../mysy_img/metier_dev_perso.jpg";
|
||||
import img_met_rh from "../mysy_img/met_rh.jpg";
|
||||
|
||||
|
@ -30,7 +23,7 @@ import axios from "axios";
|
|||
import Rating from '@mui/material/Rating';
|
||||
import parse from 'html-react-parser'
|
||||
import { CiLocationOn } from "react-icons/ci";
|
||||
|
||||
|
||||
const New_C_Formation_2025 = (props) => {
|
||||
const [userconnected, setuserconnected] = useState("0");
|
||||
const [partnerconnected, setpartnerconnected] = useState("0");
|
||||
|
@ -92,8 +85,6 @@ const New_C_Formation_2025 = (props) => {
|
|||
|
||||
var myurl = process.env.REACT_APP_API_URL + "myclass/api/getRecodedClassImage_no_token/";
|
||||
|
||||
|
||||
|
||||
var form = new FormData();
|
||||
|
||||
form.append("type", "partner");
|
||||
|
@ -101,13 +92,13 @@ const New_C_Formation_2025 = (props) => {
|
|||
form.append("related_collection_recid", props.formation._id);
|
||||
form.append("class_external_code", props.formation.external_code);
|
||||
|
||||
|
||||
axios.post(myurl, form).then(res => {
|
||||
|
||||
if (res.data.status != "False") {
|
||||
// console.log(" getClassImage_no_token : In test res.data.status = ", res.data.status);
|
||||
if (String(res.data.status) === "true") {
|
||||
|
||||
//console.log(" getClassImage : In test res.data.status = " + res.data.status);
|
||||
//console.log(" getClassImage: res.data.message.img = " + res.data.message);
|
||||
|
||||
//console.log(" getClassImage_no_token: res.data.message.img = ", res.data.message);
|
||||
|
||||
if (res.data.message.img.length > 0) {
|
||||
setisclassimage("True");
|
||||
|
@ -118,9 +109,11 @@ const New_C_Formation_2025 = (props) => {
|
|||
setisclassimage(res.data.message.img);
|
||||
var ch_img = "data:image/png;base64," + res.data.message.img;
|
||||
setclass_img_stored_in_bdd(ch_img);
|
||||
// console.log(" getClassImage_no_token: setclass_img_stored_in_bdd = ", setclass_img_stored_in_bdd);
|
||||
|
||||
}
|
||||
else {
|
||||
//console.log(" In Erreur res.data.status = " + res.data.status);
|
||||
// console.log(" In Erreur res.data.status = " + res.data.status);
|
||||
//console.log(" In Erreur res.data.message = " + res.data.message);
|
||||
setisclassimage("False");
|
||||
setuserimgclassprofil();
|
||||
|
@ -147,6 +140,9 @@ const New_C_Formation_2025 = (props) => {
|
|||
useEffect(() => {
|
||||
setmyfilter(props.myfil);
|
||||
|
||||
// console.log(" #### useEffect props.formation = ", props.formation);
|
||||
|
||||
|
||||
if (typeof (stored_user) === "undefined" || String(stored_user) === '') {
|
||||
setuserconnected("0");
|
||||
} else {
|
||||
|
@ -357,11 +353,15 @@ const New_C_Formation_2025 = (props) => {
|
|||
|
||||
|
||||
{class_img_stored_in_bdd && String(class_img_stored_in_bdd).length > 50 &&
|
||||
<img src={props.formation.img_url} alt="Course" style={styles.image} />
|
||||
}
|
||||
<img src={class_img_stored_in_bdd} alt="Formation" style={styles.image} />
|
||||
}
|
||||
|
||||
{(!class_img_stored_in_bdd || String(class_img_stored_in_bdd).length < 50) &&
|
||||
(!props.formation.img_url || String(props.formation.img_url).length <= 10) &&
|
||||
String(ismetiermanaged) !== "0" && String(ismetiermanaged) !== "1" &&
|
||||
|
||||
{(!class_img_stored_in_bdd || String(class_img_stored_in_bdd).length < 50) && String(ismetiermanaged) !== "0" && String(ismetiermanaged) !== "1" &&
|
||||
<div >
|
||||
|
||||
{(!props.formation.img_url || String(props.formation.img_url).length <= 0) &&
|
||||
props.formation.metier && String(props.formation.metier).toLocaleLowerCase() === String("it") &&
|
||||
String(isclassimage) === "False" && <img src={img_met_program} alt="informatique" style={styles.image} />}
|
||||
|
@ -400,23 +400,26 @@ const New_C_Formation_2025 = (props) => {
|
|||
</div>
|
||||
}
|
||||
|
||||
{(!class_img_stored_in_bdd || String(class_img_stored_in_bdd).length < 50) && String(ismetiermanaged) === "0" && String(userimgclassprofil).length > 100 && <div>
|
||||
<img src={userimgclassprofil} alt="autre" style={styles.image} />
|
||||
{/*props.formation.institut_formation && <div style={{ width: '100%', "textAlign": "center" }}> Dispensé par :<br />
|
||||
{(!class_img_stored_in_bdd || String(class_img_stored_in_bdd).length < 50) && String(ismetiermanaged) === "0" && String(userimgclassprofil).length > 100 &&
|
||||
<div>
|
||||
<img src={userimgclassprofil} alt="autre" style={styles.image} />
|
||||
{/*props.formation.institut_formation && <div style={{ width: '100%', "textAlign": "center" }}> Dispensé par :<br />
|
||||
{String(props.formation.institut_formation)} </div>*/}
|
||||
</div>}
|
||||
</div>}
|
||||
|
||||
{(!class_img_stored_in_bdd || String(class_img_stored_in_bdd).length < 50) && String(ismetiermanaged) === "0" && String(userimgclassprofil).length <= 100 && <div>
|
||||
<img src={img_met_autre} alt="autre" style={styles.image} />
|
||||
{/*props.formation.institut_formation && <div style={{ width: '100%', "textAlign": "center" }}> Dispensé par :<br />
|
||||
{(!class_img_stored_in_bdd || String(class_img_stored_in_bdd).length < 50) && String(ismetiermanaged) === "0" && String(userimgclassprofil).length <= 100 &&
|
||||
<div>
|
||||
<img src={img_met_autre} alt="autre" style={styles.image} />
|
||||
{/*props.formation.institut_formation && <div style={{ width: '100%', "textAlign": "center" }}> Dispensé par :<br />
|
||||
{String(props.formation.institut_formation)} </div>*/}
|
||||
</div>}
|
||||
</div>}
|
||||
|
||||
{(!class_img_stored_in_bdd || String(class_img_stored_in_bdd).length < 50) && String(ismetiermanaged) === "1" && <div>
|
||||
<img src={props.formation.img_url} alt="autre" style={styles.image} />
|
||||
{/*props.formation.institut_formation && <div style={{ width: '100%', "textAlign": "center" }}> Dispensé par : <br />
|
||||
{(!class_img_stored_in_bdd || String(class_img_stored_in_bdd).length < 50) && String(ismetiermanaged) === "1" &&
|
||||
<div>
|
||||
<img src={props.formation.img_url} alt="autre" style={styles.image} />
|
||||
{/*props.formation.institut_formation && <div style={{ width: '100%', "textAlign": "center" }}> Dispensé par : <br />
|
||||
{String(props.formation.institut_formation)} </div>*/}
|
||||
</div>}
|
||||
</div>}
|
||||
|
||||
|
||||
<div className="block_main_contente">
|
||||
|
|
|
@ -2248,7 +2248,7 @@ const New_C_Detail_Formation_2025 = (props) => {
|
|||
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>}
|
||||
|
||||
|
|
|
@ -6897,7 +6897,7 @@
|
|||
|
||||
|
||||
.block_info_page_pave_title_desc_title {
|
||||
|
||||
|
||||
|
||||
height: 24px;
|
||||
|
||||
|
@ -6926,7 +6926,6 @@
|
|||
.block_info_page_pave_title_desc_desc {
|
||||
width: 100%;
|
||||
|
||||
|
||||
font-family: Roboto, Verdana, Georgia, Arial, 'Times New Roman';
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
|
@ -6951,24 +6950,22 @@
|
|||
|
||||
.programme_block {
|
||||
font-family: 'Inter';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 16px;
|
||||
line-height: 160%;
|
||||
/* or 26px */
|
||||
font-feature-settings: 'liga' off;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 16px;
|
||||
line-height: 160%;
|
||||
/* or 26px */
|
||||
font-feature-settings: 'liga' off;
|
||||
|
||||
/* Foundation /Blue-Grey/Normal */
|
||||
color: #4B5162;
|
||||
|
||||
|
||||
/* Inside auto layout */
|
||||
flex: none;
|
||||
order: 1;
|
||||
align-self: stretch;
|
||||
flex-grow: 0;
|
||||
/* Foundation /Blue-Grey/Normal */
|
||||
color: #4B5162;
|
||||
|
||||
|
||||
/* Inside auto layout */
|
||||
flex: none;
|
||||
order: 1;
|
||||
align-self: stretch;
|
||||
flex-grow: 0;
|
||||
|
||||
}
|
||||
|
||||
|
@ -6996,22 +6993,22 @@ flex-grow: 0;
|
|||
|
||||
.objectif_block {
|
||||
font-family: 'Inter';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 16px;
|
||||
line-height: 160%;
|
||||
/* or 26px */
|
||||
font-feature-settings: 'liga' off;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 16px;
|
||||
line-height: 160%;
|
||||
/* or 26px */
|
||||
font-feature-settings: 'liga' off;
|
||||
|
||||
/* Foundation /Blue-Grey/Normal */
|
||||
color: #4B5162;
|
||||
/* Foundation /Blue-Grey/Normal */
|
||||
color: #4B5162;
|
||||
|
||||
|
||||
/* Inside auto layout */
|
||||
flex: none;
|
||||
order: 1;
|
||||
align-self: stretch;
|
||||
flex-grow: 0;
|
||||
/* Inside auto layout */
|
||||
flex: none;
|
||||
order: 1;
|
||||
align-self: stretch;
|
||||
flex-grow: 0;
|
||||
|
||||
}
|
||||
|
||||
|
@ -7020,22 +7017,44 @@ flex-grow: 0;
|
|||
min-height: 5rem;
|
||||
overflow: auto;
|
||||
padding: 10px;
|
||||
font-family: Roboto, Verdana, Georgia, Arial, 'Times New Roman';
|
||||
line-height: 30px;
|
||||
font-size: 14px;
|
||||
padding: 0px;
|
||||
font-family: 'Inter';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 16px;
|
||||
line-height: 160%;
|
||||
/* or 26px */
|
||||
font-feature-settings: 'liga' off;
|
||||
|
||||
/* Foundation /Blue-Grey/Normal */
|
||||
color: #4B5162;
|
||||
|
||||
|
||||
/* Inside auto layout */
|
||||
flex: none;
|
||||
order: 1;
|
||||
align-self: stretch;
|
||||
flex-grow: 0;
|
||||
}
|
||||
|
||||
|
||||
.pourqui_block {
|
||||
max-height: 7rem;
|
||||
min-height: 5rem;
|
||||
overflow: auto;
|
||||
padding: 10px;
|
||||
font-family: Roboto, Verdana, Georgia, Arial, 'Times New Roman';
|
||||
line-height: 30px;
|
||||
font-size: 14px;
|
||||
padding: 0px;
|
||||
font-family: 'Inter';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 16px;
|
||||
line-height: 160%;
|
||||
/* or 26px */
|
||||
font-feature-settings: 'liga' off;
|
||||
|
||||
/* Foundation /Blue-Grey/Normal */
|
||||
color: #4B5162;
|
||||
|
||||
|
||||
/* Inside auto layout */
|
||||
flex: none;
|
||||
order: 1;
|
||||
align-self: stretch;
|
||||
flex-grow: 0;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -29,8 +29,6 @@ import 'react-input-range/lib/css/index.css';
|
|||
import tick_ko from "../../mysy_img/tick_KO.png";
|
||||
|
||||
|
||||
|
||||
import mysy_logo2 from "../../mysy_img2/Logo_MySy.png"
|
||||
import { AiTwotoneFolder } from "react-icons/ai";
|
||||
|
||||
import Dialog from '@mui/material/Dialog';
|
||||
|
@ -39,9 +37,6 @@ import DialogContent from '@mui/material/DialogContent';
|
|||
import DialogContentText from '@mui/material/DialogContentText';
|
||||
import DialogTitle from '@mui/material/DialogTitle';
|
||||
|
||||
import Box from '@mui/material/Box';
|
||||
import TextField from '@mui/material/TextField';
|
||||
|
||||
import { CiCircleRemove, CiCircleMinus } from "react-icons/ci";
|
||||
|
||||
let PageSize = 10;
|
||||
|
@ -1420,7 +1415,7 @@ const New_C_Marketplace_2025 = () => {
|
|||
axios.post(myurl, form).then(res => {
|
||||
if (String(res.data.status) != String("false")) {
|
||||
//console.log(" In test res.data.status = " + res.data.status);
|
||||
//console.log(" In test res.data.message = " + res.data.message);
|
||||
// console.log(" In searchFunction res.data.message = " + res.data.message);
|
||||
setmyApiResponse("True");
|
||||
setResult(res.data.message)
|
||||
|
||||
|
@ -3751,7 +3746,7 @@ const New_C_Marketplace_2025 = () => {
|
|||
</div>}
|
||||
|
||||
<div className="block_display_flex_formation">
|
||||
|
||||
|
||||
{result && myApiResponse == "True" && fin == 0 && !newresult &&
|
||||
result.slice(0, PageSize).map((formation) => (
|
||||
<div className="block_formation" ref={inputEl} id="inputEl_element">
|
||||
|
@ -3774,7 +3769,7 @@ const New_C_Marketplace_2025 = () => {
|
|||
{result && myApiResponse === "True" && fin === 1 && !newresult
|
||||
&& currentTableData2
|
||||
&& currentTableData2.map((formation) => (
|
||||
<div className="block_formation" >
|
||||
<div className="block_formation" >
|
||||
<New_C_Formation_2025 formation={JSON.parse(formation)} key={JSON.parse(formation).title} />
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in New Issue