23/03/2026 - 20h
parent
e76988e21f
commit
f201e45460
|
|
@ -277,7 +277,7 @@ const DisplayDetailClassAction = (props) => {
|
|||
axios.post(myurl, form).then(res => {
|
||||
if (String(res.data.status) !== String("false")) {
|
||||
//console.log(" In Display res.data.status = " + res.data.status);
|
||||
console.log(" In Display res.data.message = " + res.data.message);
|
||||
// console.log(" In Display res.data.message = " + res.data.message);
|
||||
if (res.data.message.length > 0) {
|
||||
setmyApiResponse("True");
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import SendIcon from '@mui/icons-material/Send';
|
|||
import { useParams } from 'react-router-dom'
|
||||
import axios from "axios";
|
||||
import Popup from 'reactjs-popup';
|
||||
import 'reactjs-popup/dist/index.css';
|
||||
import 'reactjs-popup/dist/index.css';
|
||||
|
||||
import { Helmet } from "react-helmet";
|
||||
import 'react-slideshow-image/dist/styles.css'
|
||||
|
|
@ -90,7 +90,7 @@ const Display_Partner_Catalog_DetailClass_new_v2 = (props) => {
|
|||
const [ratingvalue, setratingvalue] = useState(0);
|
||||
|
||||
const [text_size, settext_size] = useState("0");
|
||||
|
||||
const [partnaire_tva, setpartnaire_tva] = useState("");
|
||||
|
||||
// Gestion des Cookies
|
||||
const stored_partner = cookie_part.tokenmysypart;
|
||||
|
|
@ -489,7 +489,7 @@ const Display_Partner_Catalog_DetailClass_new_v2 = (props) => {
|
|||
|
||||
axios.post(myurl, form).then(res => {
|
||||
// console.log(" In Display res.data.status = " + res.data.status);
|
||||
console.log(" In Display res.data.message = " + res.data.message);
|
||||
// console.log(" In Display res.data.message = " + res.data.message);
|
||||
if (String(res.data.status) === String("true")) {
|
||||
|
||||
if (res.data.message.length > 0) {
|
||||
|
|
@ -569,6 +569,20 @@ const Display_Partner_Catalog_DetailClass_new_v2 = (props) => {
|
|||
setratingvalue(JSON.parse(res.data.message).note);
|
||||
}
|
||||
|
||||
if (JSON.parse(res.data.message).partnaire_tva) {
|
||||
setpartnaire_tva(JSON.parse(res.data.message).partnaire_tva);
|
||||
} else {
|
||||
setpartnaire_tva("");
|
||||
}
|
||||
|
||||
|
||||
if (JSON.parse(res.data.message).inscription_direct) {
|
||||
setmytrainingpreinscription(JSON.parse(res.data.message).inscription_direct);
|
||||
} else {
|
||||
setmytrainingpreinscription("");
|
||||
}
|
||||
|
||||
|
||||
if (JSON.parse(res.data.message).isdatadock) {
|
||||
setisdatadock(JSON.parse(res.data.message).isdatadock);
|
||||
}
|
||||
|
|
@ -926,58 +940,67 @@ const Display_Partner_Catalog_DetailClass_new_v2 = (props) => {
|
|||
setinscritpion("1");
|
||||
}
|
||||
if (window.screen.width < 601) {
|
||||
var meme_orga_top = document.getElementById('mob_block_cross_sell_cat').style.top;
|
||||
var displaydetailclass_new_v2_hei = document.getElementById('mobile').style.height;
|
||||
var sticky_div_hilight_top = "1300";
|
||||
if (document.getElementById("mob_block_cross_sell_cat") && document.getElementById("mobile") && document.getElementById("sticky_div_hilight_pave") ) {
|
||||
var meme_orga_top = document.getElementById('mob_block_cross_sell_cat').style.top;
|
||||
var displaydetailclass_new_v2_hei = document.getElementById('mobile').style.height;
|
||||
var sticky_div_hilight_top = "1300";
|
||||
|
||||
|
||||
var new_meme_orga_top = parseInt(meme_orga_top) + 900;
|
||||
var new_displaydetailclass_new_v2_hei = parseInt(displaydetailclass_new_v2_hei) + 900;
|
||||
var new_sticky_div_hilight_top = parseInt(sticky_div_hilight_top) + 900;
|
||||
|
||||
document.getElementById('mob_block_cross_sell_cat').style.top = new_meme_orga_top + "px";
|
||||
document.getElementById('mobile').style.height = new_displaydetailclass_new_v2_hei + "px";
|
||||
document.getElementById('sticky_div_hilight_pave').style.top = new_sticky_div_hilight_top + "px";
|
||||
var new_meme_orga_top = parseInt(meme_orga_top) + 900;
|
||||
var new_displaydetailclass_new_v2_hei = parseInt(displaydetailclass_new_v2_hei) + 900;
|
||||
var new_sticky_div_hilight_top = parseInt(sticky_div_hilight_top) + 900;
|
||||
|
||||
document.getElementById('mob_block_cross_sell_cat').style.top = new_meme_orga_top + "px";
|
||||
document.getElementById('mobile').style.height = new_displaydetailclass_new_v2_hei + "px";
|
||||
document.getElementById('sticky_div_hilight_pave').style.top = new_sticky_div_hilight_top + "px";
|
||||
}
|
||||
window.scrollTo(0, 500);
|
||||
|
||||
}
|
||||
else if (window.screen.width >= 601 && window.screen.width <= 991) {
|
||||
var meme_orga_top = document.getElementById('block_crossell_meme_orga').style.top;
|
||||
var displaydetailclass_new_v2_hei = document.getElementById('desktop').style.height;
|
||||
var new_meme_orga_top = parseInt(meme_orga_top) + 900;
|
||||
var new_displaydetailclass_new_v2_hei = parseInt(displaydetailclass_new_v2_hei) + 900;
|
||||
document.getElementById('block_crossell_meme_orga').style.top = new_meme_orga_top + "px";
|
||||
document.getElementById('desktop').style.height = new_displaydetailclass_new_v2_hei + "px";
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
if (document.getElementById("block_crossell_meme_orga") && document.getElementById("desktop")) {
|
||||
var meme_orga_top = document.getElementById('block_crossell_meme_orga').style.top;
|
||||
var displaydetailclass_new_v2_hei = document.getElementById('desktop').style.height;
|
||||
var new_meme_orga_top = parseInt(meme_orga_top) + 900;
|
||||
var new_displaydetailclass_new_v2_hei = parseInt(displaydetailclass_new_v2_hei) + 900;
|
||||
document.getElementById('block_crossell_meme_orga').style.top = new_meme_orga_top + "px";
|
||||
document.getElementById('desktop').style.height = new_displaydetailclass_new_v2_hei + "px";
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
else if (window.screen.width >= 992 && window.screen.width <= 1199) {
|
||||
var meme_orga_top = document.getElementById('block_crossell_meme_orga').style.top;
|
||||
var displaydetailclass_new_v2_hei = document.getElementById('desktop').style.height;
|
||||
var new_meme_orga_top = parseInt(meme_orga_top) + 500;
|
||||
var new_displaydetailclass_new_v2_hei = parseInt(displaydetailclass_new_v2_hei) + 500;
|
||||
document.getElementById('block_crossell_meme_orga').style.top = new_meme_orga_top + "px";
|
||||
document.getElementById('desktop').style.height = new_displaydetailclass_new_v2_hei + "px";
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
if (document.getElementById("block_crossell_meme_orga") && document.getElementById("desktop")) {
|
||||
var meme_orga_top = document.getElementById('block_crossell_meme_orga').style.top;
|
||||
var displaydetailclass_new_v2_hei = document.getElementById('desktop').style.height;
|
||||
var new_meme_orga_top = parseInt(meme_orga_top) + 500;
|
||||
var new_displaydetailclass_new_v2_hei = parseInt(displaydetailclass_new_v2_hei) + 500;
|
||||
document.getElementById('block_crossell_meme_orga').style.top = new_meme_orga_top + "px";
|
||||
document.getElementById('desktop').style.height = new_displaydetailclass_new_v2_hei + "px";
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
}
|
||||
}
|
||||
else if (window.screen.width >= 1200) {
|
||||
var meme_orga_top = document.getElementById('block_crossell_meme_orga').style.top;
|
||||
var displaydetailclass_new_v2_hei = document.getElementById('desktop').style.height;
|
||||
var new_meme_orga_top = parseInt(meme_orga_top) + 500;
|
||||
var new_displaydetailclass_new_v2_hei = parseInt(displaydetailclass_new_v2_hei) + 500;
|
||||
document.getElementById('block_crossell_meme_orga').style.top = new_meme_orga_top + "px";
|
||||
document.getElementById('desktop').style.height = new_displaydetailclass_new_v2_hei + "px";
|
||||
if (document.getElementById("block_crossell_meme_orga") && document.getElementById("desktop")) {
|
||||
var meme_orga_top = document.getElementById('block_crossell_meme_orga').style.top;
|
||||
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
var displaydetailclass_new_v2_hei = document.getElementById('desktop').style.height;
|
||||
var new_meme_orga_top = parseInt(meme_orga_top) + 500;
|
||||
var new_displaydetailclass_new_v2_hei = parseInt(displaydetailclass_new_v2_hei) + 500;
|
||||
document.getElementById('block_crossell_meme_orga').style.top = new_meme_orga_top + "px";
|
||||
document.getElementById('desktop').style.height = new_displaydetailclass_new_v2_hei + "px";
|
||||
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -1432,7 +1455,7 @@ const Display_Partner_Catalog_DetailClass_new_v2 = (props) => {
|
|||
});
|
||||
}
|
||||
|
||||
|
||||
const [mytrainingdirectinscription, setmytrainingpreinscription] = useState("");
|
||||
return (
|
||||
|
||||
<div className="displaydetailclass_new_v3 new_detail_formation_2025">
|
||||
|
|
@ -1896,13 +1919,15 @@ const Display_Partner_Catalog_DetailClass_new_v2 = (props) => {
|
|||
{String(inscritpion) === "2" && <div>
|
||||
|
||||
<Inscription internal_url={DetailTraining["internal_url"]} action="information"
|
||||
Close_info_form={Close_info_form} trainig_price={class_sales_price} inscritpion={inscritpion} />
|
||||
Close_info_form={Close_info_form} trainig_price={class_sales_price} inscritpion={inscritpion}
|
||||
mytrainingdirectinscription={mytrainingdirectinscription} />
|
||||
|
||||
</div>
|
||||
}
|
||||
{String(inscritpion) === "1" && <div className="description detail_element">
|
||||
<Inscription internal_url={DetailTraining["internal_url"]} action="inscription"
|
||||
Close_info_form={Close_inscrip_form} trainig_price={class_sales_price} inscritpion={inscritpion} />
|
||||
Close_info_form={Close_inscrip_form} trainig_price={class_sales_price} inscritpion={inscritpion}
|
||||
mytrainingdirectinscription={mytrainingdirectinscription} />
|
||||
|
||||
</div>
|
||||
|
||||
|
|
@ -2359,14 +2384,16 @@ const Display_Partner_Catalog_DetailClass_new_v2 = (props) => {
|
|||
|
||||
{String(inscritpion) === "1" && <div className="description detail_element">
|
||||
<Inscription internal_url={DetailTraining["internal_url"]} action="inscription"
|
||||
Close_info_form={Close_info_form} trainig_price={class_sales_price} inscritpion={inscritpion} />
|
||||
Close_info_form={Close_info_form} trainig_price={class_sales_price} inscritpion={inscritpion}
|
||||
mytrainingdirectinscription={mytrainingdirectinscription} />
|
||||
</div>
|
||||
|
||||
}
|
||||
|
||||
{String(inscritpion) === "2" && <div className="description detail_element">
|
||||
<Inscription internal_url={DetailTraining["internal_url"]} action="information"
|
||||
Close_info_form={Close_inscrip_form} trainig_price={class_sales_price} inscritpion={inscritpion} />
|
||||
Close_info_form={Close_inscrip_form} trainig_price={class_sales_price} inscritpion={inscritpion}
|
||||
mytrainingdirectinscription={mytrainingdirectinscription} />
|
||||
|
||||
</div>
|
||||
|
||||
|
|
@ -2376,7 +2403,8 @@ const Display_Partner_Catalog_DetailClass_new_v2 = (props) => {
|
|||
&& String(action).toLocaleLowerCase() !== "evaluation"
|
||||
&& <div className="description detail_element" name='section_info'>
|
||||
|
||||
<Inscription internal_url={classId} action={action} trainig_price={class_sales_price} inscritpion={inscritpion} />
|
||||
<Inscription internal_url={classId} action={action} trainig_price={class_sales_price} inscritpion={inscritpion}
|
||||
mytrainingdirectinscription={mytrainingdirectinscription} />
|
||||
</div>
|
||||
}
|
||||
|
||||
|
|
@ -2384,7 +2412,8 @@ const Display_Partner_Catalog_DetailClass_new_v2 = (props) => {
|
|||
&& <div className="description detail_element" name='section_info'>
|
||||
|
||||
|
||||
<Inscription internal_url={classId} action={"evaluation"} eval_token={action} inscritpion={inscritpion} />
|
||||
<Inscription internal_url={classId} action={"evaluation"} eval_token={action} inscritpion={inscritpion}
|
||||
mytrainingdirectinscription={mytrainingdirectinscription} />
|
||||
</div>
|
||||
}
|
||||
|
||||
|
|
@ -2697,7 +2726,7 @@ const Display_Partner_Catalog_DetailClass_new_v2 = (props) => {
|
|||
|
||||
{String(DetailTraining["price"]) && String(DetailTraining["price"]) !== String("0") && (!DetailTraining.business_prices || Object.keys(DetailTraining.business_prices).length <= 0)
|
||||
&& DetailTraining["price"] && <div className="block_prix_2025">
|
||||
<div className="block_sticky_info_price"> {String(DetailTraining["price"])} €
|
||||
<div className="block_sticky_info_price"> {String(DetailTraining["price"])} €
|
||||
{parseFloat(String(DetailTraining["partnaire_tva"])) > 0 && <> HT </>}
|
||||
{parseFloat(String(DetailTraining["partnaire_tva"])) <= 0 && <> TTC </>}
|
||||
|
||||
|
|
|
|||
|
|
@ -1554,7 +1554,7 @@ function Inscription_Information(props) {
|
|||
|
||||
</> */}
|
||||
|
||||
|
||||
|
||||
{props.mytrainingdirectinscription !== "1" && <>
|
||||
<div style={{ "width": "10%" }}> </div>
|
||||
<div className="titre1_aide_finance" style={{ fontFamily: 'DM Sans' }}> Nous vous aidons à financer la formation</div>
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -311,7 +311,7 @@ const New_C_Detail_Formation_2025 = (props) => {
|
|||
|
||||
const [myclassimage, setmyclassimage] = useState();
|
||||
const [isclassimage, setisclassimage] = useState("False");
|
||||
const [userimgclassprofil, setuserimgclassprofil] = useState("");
|
||||
const [userimgclassprofil, setuserimgclassprofil] = useState("");
|
||||
|
||||
const [class_img_stored_in_bdd, setclass_img_stored_in_bdd] = useState("");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue