05/07/23 - 20h
parent
f69ca4838c
commit
6a3e97d5aa
|
@ -29,7 +29,7 @@ import ContactezNous from "./pages/contactez_nous";
|
|||
import CoupDeCoeur from "./pages/coupdecoeur";
|
||||
import AccountUserActivated from "./pages/accountuseractivated";
|
||||
import ProduitsService from "./pages/produitservice";
|
||||
import ScrollToTop from "react-scroll-to-top";
|
||||
import scrollToTop from "react-scroll-to-top";
|
||||
import Recherche_new from "./pages/recherche_new";
|
||||
import Recherche_old from "./pages/recherche";
|
||||
import UserSignFirst from "./pages/usersigninfirst";
|
||||
|
@ -56,7 +56,7 @@ function App() {
|
|||
*/}
|
||||
<div className="main_haut">
|
||||
<BrowserRouter>
|
||||
<ScrollToTop />
|
||||
<scrollToTop />
|
||||
<Switch>
|
||||
<Route path="/" exact component={Recherche_new_v2} />
|
||||
|
||||
|
|
|
@ -540,7 +540,10 @@ function Abonnement(props) {
|
|||
|
||||
setgotocheckout("1");
|
||||
setselectedpacks(packs);
|
||||
window.scrollTo(0, 0);
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -577,14 +580,20 @@ function Abonnement(props) {
|
|||
|
||||
setgotocheckout("1");
|
||||
setselectedpacks(packs);
|
||||
window.scrollTo(0, 0);
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function confirmAbonnement(packs) {
|
||||
|
||||
window.scrollTo(0, 0);
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
|
||||
if (Client_end_date_abonnement && String(Client_end_date_abonnement).length > 3) {
|
||||
|
||||
|
@ -634,7 +643,10 @@ function Abonnement(props) {
|
|||
|
||||
setgotocheckout("1");
|
||||
setselectedpacks(packs);
|
||||
window.scrollTo(0, 0);
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -671,7 +683,10 @@ function Abonnement(props) {
|
|||
|
||||
setgotocheckout("1");
|
||||
setselectedpacks(packs);
|
||||
window.scrollTo(0, 0);
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -304,7 +304,10 @@ const AddClassManual = (props) => {
|
|||
}
|
||||
|
||||
setdatamodification("0");
|
||||
window.scrollTo(0, 0);
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
|
||||
}, [props.mytrainingclass['ref'],]);
|
||||
|
||||
|
@ -1097,7 +1100,10 @@ const AddClassManual = (props) => {
|
|||
}
|
||||
|
||||
setdatamodification("0");
|
||||
window.scrollTo(0, 0);
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -449,7 +449,10 @@ function CheckOut(props) {
|
|||
|
||||
|
||||
|
||||
window.scrollTo(0, 0);
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
}, []);
|
||||
|
||||
|
||||
|
|
|
@ -445,12 +445,18 @@ const DisplayDetailClass = (props) => {
|
|||
} else {
|
||||
setinscritpion("1");
|
||||
}
|
||||
window.scrollTo(0, 0);
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
}
|
||||
|
||||
function Contact_bton(event) {
|
||||
setinscritpion("2");
|
||||
window.scrollTo(0, 0);
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -164,7 +164,10 @@ const DisplayDetailClassAction = (props) => {
|
|||
GetCurrentClass_trainingsession();
|
||||
|
||||
funclocaltoken();
|
||||
window.scrollTo(0, 0);
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
document.getElementsByName('mytitle')[0].focus();
|
||||
|
||||
}, []);
|
||||
|
|
|
@ -179,7 +179,10 @@ const DisplayDetailClass_new_v2 = (props) => {
|
|||
|
||||
|
||||
funclocaltoken();
|
||||
window.scrollTo(0, 0);
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
|
||||
|
||||
}, []);
|
||||
|
@ -776,7 +779,10 @@ const DisplayDetailClass_new_v2 = (props) => {
|
|||
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(0, 0);
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
|
||||
}
|
||||
else if (window.screen.width >= 992 && window.screen.width <= 1199) {
|
||||
|
@ -786,7 +792,10 @@ const DisplayDetailClass_new_v2 = (props) => {
|
|||
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(0, 0);
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
}
|
||||
else if (window.screen.width >= 1200) {
|
||||
var meme_orga_top = document.getElementById('block_crossell_meme_orga').style.top;
|
||||
|
@ -796,7 +805,10 @@ const DisplayDetailClass_new_v2 = (props) => {
|
|||
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(0, 0);
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
@ -852,7 +864,10 @@ const DisplayDetailClass_new_v2 = (props) => {
|
|||
|
||||
}
|
||||
else {
|
||||
window.scrollTo(0, 0);
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1014,7 +1029,10 @@ const DisplayDetailClass_new_v2 = (props) => {
|
|||
|
||||
|
||||
}
|
||||
window.scrollTo(0, 0);
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
@ -1067,7 +1085,10 @@ const DisplayDetailClass_new_v2 = (props) => {
|
|||
}
|
||||
|
||||
|
||||
window.scrollTo(0, 0);
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -574,7 +574,10 @@ const DistplayPartnerTraningsPage = (props) => {
|
|||
useEffect(() => {
|
||||
//GetAllClass();
|
||||
GetAllClass_new();
|
||||
window.scrollTo(0, 0);
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
}, []);
|
||||
|
||||
function Clearselectedfilt1() {
|
||||
|
|
|
@ -100,7 +100,10 @@ function DisplayUserGoals(props) {
|
|||
|
||||
useEffect(() => {
|
||||
Getlistgoals();
|
||||
window.scrollTo(0, 0);
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
}, []);
|
||||
|
||||
function closeUpdateUserGoals() {
|
||||
|
|
|
@ -463,7 +463,10 @@ function Facture(props) {
|
|||
|
||||
|
||||
function confirmAbonnement(packs) {
|
||||
window.scrollTo(0, 0);
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
|
||||
if (String(packs).toLowerCase() === String("decouverte")) {
|
||||
|
||||
|
@ -493,7 +496,10 @@ function Facture(props) {
|
|||
|
||||
setgotocheckout("1");
|
||||
setselectedpacks(packs);
|
||||
window.scrollTo(0, 0);
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -530,7 +536,10 @@ function Facture(props) {
|
|||
|
||||
setgotocheckout("1");
|
||||
setselectedpacks(packs);
|
||||
window.scrollTo(0, 0);
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1147,7 +1147,10 @@ function GestionAdministrative(props) {
|
|||
GetCurrentClass_trainingsession();
|
||||
GetAttestation_Certif();
|
||||
|
||||
window.scrollTo(0, 0);
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
|
||||
}, []);
|
||||
|
||||
|
@ -1430,6 +1433,7 @@ function GestionAdministrative(props) {
|
|||
else {
|
||||
setCreateSessionFormation_api("false");
|
||||
setCreateSessionFormation_message(res.data.message);
|
||||
alert(res.data.message)
|
||||
}
|
||||
|
||||
}).catch((error) => {
|
||||
|
@ -1621,6 +1625,7 @@ function GestionAdministrative(props) {
|
|||
else {
|
||||
setone_CreateSessionFormation_api("false");
|
||||
setone_CreateSessionFormation_message(res.data.message);
|
||||
alert(res.data.message)
|
||||
}
|
||||
|
||||
}).catch((error) => {
|
||||
|
@ -1651,8 +1656,8 @@ function GestionAdministrative(props) {
|
|||
|
||||
if (String(res.data.status) === "true") {
|
||||
//console.log(" In GetCurrentSession res.data.status = " + res.data.status);
|
||||
//console.log(" In GetCurrentSession res.data.message r_class = " + res.data.message);
|
||||
//console.log(" In GetCurrentSession res.data.message len = " + String(res.data.message).length);
|
||||
console.log(" In GetCurrentSession res.data.message r_class = " + res.data.message);
|
||||
console.log(" In GetCurrentSession res.data.message len = " + String(res.data.message).length);
|
||||
|
||||
setGetCurrentSession_api("true");
|
||||
if (String(res.data.message).length > 0) {
|
||||
|
@ -1753,10 +1758,12 @@ function GestionAdministrative(props) {
|
|||
setsessionStatus(false);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
else {
|
||||
setGetCurrentSession_api("false");
|
||||
setGetCurrentSession_message(res.data.message);
|
||||
alert("Erreur : " + res.data.message);
|
||||
}
|
||||
|
||||
}).catch((error) => {
|
||||
|
@ -3749,6 +3756,47 @@ function GestionAdministrative(props) {
|
|||
/>
|
||||
</div>
|
||||
|
||||
|
||||
<div className="session_caract"> Date Debut des inscriptions *
|
||||
<DatePicker
|
||||
required
|
||||
name="one_sessiondatedebutinscription"
|
||||
id="one_sessiondatedebutinscription"
|
||||
selected={one_SessionstartDateInscription}
|
||||
onChange={(date) => {
|
||||
setone_SessionstartDateInscription(date);
|
||||
setsessionChanged(true);
|
||||
}
|
||||
|
||||
}
|
||||
showTimeSelect={false}
|
||||
//filterTime={filterPassedTime_start}
|
||||
dateFormat="dd/MM/yyyy"
|
||||
className="disabled_style enable_style"
|
||||
locale='fr-FR'
|
||||
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
||||
<div className="session_caract"> Date Fin des inscriptions *
|
||||
<DatePicker
|
||||
required
|
||||
name="one_sessiondatefininscription"
|
||||
id="one_sessiondatefininscription"
|
||||
selected={one_SessionendDateInscription}
|
||||
onChange={(date) => {
|
||||
setone_SessionendDateInscription(date);
|
||||
setsessionChanged(true);
|
||||
}
|
||||
}
|
||||
showTimeSelect={false}
|
||||
//filterTime={filterPassedTime_end}
|
||||
dateFormat="dd/MM/yyyy"
|
||||
className="disabled_style enable_style"
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
||||
<div className="session_caract">Présentiel* <i>(0 = Non, 1 = Oui) </i><br />
|
||||
<TextField
|
||||
|
@ -3893,48 +3941,7 @@ function GestionAdministrative(props) {
|
|||
</div>
|
||||
|
||||
|
||||
<div className="div_row" style={{ "border": "None" }}>
|
||||
<div className="session_caract"> Date Debut des inscriptions *
|
||||
<DatePicker
|
||||
required
|
||||
name="one_sessiondatedebutinscription"
|
||||
id="one_sessiondatedebutinscription"
|
||||
selected={one_SessionstartDateInscription}
|
||||
onChange={(date) => {
|
||||
setone_SessionstartDateInscription(date);
|
||||
setsessionChanged(true);
|
||||
}
|
||||
|
||||
}
|
||||
showTimeSelect={false}
|
||||
//filterTime={filterPassedTime_start}
|
||||
dateFormat="dd/MM/yyyy"
|
||||
className="disabled_style enable_style"
|
||||
locale='fr-FR'
|
||||
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
||||
<div className="session_caract"> Date Fin des inscriptions *
|
||||
<DatePicker
|
||||
required
|
||||
name="one_sessiondatefininscription"
|
||||
id="one_sessiondatefininscription"
|
||||
selected={one_SessionendDateInscription}
|
||||
onChange={(date) => {
|
||||
setone_SessionendDateInscription(date);
|
||||
setsessionChanged(true);
|
||||
}
|
||||
}
|
||||
showTimeSelect={false}
|
||||
//filterTime={filterPassedTime_end}
|
||||
dateFormat="dd/MM/yyyy"
|
||||
className="disabled_style enable_style"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div className="div_row" style={{ "border": "None" }}>
|
||||
<div className="session_caract">Choisir un modèle d'attestation :
|
||||
|
@ -4008,8 +4015,8 @@ function GestionAdministrative(props) {
|
|||
|
||||
{String(addOneSession) !== "1" && <div>
|
||||
<div className="div_row_gauche" style={{ "textAlign": "left", "paddingLeft": "5px" }}>
|
||||
<br />
|
||||
|
||||
<br />
|
||||
|
||||
Choisir une session <br />
|
||||
<select id="session_liste" value={mysession} onChange={handleChangeSession} className="selectsession">
|
||||
<option value="" className="select_option_css">Choisir</option>
|
||||
|
@ -4020,6 +4027,7 @@ function GestionAdministrative(props) {
|
|||
|
||||
|
||||
<option value={(JSON.parse(session).formation_session_id)} className="select_option_css">
|
||||
{(JSON.parse(session).formation_session_id) && (JSON.parse(session).formation_session_id) + " - "}
|
||||
{(JSON.parse(session).session_ondemande) === "1" && " A la Demande - "}
|
||||
{(!JSON.parse(session).session_ondemande || JSON.parse(session).session_ondemande === "0") &&
|
||||
(JSON.parse(session).date_debut).substring(0, 10) + " au " + (JSON.parse(session).date_fin).substring(0, 10)}
|
||||
|
@ -4040,7 +4048,7 @@ function GestionAdministrative(props) {
|
|||
|
||||
|
||||
<div className="field_droite">
|
||||
{/* <select id="session_liste" value={mysession} onChange={handleChangeSession} className="selectsession">
|
||||
{/* <select id="session_liste" value={mysession} onChange={handleChangeSession} className="selectsession">
|
||||
<option value="" className="select_option_css">Choisir</option>
|
||||
|
||||
|
||||
|
@ -4085,21 +4093,21 @@ function GestionAdministrative(props) {
|
|||
|
||||
{mysession && <div className="div_row" style={{ "border": "None" }}>
|
||||
|
||||
<div className="session_caract" style={{ "float": "right", "fontSize":"12px", 'fontWeight':'bolder', }}>
|
||||
<div className="session_caract" style={{ "float": "right", "fontSize": "12px", 'fontWeight': 'bolder', }}>
|
||||
<nav onChange={toggleSessionStatus} id="toggleSwitchNav" name="toggleSwitchNav">
|
||||
<ToggleSwitch label="Activation / Deactivation session? " id="toggleSwitch" name="toggleSwitch" checked={sessionStatus} />
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
|
||||
<div className="session_caract" style={{ "float": "right", }}>
|
||||
<div className="session_caract" style={{ "float": "right", }}>
|
||||
<Button className="bton_envoyer" onClick={PrintSesssionDetail}> Télécharger les détails </Button>
|
||||
|
||||
</div>
|
||||
<div className="session_caract" style={{ "float": "right", }}> </div>
|
||||
<div className="session_caract" style={{ "float": "right", }}> </div>
|
||||
|
||||
<div className="div_row" > <hr className="mysy_hr_text"/>
|
||||
</div>
|
||||
<div className="div_row" > <hr className="mysy_hr_text" />
|
||||
</div>
|
||||
</div>}
|
||||
|
||||
<div className="session_caract"> Code Session<br />
|
||||
|
@ -4172,7 +4180,47 @@ function GestionAdministrative(props) {
|
|||
/>
|
||||
</div>
|
||||
|
||||
|
||||
<div className="session_caract"> Date Debut des inscriptions *
|
||||
<DatePicker
|
||||
required
|
||||
name="sessiondatedebutinscription"
|
||||
id="sessiondatedebutinscription"
|
||||
selected={SessionstartDateInscription}
|
||||
onChange={(date) => {
|
||||
setSessionstartDateInscription(date);
|
||||
setsessionChanged(true);
|
||||
}
|
||||
|
||||
}
|
||||
showTimeSelect={false}
|
||||
//filterTime={filterPassedTime_start}
|
||||
dateFormat="dd/MM/yyyy"
|
||||
className="disabled_style"
|
||||
locale='fr-FR'
|
||||
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
||||
<div className="session_caract"> Date Fin des inscriptions *
|
||||
<DatePicker
|
||||
required
|
||||
name="sessiondatefininscription"
|
||||
id="sessiondatefininscription"
|
||||
selected={SessionendDateInscription}
|
||||
onChange={(date) => {
|
||||
setSessionendDateInscription(date);
|
||||
setsessionChanged(true);
|
||||
}
|
||||
}
|
||||
showTimeSelect={false}
|
||||
//filterTime={filterPassedTime_end}
|
||||
dateFormat="dd/MM/yyyy"
|
||||
className="disabled_style"
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
||||
<div className="session_caract">Présentiel *<i>(0 = Non, 1 = Oui) </i><br />
|
||||
<TextField
|
||||
|
@ -4318,47 +4366,7 @@ function GestionAdministrative(props) {
|
|||
</div>
|
||||
|
||||
|
||||
<div className="div_row" style={{ "border": "None" }}>
|
||||
<div className="session_caract"> Date Debut des inscriptions *
|
||||
<DatePicker
|
||||
required
|
||||
name="sessiondatedebutinscription"
|
||||
id="sessiondatedebutinscription"
|
||||
selected={SessionstartDateInscription}
|
||||
onChange={(date) => {
|
||||
setSessionstartDateInscription(date);
|
||||
setsessionChanged(true);
|
||||
}
|
||||
|
||||
}
|
||||
showTimeSelect={false}
|
||||
//filterTime={filterPassedTime_start}
|
||||
dateFormat="dd/MM/yyyy"
|
||||
className="disabled_style"
|
||||
locale='fr-FR'
|
||||
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
||||
<div className="session_caract"> Date Fin des inscriptions *
|
||||
<DatePicker
|
||||
required
|
||||
name="sessiondatefininscription"
|
||||
id="sessiondatefininscription"
|
||||
selected={SessionendDateInscription}
|
||||
onChange={(date) => {
|
||||
setSessionendDateInscription(date);
|
||||
setsessionChanged(true);
|
||||
}
|
||||
}
|
||||
showTimeSelect={false}
|
||||
//filterTime={filterPassedTime_end}
|
||||
dateFormat="dd/MM/yyyy"
|
||||
className="disabled_style"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div className="div_row" style={{ "border": "None" }}>
|
||||
|
|
|
@ -156,7 +156,10 @@ function HebergementLms(props) {
|
|||
|
||||
|
||||
useEffect(() => {
|
||||
window.scrollTo(0, 0);
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
GetLms_Themes();
|
||||
submenu_design();
|
||||
}, [])
|
||||
|
|
|
@ -14,7 +14,10 @@ function OrderConfirmation(props) {
|
|||
const history = useHistory();
|
||||
|
||||
useEffect(() => {
|
||||
window.scrollTo(0, 0);
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
}, []);
|
||||
|
||||
function GoToInvoice() {
|
||||
|
|
|
@ -19,7 +19,10 @@ function OrderConfirmation_3DS(props) {
|
|||
|
||||
CheckSalesOrder();
|
||||
|
||||
window.scrollTo(0, 0);
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
}, []);
|
||||
|
||||
function GoToInvoice() {
|
||||
|
|
|
@ -163,7 +163,10 @@ function PaymentMethode(props) {
|
|||
|
||||
if (String(result['status']) === String("true")) {
|
||||
setpaymentadded("1");
|
||||
window.scrollTo(0, 0);
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
}else if (String(result['status']) === String("Err_Connexion")) {
|
||||
alert('Erreur: ' + result['message']);
|
||||
history.push("/Connexion");
|
||||
|
@ -244,7 +247,10 @@ function PaymentMethode(props) {
|
|||
setdate_exp(exp_data);
|
||||
|
||||
|
||||
window.scrollTo(0, 0);
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
}, []);
|
||||
|
||||
|
||||
|
|
|
@ -221,7 +221,10 @@ function PaymentMethodeNoConnect(props) {
|
|||
}
|
||||
useEffect(() => {
|
||||
enablefieds1();
|
||||
window.scrollTo(0, 0);
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
}, []);
|
||||
|
||||
|
||||
|
|
|
@ -216,7 +216,10 @@ function PaymentMethodeNoConnect(props) {
|
|||
|
||||
}
|
||||
useEffect(() => {
|
||||
window.scrollTo(0, 0);
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
}, []);
|
||||
|
||||
|
||||
|
|
|
@ -1797,6 +1797,10 @@ const Recherche_new_v2 = () => {
|
|||
function getClassByMetier(my_liste_metier) {
|
||||
|
||||
|
||||
if( NewSearchText && NewSearchText.length > 2){
|
||||
alert(" Réinitialiser les filtres pour utiliser cette fonctionalité");
|
||||
return;
|
||||
}
|
||||
var myelement;
|
||||
|
||||
if (document.getElementById('rech_middlebox')) {
|
||||
|
@ -1812,6 +1816,7 @@ const Recherche_new_v2 = () => {
|
|||
setmymetier(check_metier);
|
||||
ReinitFilters();
|
||||
|
||||
|
||||
if (check_metier === "tout") {
|
||||
// Nettoyage du resultat precedent.
|
||||
setResult([]);
|
||||
|
@ -2522,6 +2527,20 @@ const Recherche_new_v2 = () => {
|
|||
setdisplayAllmetiers(true);
|
||||
}
|
||||
|
||||
|
||||
function init_Filter_Change_url(){
|
||||
history.push("/");
|
||||
window.location.reload();
|
||||
|
||||
/* window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});*/
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
return (
|
||||
|
||||
|
||||
|
@ -2899,17 +2918,17 @@ const Recherche_new_v2 = () => {
|
|||
|
||||
<div className="block_suggestion">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
{suggestion2 && suggestion2.slice(0, 2).map((suggestion, id) =>
|
||||
<div key={id} style={{
|
||||
"cursor": "pointer", "color": "black",
|
||||
"fontSize": "small", "paddingLeft": "1rem", "fontStyle": "italic", "letterSpacing": "2px"
|
||||
}}
|
||||
onClick={() => OnSuggestionHandler(JSON.parse(suggestion).name)}> {JSON.parse(suggestion).name} </div>
|
||||
)}
|
||||
|
||||
|
||||
|
||||
|
||||
{suggestion2 && suggestion2.slice(0, 2).map((suggestion, id) =>
|
||||
<div key={id} style={{
|
||||
"cursor": "pointer", "color": "black",
|
||||
"fontSize": "small", "paddingLeft": "1rem", "fontStyle": "italic", "letterSpacing": "2px"
|
||||
}}
|
||||
onClick={() => OnSuggestionHandler(JSON.parse(suggestion).name)}> {JSON.parse(suggestion).name} </div>
|
||||
)}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -2999,7 +3018,7 @@ const Recherche_new_v2 = () => {
|
|||
|
||||
|
||||
<div className="block_nos_formation">
|
||||
<div style={{"width":"100%"}}>
|
||||
<div style={{ "width": "100%" }}>
|
||||
|
||||
<div className="forma_et_tuto"> Nos Formations & Tutoriels</div>
|
||||
{showelement === "true" && <div onClick={showdisplayfilter} className="recherchefilter">
|
||||
|
@ -3266,10 +3285,33 @@ const Recherche_new_v2 = () => {
|
|||
|
||||
|
||||
<div className="sous_filter_txt"> Les Métiers </div>
|
||||
<div className="tab_critere_espace">
|
||||
{NewSearchText && <div className="tab_critere_espace">
|
||||
|
||||
<div className="sous_filter_metier">
|
||||
<div className="filter_metier_sous_block_content_txt_formation" style={{"width":"100%"}}>
|
||||
Recherhe pour : "{NewSearchText}"
|
||||
</div>
|
||||
|
||||
<div className="filter_metier_sous_block" style={{"cursor":"pointer", "width":"100%"}}>
|
||||
<div className="filter_metier_sous_block_content" onClick={init_Filter_Change_url} style={{"width":"100%"}}>
|
||||
|
||||
<div className="filter_metier_sous_block_content_txt" style={{"width":"100%"}}>
|
||||
<div className="filter_metier_sous_block_content_txt_formation" style={{"width":"100%"}}>
|
||||
Réinitaliser les filtres
|
||||
</div>
|
||||
<div className="filter_metier_sous_block_content_txt_nb">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>}
|
||||
{!NewSearchText && <div className="tab_critere_espace" >
|
||||
<div className="sous_filter_metier">
|
||||
|
||||
<div className="filter_metier_sous_block">
|
||||
<div className="filter_metier_sous_block" >
|
||||
<div className="filter_metier_sous_block_content" onClick={getClassByMetier}>
|
||||
<input className="frame_133_grp_radio" type="radio" value="tout" id="metier_radio" name="metier_radio" />
|
||||
|
||||
|
@ -3278,14 +3320,13 @@ const Recherche_new_v2 = () => {
|
|||
Tous les métiers
|
||||
</div>
|
||||
<div className="filter_metier_sous_block_content_txt_nb">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div className="filter_metier_sous_block">
|
||||
<div className="filter_metier_sous_block" >
|
||||
<div className="filter_metier_sous_block_content" onClick={getClassByMetier}>
|
||||
{mymetier && String(mymetier) === "management" &&
|
||||
<input className="frame_133_grp_radio" type="radio" value="management" id="metier_radio" name="metier_radio" checked />}
|
||||
|
@ -3465,7 +3506,7 @@ const Recherche_new_v2 = () => {
|
|||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>}
|
||||
|
||||
|
||||
{/* <div className="tab_logo_metier">
|
||||
|
|
|
@ -107,7 +107,10 @@ function SignUp() {
|
|||
|
||||
const onSubmit = async (data) => {
|
||||
|
||||
window.scrollTo(0, 0);
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
|
||||
var mymail = document.getElementsByName("email")[0].value;
|
||||
//var mypwd = document.getElementsByName("pwd")[0].value;
|
||||
|
@ -268,7 +271,10 @@ function SignUp() {
|
|||
alert(String(result['message']));
|
||||
setisconnected("true");
|
||||
setmyApimyApiMessage(result['message']);
|
||||
window.scrollTo(0, 0);
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
|
||||
if (String(menucompte) === String("user")) {
|
||||
history.push("/Connexion-utilisateur-0");
|
||||
|
@ -308,7 +314,10 @@ function SignUp() {
|
|||
};
|
||||
document.addEventListener("keydown", listener);
|
||||
//menu_user_account();
|
||||
window.scrollTo(0, 0);
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
|
||||
if (String(menucompte) === String("user")) {
|
||||
menu_user_account()
|
||||
|
|
|
@ -611,7 +611,10 @@ function UpdateParnterInfo() {
|
|||
document.getElementsByName("website")[0].style.backgroundColor = "#FFFFFF";
|
||||
|
||||
setfields1desabled(false);
|
||||
window.scrollTo(0, 0);
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
@ -790,10 +793,16 @@ function UpdateParnterInfo() {
|
|||
.catch((error) => {
|
||||
console.error('Error:', error);
|
||||
setmyApiResponse("false");
|
||||
window.scrollTo(0, 0);
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
});
|
||||
|
||||
window.scrollTo(0, 0);
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -32,7 +32,10 @@ function UpdateUserGoals(props) {
|
|||
useEffect(() => {
|
||||
|
||||
getGolData();
|
||||
window.scrollTo(0, 0);
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
}, [props.name_obj]);
|
||||
|
||||
function cleanField() {
|
||||
|
|
|
@ -115,7 +115,10 @@ function UpdateUserProfil(props) {
|
|||
|
||||
useEffect(() => {
|
||||
GetUserProfilData();
|
||||
window.scrollTo(0, 0);
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
}, []);
|
||||
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ function UpgradeToPro() {
|
|||
|
||||
|
||||
useEffect(() => {
|
||||
//window.scrollTo(0, 0);
|
||||
|
||||
}, [gotocheckout])
|
||||
|
||||
// recuperation et gestion du token utilisateur
|
||||
|
@ -199,7 +199,10 @@ function UpgradeToPro() {
|
|||
buttons: [
|
||||
{
|
||||
label: 'Oui',
|
||||
onClick: () => { UpgradeToPro(packs); window.scrollTo(0, 0); }
|
||||
onClick: () => { UpgradeToPro(packs); window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
}); }
|
||||
},
|
||||
{
|
||||
label: 'Non',
|
||||
|
|
|
@ -161,9 +161,10 @@
|
|||
font-size: small !important;
|
||||
color: black;
|
||||
width: 97% !important;
|
||||
border: none !important;
|
||||
//border: none !important;
|
||||
margin: 5px !important;
|
||||
height: 3.5rem !important;
|
||||
background: white;
|
||||
}
|
||||
|
||||
.training_caract {
|
||||
|
@ -443,8 +444,9 @@
|
|||
width: 90% !important;
|
||||
height: 3.5rem !important;
|
||||
margin: 5px !important;
|
||||
border: none !important;
|
||||
//border: none !important;
|
||||
border-radius: 5px;
|
||||
background: white;
|
||||
}
|
||||
|
||||
.training_caract {
|
||||
|
@ -716,8 +718,9 @@
|
|||
width: 90% !important;
|
||||
height: 3.5rem !important;
|
||||
margin: 5px !important;
|
||||
border: none !important;
|
||||
//border: none !important;
|
||||
border-radius: 5px;
|
||||
background: white;
|
||||
}
|
||||
|
||||
.training_caract {
|
||||
|
@ -991,8 +994,9 @@
|
|||
width: 90% !important;
|
||||
height: 3.5rem !important;
|
||||
margin: 5px !important;
|
||||
border: none !important;
|
||||
//border: none !important;
|
||||
border-radius: 5px;
|
||||
background: white;
|
||||
}
|
||||
|
||||
.training_caract {
|
||||
|
@ -1235,15 +1239,15 @@
|
|||
overflow: visible;
|
||||
text-align: center;
|
||||
height: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
.mysy_hr_text:after {
|
||||
.mysy_hr_text:after {
|
||||
background: #fff;
|
||||
content: 'Détail';
|
||||
content: 'Détails';
|
||||
padding: 0 4px;
|
||||
position: relative;
|
||||
top: -13px;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
@ -1301,4 +1305,15 @@
|
|||
|
||||
.select_option_css {
|
||||
border-radius: 0px !important;
|
||||
}
|
||||
|
||||
.css-9ddj71-MuiInputBase-root-MuiOutlinedInput-root{
|
||||
height: 3.5rem !important;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
.react-datepicker__input-container{
|
||||
width: 110%;
|
||||
}
|
Loading…
Reference in New Issue