recette2
cherif 2025-05-24 14:44:01 +02:00
parent 90cee8c6ec
commit 21b878092c
6 changed files with 116 additions and 98 deletions

View File

@ -3096,7 +3096,7 @@ const Config_Documents = (props) => {
</div> </div>
{String(partner_document_data_edit_mode) !== "1" && <div className="div_row"> {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" <Button variant="outlined"
onClick={(event) => { onClick={(event) => {
setdocument_principal_ou_corp_mail("1"); setdocument_principal_ou_corp_mail("1");
@ -3110,7 +3110,7 @@ const Config_Documents = (props) => {
</div>} </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 style={{ "width": "98%", "marginLeft": "1%", "marginRight": "1%", "float": "left" }}>
<div className="titre_training_text"> Corps du mail </div> <div className="titre_training_text"> Corps du mail </div>
@ -3180,7 +3180,7 @@ const Config_Documents = (props) => {
<div className="div_row" > <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" <Button variant="outlined"
onClick={(event) => { onClick={(event) => {
setdocument_principal_ou_corp_mail("1"); setdocument_principal_ou_corp_mail("1");
@ -3194,7 +3194,7 @@ const Config_Documents = (props) => {
</div>} </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 style={{ "width": "98%", "marginLeft": "1%", "marginRight": "1%", "float": "left" }}>
<div className="titre_training_text"> Modifier le Corps du mail </div> <div className="titre_training_text"> Modifier le Corps du mail </div>
@ -3556,7 +3556,7 @@ const Config_Documents = (props) => {
<div className="div_row" > <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" <Button variant="outlined"
onClick={(event) => { onClick={(event) => {
setdocument_principal_ou_corp_mail("1"); setdocument_principal_ou_corp_mail("1");
@ -3570,7 +3570,7 @@ const Config_Documents = (props) => {
</div>} </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 style={{ "width": "98%", "marginLeft": "1%", "marginRight": "1%", "float": "left" }}>
<div className="titre_training_text"> Créer le Corps du mail </div> <div className="titre_training_text"> Créer le Corps du mail </div>

View File

@ -2969,7 +2969,8 @@ const Config_Documents_Super_Admin = (props) => {
</div> </div>
{String(partner_document_data_edit_mode) !== "1" && <div className="div_row"> {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" <Button variant="outlined"
onClick={(event) => { onClick={(event) => {
setdocument_principal_ou_corp_mail("1"); setdocument_principal_ou_corp_mail("1");
@ -2983,7 +2984,7 @@ const Config_Documents_Super_Admin = (props) => {
</div>} </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 style={{ "width": "98%", "marginLeft": "1%", "marginRight": "1%", "float": "left" }}>
<div className="titre_training_text"> Corps du mail </div> <div className="titre_training_text"> Corps du mail </div>
@ -3053,7 +3054,7 @@ const Config_Documents_Super_Admin = (props) => {
<div className="div_row" > <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" <Button variant="outlined"
onClick={(event) => { onClick={(event) => {
setdocument_principal_ou_corp_mail("1"); setdocument_principal_ou_corp_mail("1");
@ -3067,7 +3068,7 @@ const Config_Documents_Super_Admin = (props) => {
</div>} </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 style={{ "width": "98%", "marginLeft": "1%", "marginRight": "1%", "float": "left" }}>
<div className="titre_training_text"> Modifier le Corps du mail </div> <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" > <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" <Button variant="outlined"
onClick={(event) => { onClick={(event) => {
setdocument_principal_ou_corp_mail("1"); setdocument_principal_ou_corp_mail("1");
@ -3400,7 +3401,7 @@ const Config_Documents_Super_Admin = (props) => {
</div>} </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 style={{ "width": "98%", "marginLeft": "1%", "marginRight": "1%", "float": "left" }}>
<div className="titre_training_text"> Créer le Corps du mail </div> <div className="titre_training_text"> Créer le Corps du mail </div>

View File

@ -1,25 +1,18 @@
import React, { useState, useEffect } from "react"; 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 { useHistory } from "react-router-dom";
import { Helmet } from "react-helmet";
import { useCookies } from "react-cookie"; import { useCookies } from "react-cookie";
import { confirmAlert } from 'react-confirm-alert'; 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_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_graphisme from "../mysy_img/metier_graphisme.jpg";
import img_met_autre from "../mysy_img/met_autre.jpg"; import img_met_autre from "../mysy_img/met_autre.jpg";
import img_met_digital from "../mysy_img/met_digital.jpg"; import img_met_digital from "../mysy_img/met_digital.jpg";
import img_met_management from "../mysy_img/met_management.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_dev_perso from "../mysy_img/metier_dev_perso.jpg";
import img_met_rh from "../mysy_img/met_rh.jpg"; import img_met_rh from "../mysy_img/met_rh.jpg";
@ -92,8 +85,6 @@ const New_C_Formation_2025 = (props) => {
var myurl = process.env.REACT_APP_API_URL + "myclass/api/getRecodedClassImage_no_token/"; var myurl = process.env.REACT_APP_API_URL + "myclass/api/getRecodedClassImage_no_token/";
var form = new FormData(); var form = new FormData();
form.append("type", "partner"); form.append("type", "partner");
@ -101,13 +92,13 @@ const New_C_Formation_2025 = (props) => {
form.append("related_collection_recid", props.formation._id); form.append("related_collection_recid", props.formation._id);
form.append("class_external_code", props.formation.external_code); form.append("class_external_code", props.formation.external_code);
axios.post(myurl, form).then(res => { 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) { if (res.data.message.img.length > 0) {
setisclassimage("True"); setisclassimage("True");
@ -118,9 +109,11 @@ const New_C_Formation_2025 = (props) => {
setisclassimage(res.data.message.img); setisclassimage(res.data.message.img);
var ch_img = "data:image/png;base64," + res.data.message.img; var ch_img = "data:image/png;base64," + res.data.message.img;
setclass_img_stored_in_bdd(ch_img); setclass_img_stored_in_bdd(ch_img);
// console.log(" getClassImage_no_token: setclass_img_stored_in_bdd = ", setclass_img_stored_in_bdd);
} }
else { 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); //console.log(" In Erreur res.data.message = " + res.data.message);
setisclassimage("False"); setisclassimage("False");
setuserimgclassprofil(); setuserimgclassprofil();
@ -147,6 +140,9 @@ const New_C_Formation_2025 = (props) => {
useEffect(() => { useEffect(() => {
setmyfilter(props.myfil); setmyfilter(props.myfil);
// console.log(" #### useEffect props.formation = ", props.formation);
if (typeof (stored_user) === "undefined" || String(stored_user) === '') { if (typeof (stored_user) === "undefined" || String(stored_user) === '') {
setuserconnected("0"); setuserconnected("0");
} else { } else {
@ -357,11 +353,15 @@ const New_C_Formation_2025 = (props) => {
{class_img_stored_in_bdd && String(class_img_stored_in_bdd).length > 50 && {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) && String(ismetiermanaged) !== "0" && String(ismetiermanaged) !== "1" && {(!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" &&
<div > <div >
{(!props.formation.img_url || String(props.formation.img_url).length <= 0) && {(!props.formation.img_url || String(props.formation.img_url).length <= 0) &&
props.formation.metier && String(props.formation.metier).toLocaleLowerCase() === String("it") && props.formation.metier && String(props.formation.metier).toLocaleLowerCase() === String("it") &&
String(isclassimage) === "False" && <img src={img_met_program} alt="informatique" style={styles.image} />} String(isclassimage) === "False" && <img src={img_met_program} alt="informatique" style={styles.image} />}
@ -400,19 +400,22 @@ const New_C_Formation_2025 = (props) => {
</div> </div>
} }
{(!class_img_stored_in_bdd || String(class_img_stored_in_bdd).length < 50) && String(ismetiermanaged) === "0" && String(userimgclassprofil).length > 100 && <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} /> <img src={userimgclassprofil} alt="autre" style={styles.image} />
{/*props.formation.institut_formation && <div style={{ width: '100%', "textAlign": "center" }}> Dispensé par :<br /> {/*props.formation.institut_formation && <div style={{ width: '100%', "textAlign": "center" }}> Dispensé par :<br />
{String(props.formation.institut_formation)} </div>*/} {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> {(!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} /> <img src={img_met_autre} alt="autre" style={styles.image} />
{/*props.formation.institut_formation && <div style={{ width: '100%', "textAlign": "center" }}> Dispensé par :<br /> {/*props.formation.institut_formation && <div style={{ width: '100%', "textAlign": "center" }}> Dispensé par :<br />
{String(props.formation.institut_formation)} </div>*/} {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> {(!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} /> <img src={props.formation.img_url} alt="autre" style={styles.image} />
{/*props.formation.institut_formation && <div style={{ width: '100%', "textAlign": "center" }}> Dispensé par : <br /> {/*props.formation.institut_formation && <div style={{ width: '100%', "textAlign": "center" }}> Dispensé par : <br />
{String(props.formation.institut_formation)} </div>*/} {String(props.formation.institut_formation)} </div>*/}

View File

@ -6926,7 +6926,6 @@
.block_info_page_pave_title_desc_desc { .block_info_page_pave_title_desc_desc {
width: 100%; width: 100%;
font-family: Roboto, Verdana, Georgia, Arial, 'Times New Roman'; font-family: Roboto, Verdana, Georgia, Arial, 'Times New Roman';
font-style: normal; font-style: normal;
font-weight: 500; font-weight: 500;
@ -6951,24 +6950,22 @@
.programme_block { .programme_block {
font-family: 'Inter'; font-family: 'Inter';
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
font-size: 16px; font-size: 16px;
line-height: 160%; line-height: 160%;
/* or 26px */ /* or 26px */
font-feature-settings: 'liga' off; font-feature-settings: 'liga' off;
/* Foundation /Blue-Grey/Normal */ /* Foundation /Blue-Grey/Normal */
color: #4B5162; 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;
} }
@ -6996,22 +6993,22 @@ flex-grow: 0;
.objectif_block { .objectif_block {
font-family: 'Inter'; font-family: 'Inter';
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
font-size: 16px; font-size: 16px;
line-height: 160%; line-height: 160%;
/* or 26px */ /* or 26px */
font-feature-settings: 'liga' off; font-feature-settings: 'liga' off;
/* Foundation /Blue-Grey/Normal */ /* Foundation /Blue-Grey/Normal */
color: #4B5162; color: #4B5162;
/* Inside auto layout */ /* Inside auto layout */
flex: none; flex: none;
order: 1; order: 1;
align-self: stretch; align-self: stretch;
flex-grow: 0; flex-grow: 0;
} }
@ -7020,22 +7017,44 @@ flex-grow: 0;
min-height: 5rem; min-height: 5rem;
overflow: auto; overflow: auto;
padding: 10px; padding: 10px;
font-family: Roboto, Verdana, Georgia, Arial, 'Times New Roman'; font-family: 'Inter';
line-height: 30px; font-style: normal;
font-size: 14px; font-weight: 400;
padding: 0px; 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 { .pourqui_block {
max-height: 7rem; font-family: 'Inter';
min-height: 5rem; font-style: normal;
overflow: auto; font-weight: 400;
padding: 10px; font-size: 16px;
font-family: Roboto, Verdana, Georgia, Arial, 'Times New Roman'; line-height: 160%;
line-height: 30px; /* or 26px */
font-size: 14px; font-feature-settings: 'liga' off;
padding: 0px;
/* Foundation /Blue-Grey/Normal */
color: #4B5162;
/* Inside auto layout */
flex: none;
order: 1;
align-self: stretch;
flex-grow: 0;
} }

View File

@ -29,8 +29,6 @@ import 'react-input-range/lib/css/index.css';
import tick_ko from "../../mysy_img/tick_KO.png"; 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 { AiTwotoneFolder } from "react-icons/ai";
import Dialog from '@mui/material/Dialog'; import Dialog from '@mui/material/Dialog';
@ -39,9 +37,6 @@ import DialogContent from '@mui/material/DialogContent';
import DialogContentText from '@mui/material/DialogContentText'; import DialogContentText from '@mui/material/DialogContentText';
import DialogTitle from '@mui/material/DialogTitle'; 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"; import { CiCircleRemove, CiCircleMinus } from "react-icons/ci";
let PageSize = 10; let PageSize = 10;
@ -1420,7 +1415,7 @@ const New_C_Marketplace_2025 = () => {
axios.post(myurl, form).then(res => { axios.post(myurl, form).then(res => {
if (String(res.data.status) != String("false")) { if (String(res.data.status) != String("false")) {
//console.log(" In test res.data.status = " + res.data.status); //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"); setmyApiResponse("True");
setResult(res.data.message) setResult(res.data.message)