08/03/26 - 12h

branche_01062025
Cherif 2026-03-08 11:58:54 +01:00
parent 8fe8811896
commit 8d785eed51
21 changed files with 1620 additions and 425 deletions

View File

@ -9628,8 +9628,8 @@ const AddClassManual = (props) => {
height: 300,
menubar: true,
plugins: [
'advlist', 'autolink', 'lists', 'link', 'image', 'charmap', 'print', 'preview', 'anchor', 'searchreplace',
'visualblocks', 'code', 'fullscreen', 'insertdatetime', 'media', 'table', 'paste', 'code', 'help', 'wordcount',
'advlist', 'autolink', 'lists', 'link', 'image', 'charmap', 'preview', 'anchor', 'searchreplace',
'visualblocks', 'code', 'fullscreen', 'insertdatetime', 'media', 'table', 'code', 'help', 'wordcount',
'lists', 'link', 'image', 'charmap', 'preview', 'anchor', 'searchreplace', 'visualblocks',
],
@ -9688,8 +9688,8 @@ const AddClassManual = (props) => {
height: 300,
menubar: true,
plugins: [
'advlist', 'autolink', 'lists', 'link', 'image', 'charmap', 'print', 'preview', 'anchor', 'searchreplace',
'visualblocks', 'code', 'fullscreen', 'insertdatetime', 'media', 'table', 'paste', 'code', 'help', 'wordcount',
'advlist', 'autolink', 'lists', 'link', 'image', 'charmap', 'preview', 'anchor', 'searchreplace',
'visualblocks', 'code', 'fullscreen', 'insertdatetime', 'media', 'table', 'code', 'help', 'wordcount',
'lists', 'link', 'image', 'charmap', 'preview', 'anchor', 'searchreplace', 'visualblocks',
],
@ -9750,8 +9750,8 @@ const AddClassManual = (props) => {
height: 300,
menubar: true,
plugins: [
'advlist', 'autolink', 'lists', 'link', 'image', 'charmap', 'print', 'preview', 'anchor', 'searchreplace',
'visualblocks', 'code', 'fullscreen', 'insertdatetime', 'media', 'table', 'paste', 'code', 'help', 'wordcount',
'advlist', 'autolink', 'lists', 'link', 'image', 'charmap', 'preview', 'anchor', 'searchreplace',
'visualblocks', 'code', 'fullscreen', 'insertdatetime', 'media', 'table', 'code', 'help', 'wordcount',
'lists', 'link', 'image', 'charmap', 'preview', 'anchor', 'searchreplace', 'visualblocks',
],
@ -9786,8 +9786,8 @@ const AddClassManual = (props) => {
height: 300,
menubar: true,
plugins: [
'advlist', 'autolink', 'lists', 'link', 'image', 'charmap', 'print', 'preview', 'anchor', 'searchreplace',
'visualblocks', 'code', 'fullscreen', 'insertdatetime', 'media', 'table', 'paste', 'code', 'help', 'wordcount',
'advlist', 'autolink', 'lists', 'link', 'image', 'charmap', 'preview', 'anchor', 'searchreplace',
'visualblocks', 'code', 'fullscreen', 'insertdatetime', 'media', 'table', 'code', 'help', 'wordcount',
'lists', 'link', 'image', 'charmap', 'preview', 'anchor', 'searchreplace', 'visualblocks',
],
@ -9823,8 +9823,8 @@ const AddClassManual = (props) => {
height: 300,
menubar: true,
plugins: [
'advlist', 'autolink', 'lists', 'link', 'image', 'charmap', 'print', 'preview', 'anchor', 'searchreplace',
'visualblocks', 'code', 'fullscreen', 'insertdatetime', 'media', 'table', 'paste', 'code', 'help', 'wordcount',
'advlist', 'autolink', 'lists', 'link', 'image', 'charmap', 'preview', 'anchor', 'searchreplace',
'visualblocks', 'code', 'fullscreen', 'insertdatetime', 'media', 'table', 'code', 'help', 'wordcount',
'lists', 'link', 'image', 'charmap', 'preview', 'anchor', 'searchreplace', 'visualblocks',
],
@ -9861,8 +9861,8 @@ const AddClassManual = (props) => {
height: 300,
menubar: true,
plugins: [
'advlist', 'autolink', 'lists', 'link', 'image', 'charmap', 'print', 'preview', 'anchor', 'searchreplace',
'visualblocks', 'code', 'fullscreen', 'insertdatetime', 'media', 'table', 'paste', 'code', 'help', 'wordcount',
'advlist', 'autolink', 'lists', 'link', 'image', 'charmap', 'preview', 'anchor', 'searchreplace',
'visualblocks', 'code', 'fullscreen', 'insertdatetime', 'media', 'table', 'code', 'help', 'wordcount',
'lists', 'link', 'image', 'charmap', 'preview', 'anchor', 'searchreplace', 'visualblocks',
],
@ -9921,8 +9921,8 @@ const AddClassManual = (props) => {
height: 300,
menubar: true,
plugins: [
'advlist', 'autolink', 'lists', 'link', 'image', 'charmap', 'print', 'preview', 'anchor', 'searchreplace',
'visualblocks', 'code', 'fullscreen', 'insertdatetime', 'media', 'table', 'paste', 'code', 'help', 'wordcount',
'advlist', 'autolink', 'lists', 'link', 'image', 'charmap', 'preview', 'anchor', 'searchreplace',
'visualblocks', 'code', 'fullscreen', 'insertdatetime', 'media', 'table', 'code', 'help', 'wordcount',
'lists', 'link', 'image', 'charmap', 'preview', 'anchor', 'searchreplace', 'visualblocks',
],
@ -9957,8 +9957,8 @@ const AddClassManual = (props) => {
height: 300,
menubar: true,
plugins: [
'advlist', 'autolink', 'lists', 'link', 'image', 'charmap', 'print', 'preview', 'anchor', 'searchreplace',
'visualblocks', 'code', 'fullscreen', 'insertdatetime', 'media', 'table', 'paste', 'code', 'help', 'wordcount',
'advlist', 'autolink', 'lists', 'link', 'image', 'charmap', 'preview', 'anchor', 'searchreplace',
'visualblocks', 'code', 'fullscreen', 'insertdatetime', 'media', 'table', 'code', 'help', 'wordcount',
'lists', 'link', 'image', 'charmap', 'preview', 'anchor', 'searchreplace', 'visualblocks',
],
@ -9993,8 +9993,8 @@ const AddClassManual = (props) => {
height: 300,
menubar: true,
plugins: [
'advlist', 'autolink', 'lists', 'link', 'image', 'charmap', 'print', 'preview', 'anchor', 'searchreplace',
'visualblocks', 'code', 'fullscreen', 'insertdatetime', 'media', 'table', 'paste', 'code', 'help', 'wordcount',
'advlist', 'autolink', 'lists', 'link', 'image', 'charmap', 'preview', 'anchor', 'searchreplace',
'visualblocks', 'code', 'fullscreen', 'insertdatetime', 'media', 'table', 'code', 'help', 'wordcount',
'lists', 'link', 'image', 'charmap', 'preview', 'anchor', 'searchreplace', 'visualblocks',
],
@ -10052,8 +10052,8 @@ const AddClassManual = (props) => {
height: 300,
menubar: true,
plugins: [
'advlist', 'autolink', 'lists', 'link', 'image', 'charmap', 'print', 'preview', 'anchor', 'searchreplace',
'visualblocks', 'code', 'fullscreen', 'insertdatetime', 'media', 'table', 'paste', 'code', 'help', 'wordcount',
'advlist', 'autolink', 'lists', 'link', 'image', 'charmap', 'preview', 'anchor', 'searchreplace',
'visualblocks', 'code', 'fullscreen', 'insertdatetime', 'media', 'table', 'code', 'help', 'wordcount',
'lists', 'link', 'image', 'charmap', 'preview', 'anchor', 'searchreplace', 'visualblocks',
],
@ -10111,8 +10111,8 @@ const AddClassManual = (props) => {
height: 300,
menubar: true,
plugins: [
'advlist', 'autolink', 'lists', 'link', 'image', 'charmap', 'print', 'preview', 'anchor', 'searchreplace',
'visualblocks', 'code', 'fullscreen', 'insertdatetime', 'media', 'table', 'paste', 'code', 'help', 'wordcount',
'advlist', 'autolink', 'lists', 'link', 'image', 'charmap', 'preview', 'anchor', 'searchreplace',
'visualblocks', 'code', 'fullscreen', 'insertdatetime', 'media', 'table', 'code', 'help', 'wordcount',
'lists', 'link', 'image', 'charmap', 'preview', 'anchor', 'searchreplace', 'visualblocks',
],

View File

@ -26,9 +26,8 @@ import {
useStripe,
useElements,
} from '@stripe/react-stripe-js';
import { Elements } from '@stripe/react-stripe-js';
import { loadStripe } from '@stripe/stripe-js';
import { PaymentElement } from '@stripe/react-stripe-js';
import Popup from 'reactjs-popup';
@ -36,10 +35,6 @@ import 'react-tooltip/dist/react-tooltip.css'
import { Tooltip } from 'react-tooltip'
import Module_Alert_Confirmation from "./Module_Alert_Confirmation";
const stripePromise = loadStripe('pk_test_51LUUfAAbmaEugrFTI25uZBD3IFjbtaL6jUfRV83diDf7nco8worna4NGKhMHbPP71WCwT5EHFRdDNatxPrJWwgZ300kgH5EO4p');
//const stripePromise_PROD = loadStripe('pk_live_51LUUfAAbmaEugrFTyfNe4Dj0vbxc5qXQqNs0rztjAKy8oSlc5EEQyJGjA8Z5kXmP2gvUMcYLUBYCIyWWzLCw59RY00PtGInkVf');
function CheckOut(props) {

View File

@ -89,6 +89,8 @@ const ENT_Student_Header = () => {
const stored_part = getCookie('tokenmysypart');
const stored_apprenant_id = getCookie('tokenmysychapprenant');
const stored_tuteur_id = getCookie('tokenmysytuteurrhid');
const stored_tokenmysytypeconnexion = getCookie('tokenmysytypeconnexion');
const [cookie, setCookie, removeCookie] = useCookies(['tokenmysych'], { path: '/' });
@ -408,7 +410,7 @@ const ENT_Student_Header = () => {
</nav>}
{stored_tokenmysytypeconnexion === "tuteur" && <nav className="menu-list">
<a href={"/mysy-student-ent/" + `${stored_apprenant_id}` + "/mes_formations"} className="menu-link">Formations </a>
<a href={"/mysy-student-ent/" + `${stored_tuteur_id}` + "/mes_formations"} className="menu-link">Formations </a>
</nav>}
</div>

View File

@ -10,6 +10,7 @@ import 'react-input-range/lib/css/index.css';
import img_header from "../mysy_img2/img_header.png"
import Module_Connexion_Ent_Student from "./Module_Connexion_Ent_Student";
import Module_Connexion_Ent_Student_V2 from "./Module_Connexion_Ent_Student_V2";
import Fotter_Intranet_Client_Pub from "./Fotter_Intranet_Client_Pub"
@ -2440,6 +2441,8 @@ const Ent_Intranet = (props) => {
var catalog_pub_logo = JSON.parse(x).catalog_pub_logo;
var catalog_pub_banniere_img = JSON.parse(x).catalog_pub_banniere_img;
var theme_code = JSON.parse(x).theme_code;
var catalog_pub_message_1_txt = JSON.parse(x).catalog_pub_message_1_txt;
@ -2821,7 +2824,7 @@ const Ent_Intranet = (props) => {
<div className="bloc_connexion_model_2">
<Module_Connexion_Ent_Student />
<Module_Connexion_Ent_Student_V2 />
</div>
</div>}
{/******* FIN Gestion du THEME "MySy_Theme2" */}
@ -2930,7 +2933,7 @@ const Ent_Intranet = (props) => {
<div className="bloc_connexion">
<Module_Connexion_Ent_Student />
<Module_Connexion_Ent_Student_V2 />
</div>
</div>}
</div >

View File

@ -7,12 +7,6 @@ import { useHistory } from "react-router-dom";
import { FcIdea } from "react-icons/fc";
import img_loading_spin from "./../mysy_img/mysy_spin_loading.gif";
import {
CardElement,
useStripe,
useElements,
} from '@stripe/react-stripe-js';
import Popup from 'reactjs-popup';
import 'react-tooltip/dist/react-tooltip.css'
import { Tooltip } from 'react-tooltip'
@ -20,9 +14,6 @@ import Module_Alert_Confirmation from "./Module_Alert_Confirmation";
import Fab from '@mui/material/Fab';
import { IoIosAddCircleOutline, IoMdTrash } from "react-icons/io";
//const stripePromise = loadStripe('pk_test_51LUUfAAbmaEugrFTI25uZBD3IFjbtaL6jUfRV83diDf7nco8worna4NGKhMHbPP71WCwT5EHFRdDNatxPrJWwgZ300kgH5EO4p');
//const stripePromise_PROD = loadStripe('pk_live_51LUUfAAbmaEugrFTyfNe4Dj0vbxc5qXQqNs0rztjAKy8oSlc5EEQyJGjA8Z5kXmP2gvUMcYLUBYCIyWWzLCw59RY00PtGInkVf');
function HebergementLms(props) {

View File

@ -38,11 +38,52 @@ import allLocales from '@fullcalendar/core/locales-all'
import Module_Alert_Confirmation from "./Module_Alert_Confirmation";
import ToggleSwitch from "./ToggleSwitch";
import ToggleSwitch_v2_mysy from "./ToggleSwitch_v2_mysy";
import { IoAddCircleOutline, IoCloseCircleOutline } from "react-icons/io5";
import { makeStyles } from "@material-ui/core/styles";
import CancelPresentationIcon from '@mui/icons-material/CancelPresentation';
import { IconButton } from '@material-ui/core';
import Paper from '@material-ui/core/Paper';
import Draggable from 'react-draggable';
function PaperComponent(props) {
return (
<Draggable
handle="#draggable-dialog-title"
cancel={'[class*="MuiDialogContent-root"]'}
>
<Paper {...props} />
</Draggable>
);
}
const useStyles = makeStyles((theme) => ({
dialog: {
position: 'absolute',
// left: 10,
top: 400
},
paper: {
overflowY: 'unset',
},
customizedButton: {
position: 'absolute',
left: '95%',
top: '-3%',
backgroundColor: 'lightgray',
color: 'gray',
},
}));
const Module_Absence = (props) => {
const myconntected_employee_id = props.conntected_employee_id;
registerLocale('fr', fr);
registerLocale('fr', fr);
const classes = useStyles();
const attendee_email = props.attendee_email;
const [selected_employee_id, setselected_employee_id] = useState(props.conntected_employee_id);
@ -449,13 +490,14 @@ registerLocale('fr', fr);
}
setp_detail_title("Nouvelle")
setp_detail_title("Nouvelle Absence")
setp_detail_start(info.start)
setp_detail_end(info.end)
setp_detail_comment("");
setp_detail_event_id("");
setp_detail_justified(false);
setp_detail_event_type("");
setp_detail_event_type("absence");
setStartDate(info.start);
setendDate(info.end);
@ -495,13 +537,13 @@ registerLocale('fr', fr);
var new_start_date = new Date();
var new_end_date = new Date();
setp_detail_title("Nouvelle")
setp_detail_title("Nouvelle Absence")
setp_detail_start(new_start_date)
setp_detail_end(new_start_date)
setp_detail_comment("");
setp_detail_event_id("");
setp_detail_justified(false);
setp_detail_event_type("");
setp_detail_event_type("absence");
setStartDate(new_start_date);
setendDate(new_start_date);
@ -638,13 +680,13 @@ registerLocale('fr', fr);
function Close_Dialog_Detail_Event_open() {
setp_detail_title("Nouvelle")
setp_detail_title("Nouvelle Absence")
setp_detail_start()
setp_detail_end()
setp_detail_comment("");
setp_detail_event_id("");
setp_detail_justified(false);
setp_detail_event_type("");
setp_detail_event_type("absence");
setDialog_1_open(false);
}
@ -961,9 +1003,34 @@ registerLocale('fr', fr);
<Dialog
open={Dialog_1_open}
onClose={Dialog_1_handleClose}
//onClose={Dialog_1_handleClose}
className="module_agenda"
// className="module_agenda"
static
onClose={() => null}
PaperProps={{
className: classes.paper, // Apply the paper style
style: {
overflowY: 'unset',
position: 'absolute',
top: '35rem',
margin: "2px",
maxWidth: 'unset',
},
}}
hideBackdrop={true}
disableScrollLock
classes={{
paper: classes.dialog
}}
PaperComponent={PaperComponent}
aria-labelledby="draggable-dialog-title"
className="displaypartnersession mysy_MuiPaper-root"
disableEnforceFocus={true}
>
@ -973,59 +1040,61 @@ registerLocale('fr', fr);
{Dialog_1_message}
</DialogContentText>
<div className="session_caract_Dialog" >
<nav style={{ "float": "left", "width": "100%" }}>
<div className="session_caract_Dialog" style={{ width: '50%' }}>
<nav style={{ "float": "left", "width": "30%", "paddingTop": "15px" }}> Type </nav>
<nav style={{ "float": "left", "width": "30%", "paddingTop": "15px" }}> Type </nav>
<nav style={{ "float": "right", "width": "65%" }}>
<TextField
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
<nav style={{ "float": "right", "width": "65%" }}>
<TextField
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
name="event_dialog_type"
id="event_dialog_type"
name="event_dialog_type"
id="event_dialog_type"
select
fullWidth
select
fullWidth
value={p_detail_event_type}
onChange={(e) => {
if (String(props.write_access) === "1") {
setp_detail_event_type(e.target.value);
value={p_detail_event_type}
onChange={(e) => {
if (String(props.write_access) === "1") {
setp_detail_event_type(e.target.value);
}
}
}
>
<MenuItem value="absence" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }}>Absence &nbsp;&nbsp;</MenuItem>
<MenuItem value="planning" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Planning &nbsp;</MenuItem>
<MenuItem value="autre" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Autre &nbsp;</MenuItem>
</TextField>
</nav>
</div>
<div className="session_caract_Dialog" style={{ width: '50%', paddingLeft:'3rem' }}>
<nav style={{ "float": "left", "width": "30%", "paddingTop": "15px" }}> Justifié ? </nav>
<nav style={{ "float": "right", "width": "50%" }}
onClick={(e) => {
if (p_detail_justified === true)
setp_detail_justified(false);
else
setp_detail_justified(true);
}
}
>
<MenuItem value="absence" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }}>Absence &nbsp;&nbsp;</MenuItem>
<MenuItem value="planning" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Planning &nbsp;</MenuItem>
<MenuItem value="autre" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Autre &nbsp;</MenuItem>
</TextField>
</nav>
</div>
<div className="session_caract_Dialog" >
<nav style={{ "float": "left", "width": "30%", "paddingTop": "15px" }}> Justifié ? </nav>
<nav style={{ "float": "right", "width": "65%" }}
onClick={(e) => {
if (p_detail_justified === true)
setp_detail_justified(false);
else
setp_detail_justified(true);
}
}
id="toggleSwitchNav" name="toggleSwitchNav">
<ToggleSwitch id="toggleSwitch" name="toggleSwitch" checked={p_detail_justified}
/>
</nav>
</div>
id="toggleSwitchNav" name="toggleSwitchNav">
<ToggleSwitch_v2_mysy id="toggleSwitch" name="toggleSwitch" checked={p_detail_justified}
/>
</nav>
</div>
</nav>
<div className="session_caract_Dialog" > Titre
<TextField
@ -1048,55 +1117,58 @@ registerLocale('fr', fr);
</div>
<div className="session_caract_Dialog" > Debut
<DatePicker
name="event_dialog_start"
id="event_dialog_start"
selected={startDate}
onChange={(date) => {
if (String(props.write_access) === "1")
return setStartDate(date);
}
}
<nav style={{ "float": "left", "width": "100%" }}>
<div className="session_caract_Dialog" style={{ width: '50%' }}> Debut
<DatePicker
name="event_dialog_start"
id="event_dialog_start"
selected={startDate}
onChange={(date) => {
if (String(props.write_access) === "1")
return setStartDate(date);
}
}
className="disabled_style session_caract_Dialog_DatePicker"
locale={'fr'}
showTimeSelect
timeFormat="HH:mm"
timeIntervals={15}
dateFormat="dd/MM/yyyy HH:mm"
is24Hour
className="disabled_style session_caract_Dialog_DatePicker"
locale={'fr'}
showTimeSelect
timeFormat="HH:mm"
timeIntervals={15}
dateFormat="dd/MM/yyyy HH:mm"
is24Hour
/>
/>
</div>
</div>
<div className="session_caract_Dialog" > Fin
<DatePicker
name="event_dialog_end"
id="event_dialog_end"
selected={endDate}
<div className="session_caract_Dialog" style={{ width: '50%' }}> Fin
<DatePicker
name="event_dialog_end"
id="event_dialog_end"
selected={endDate}
onChange={(date) => {
if (String(props.write_access) === "1")
return setendDate(date);
}
}
onChange={(date) => {
if (String(props.write_access) === "1")
return setendDate(date);
}
}
className="disabled_style session_caract_Dialog_DatePicker"
locale={'fr'}
showTimeSelect
timeFormat="HH:mm"
timeIntervals={15}
dateFormat="dd/MM/yyyy HH:mm"
is24Hour
className="disabled_style session_caract_Dialog_DatePicker"
locale={'fr'}
showTimeSelect
timeFormat="HH:mm"
timeIntervals={15}
dateFormat="dd/MM/yyyy HH:mm"
is24Hour
/>
/>
</div>
</div>
</nav>
<div className="session_caract_Dialog_comment_2_lines" > Commentaire
<TextField
@ -1141,6 +1213,15 @@ registerLocale('fr', fr);
</div>
</div>
<IconButton
autoFocus
onClick={Close_Dialog_Detail_Event_open}
color="primary"
className={classes.customizedButton}
>
<CancelPresentationIcon />
</IconButton>
</DialogActions>
@ -1163,7 +1244,7 @@ registerLocale('fr', fr);
</Dialog>
<h3 style={{ fontFamily: 'DM Sans' }}> Planning </h3>
<h3 style={{ fontFamily: 'DM Sans' }}> Absences </h3>
<div style={{ "textAlign": "right", "float": "right", "width": "100%" }}>
Affichage : <nav className="mode_affichage" onClick={func_display_planning_view}> <FcPlanner /> planning </nav>
@ -1245,9 +1326,9 @@ registerLocale('fr', fr);
},*/
"& .MuiDataGrid-columnHeaders": {
backgroundColor: "#dfe8f2",
color: "#0a2a4d",
fontSize: '14px',
fontFamily:'DM Sans',
color: "#0a2a4d",
fontSize: '14px',
fontFamily: 'DM Sans',
},
}}
@ -1351,7 +1432,7 @@ registerLocale('fr', fr);
<div className="div_row_gauche div_row_gauche_etendu" style={{ "textAlign": "left", "paddingLeft": "5px" }}>
<Button variant="outlined" onClick={handleSelect_list}
className="detail_class_submenu bton_add_session"
id='menu_import_participant' name='menu_import_participant'>Ajout 1 event &nbsp;
id='menu_import_participant' name='menu_import_participant'>Ajout 1 Absence &nbsp;
<IoAddCircleOutline style={{ "fontSize": "x-large", "color": "green" }} />
</Button>
</div>

File diff suppressed because it is too large Load Diff

View File

@ -2109,7 +2109,7 @@ const Module_Ent_Mes_Formations = (props) => {
</div>}
{tuteur_apprenant_selected_id && tuteur_apprenant_selected_id.length > 5 && tuteur_apprenant_selected_prenom.length > 2 &&
<div style={{ width: '100%', textAlign: 'center', color: '#0a2a4d', marginBottom: '5rem' }}>
<div style={{ width: '90%', margin:'auto', textAlign: 'center', color: '#0a2a4d', marginBottom: '5rem' }}>
Vous consultez actuellement les données de <font style={{ fontWeight: "600" }}> {String(tuteur_apprenant_selected_prenom)[0].toUpperCase() + String(tuteur_apprenant_selected_prenom).slice(1)} &nbsp; {String(tuteur_apprenant_selected_nom).toUpperCase()} </font>
</div>}

View File

@ -4406,112 +4406,114 @@ const Module_Session_Planification = (props) => {
</div>
<div className="session_caract_Dialog" > UE / Matière
<nav style={{ "float": "left", "width": "100%" }}>
<div className="session_caract_Dialog" style={{ width: '50%' }}> UE / Matière
{New_Getall_Class_List_UE_result && New_Getall_Class_List_UE_result.length > 0 && <Autocomplete
disablePortal
name="event_dialog_ue"
id="event_dialog_ue"
fullWidth
value={New_Getall_Class_List_UE_result.filter((data) => (data)._id === String(p_detail_sequence_ue_id))[0].label}
options={New_Getall_Class_List_UE_result}
onChange={(event, value) => {
seteu_planif_line_insdispo("");
setp_detail_sequence_ue_planif_line_id("");
if (value && value._id) {
setp_detail_sequence_ue_id(value._id);
Get_List_Given_UE_Planif_lines(value._id);
} else {
setp_detail_sequence_ue_id("");
setNew_Get_List_Given_UE_Planif_lines_result([]);
}
}}
renderInput={(params) => <TextField {...params} placeholder="Choisir une option " />
}
/>}
</div>
{New_Get_List_Given_UE_Planif_lines_result && New_Get_List_Given_UE_Planif_lines_result.length > 1 &&
p_detail_sequence_ue_id && String(p_detail_sequence_ue_id).length > 2 &&
<div className="session_caract_Dialog" > Planification
<Autocomplete
{New_Getall_Class_List_UE_result && New_Getall_Class_List_UE_result.length > 0 && <Autocomplete
disablePortal
name="event_dialog_ue_id_planig_line_id"
id="event_dialog_ue_id_planig_line_id"
name="event_dialog_ue"
id="event_dialog_ue"
fullWidth
value={New_Get_List_Given_UE_Planif_lines_result.filter((data) => (data)._id === String(p_detail_sequence_ue_planif_line_id))[0].label}
options={New_Get_List_Given_UE_Planif_lines_result}
value={New_Getall_Class_List_UE_result.filter((data) => (data)._id === String(p_detail_sequence_ue_id))[0].label}
options={New_Getall_Class_List_UE_result}
onChange={(event, value) => {
seteu_planif_line_insdispo("");
setp_detail_sequence_ue_planif_line_id("");
if (value && value._id) {
setp_detail_sequence_ue_planif_line_id(value._id);
if (value.in_use === "1") {
alert(" Cette ligne est deja planifiée");
seteu_planif_line_insdispo("1");
} else {
seteu_planif_line_insdispo("");
}
//Get_List_Given_UE_Planif_lines(value._id);
setp_detail_sequence_ue_id(value._id);
Get_List_Given_UE_Planif_lines(value._id);
} else {
setp_detail_sequence_ue_planif_line_id("");
// setNew_Get_List_Given_UE_Planif_lines_result([]);
setp_detail_sequence_ue_id("");
setNew_Get_List_Given_UE_Planif_lines_result([]);
}
}}
renderInput={(params) => <TextField {...params} placeholder="Choisir une option " />
}
/>
/>}
{eu_planif_line_insdispo === "1" &&
<div className="session_caract_Dialog koUpdateData">
<Tooltip className="tooltip_css" id="eu_planif_line_insdispo" style={{ "fontSize": "12px" }} />
<a data-tooltip-id="eu_planif_line_insdispo" data-tooltip-html="Cette ligne de planification est déjà utilisée">
<FcCancel /><FcInfo /> <font size="10px" color="orange"> /!\ Cette ligne de planification est déjà utilisée </font>
</a>
</div>
}
</div>
}
{New_Get_List_Given_UE_Planif_lines_result && New_Get_List_Given_UE_Planif_lines_result.length > 1 &&
p_detail_sequence_ue_id && String(p_detail_sequence_ue_id).length > 2 &&
<div className="session_caract_Dialog" > Planification
<Autocomplete
disablePortal
name="event_dialog_ue_id_planig_line_id"
id="event_dialog_ue_id_planig_line_id"
<div className="session_caract_Dialog" > Groupe apprenants
fullWidth
value={New_Get_List_Given_UE_Planif_lines_result.filter((data) => (data)._id === String(p_detail_sequence_ue_planif_line_id))[0].label}
options={New_Get_List_Given_UE_Planif_lines_result}
onChange={(event, value) => {
if (value && value._id) {
setp_detail_sequence_ue_planif_line_id(value._id);
if (value.in_use === "1") {
alert(" Cette ligne est deja planifiée");
seteu_planif_line_insdispo("1");
} else {
seteu_planif_line_insdispo("");
}
//Get_List_Given_UE_Planif_lines(value._id);
} else {
setp_detail_sequence_ue_planif_line_id("");
// setNew_Get_List_Given_UE_Planif_lines_result([]);
}
{New_Getall_Partner_Groupe_Inscrit_result && New_Getall_Partner_Groupe_Inscrit_result.length > 0 && <Autocomplete
disablePortal
name="event_dialog_grp_apprenant"
id="event_dialog_grp_apprenant"
}}
fullWidth
value={New_Getall_Partner_Groupe_Inscrit_result.filter((data) => (data)._id === String(p_detail_sequence_groupe_apprenant_id))[0].label}
options={New_Getall_Partner_Groupe_Inscrit_result}
onChange={(event, value) => {
if (value && value._id) {
setp_detail_sequence_groupe_apprenant_id(value._id);
} else {
setp_detail_sequence_groupe_apprenant_id("");
renderInput={(params) => <TextField {...params} placeholder="Choisir une option " />
}
/>
{eu_planif_line_insdispo === "1" &&
<div className="session_caract_Dialog koUpdateData">
<Tooltip className="tooltip_css" id="eu_planif_line_insdispo" style={{ "fontSize": "12px" }} />
<a data-tooltip-id="eu_planif_line_insdispo" data-tooltip-html="Cette ligne de planification est déjà utilisée">
<FcCancel /><FcInfo /> <font size="10px" color="orange"> /!\ Cette ligne de planification est déjà utilisée </font>
</a>
</div>
}
}}
renderInput={(params) => <TextField {...params} placeholder="Choisir une option " />
}
/>}
</div>
</div>
}
<div className="session_caract_Dialog" style={{ width: '50%' }}> Groupe apprenants
{New_Getall_Partner_Groupe_Inscrit_result && New_Getall_Partner_Groupe_Inscrit_result.length > 0 && <Autocomplete
disablePortal
name="event_dialog_grp_apprenant"
id="event_dialog_grp_apprenant"
fullWidth
value={New_Getall_Partner_Groupe_Inscrit_result.filter((data) => (data)._id === String(p_detail_sequence_groupe_apprenant_id))[0].label}
options={New_Getall_Partner_Groupe_Inscrit_result}
onChange={(event, value) => {
if (value && value._id) {
setp_detail_sequence_groupe_apprenant_id(value._id);
} else {
setp_detail_sequence_groupe_apprenant_id("");
}
}}
renderInput={(params) => <TextField {...params} placeholder="Choisir une option " />
}
/>}
</div>
</nav>
<div className="session_caract_Dialog" > Titre
<TextField
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
@ -4532,7 +4534,7 @@ const Module_Session_Planification = (props) => {
</div>
<div className="session_caract_Dialog" style={{ width: '50%' }}> Debut
<div className="session_caract_Dialog" style={{ width: '50%' }}> Debut <br />
<DatePicker
name="event_dialog_start"
id="event_dialog_start"
@ -4557,7 +4559,7 @@ const Module_Session_Planification = (props) => {
</div>
<div className="session_caract_Dialog" style={{ width: '50%' }}> Fin
<div className="session_caract_Dialog" style={{ width: '50%' }}> Fin <br />
<DatePicker
name="event_dialog_end"
id="event_dialog_end"
@ -6074,115 +6076,115 @@ const Module_Session_Planification = (props) => {
</nav>
</div>
<div className="session_caract_Dialog" > UE / Matière
<nav style={{ "float": "left", "width": "100%" }}>
<div className="session_caract_Dialog" style={{ width: '50%' }}> UE / Matière
{New_Getall_Class_List_UE_result && New_Getall_Class_List_UE_result.length > 0 &&
<Autocomplete
{New_Getall_Class_List_UE_result && New_Getall_Class_List_UE_result.length > 0 &&
<Autocomplete
disablePortal
name="event_dialog_ue"
id="event_dialog_ue"
fullWidth
value={New_Getall_Class_List_UE_result.filter((data) => (data)._id === String(p_detail_sequence_ue_id))[0].label}
options={New_Getall_Class_List_UE_result}
onChange={(event, value) => {
seteu_planif_line_insdispo("");
setp_detail_sequence_ue_planif_line_id("");
if (value && value._id) {
setp_detail_sequence_ue_id(value._id);
Get_List_Given_UE_Planif_lines(value._id);
} else {
setp_detail_sequence_ue_id("");
setNew_Get_List_Given_UE_Planif_lines_result([]);
}
}}
renderInput={(params) => <TextField {...params} placeholder="Choisir une option " />
}
/>}
</div>
{New_Get_List_Given_UE_Planif_lines_result && New_Get_List_Given_UE_Planif_lines_result.length > 1 &&
p_detail_sequence_ue_id && String(p_detail_sequence_ue_id).length > 2 &&
<div className="session_caract_Dialog" > Planification
<Autocomplete
disablePortal
name="event_dialog_ue_id_planig_line_id"
id="event_dialog_ue_id_planig_line_id"
fullWidth
value={New_Get_List_Given_UE_Planif_lines_result.filter((data) => (data)._id === String(p_detail_sequence_ue_planif_line_id))[0].label}
options={New_Get_List_Given_UE_Planif_lines_result}
onChange={(event, value) => {
if (value && value._id) {
setp_detail_sequence_ue_planif_line_id(value._id);
if (value.in_use === "1") {
alert(" Cette ligne est deja planifiée");
seteu_planif_line_insdispo("1");
} else {
seteu_planif_line_insdispo("");
}
//Get_List_Given_UE_Planif_lines(value._id);
} else {
setp_detail_sequence_ue_planif_line_id("");
// setNew_Get_List_Given_UE_Planif_lines_result([]);
}
}}
renderInput={(params) => <TextField {...params} placeholder="Choisir une option " />
}
/>
{eu_planif_line_insdispo === "1" &&
<div className="session_caract_Dialog koUpdateData">
<Tooltip className="tooltip_css" id="eu_planif_line_insdispo" style={{ "fontSize": "12px" }} />
<a data-tooltip-id="eu_planif_line_insdispo" data-tooltip-html="Cette ligne de planification est déjà utilisée">
<FcCancel /><FcInfo /> <font size="10px" color="orange"> /!\ Cette ligne de planification est déjà utilisée </font>
</a>
</div>
}
</div>
}
<div className="session_caract_Dialog" style={{ width: '50%' }}> Groupe apprenants
{New_Getall_Partner_Groupe_Inscrit_result && New_Getall_Partner_Groupe_Inscrit_result.length > 0 && <Autocomplete
disablePortal
name="event_dialog_ue"
id="event_dialog_ue"
name="event_dialog_grp_apprenant"
id="event_dialog_grp_apprenant"
fullWidth
value={New_Getall_Class_List_UE_result.filter((data) => (data)._id === String(p_detail_sequence_ue_id))[0].label}
options={New_Getall_Class_List_UE_result}
value={New_Getall_Partner_Groupe_Inscrit_result.filter((data) => (data)._id === String(p_detail_sequence_groupe_apprenant_id))[0].label}
options={New_Getall_Partner_Groupe_Inscrit_result}
onChange={(event, value) => {
seteu_planif_line_insdispo("");
setp_detail_sequence_ue_planif_line_id("");
if (value && value._id) {
setp_detail_sequence_ue_id(value._id);
Get_List_Given_UE_Planif_lines(value._id);
setp_detail_sequence_groupe_apprenant_id(value._id);
} else {
setp_detail_sequence_ue_id("");
setNew_Get_List_Given_UE_Planif_lines_result([]);
setp_detail_sequence_groupe_apprenant_id("");
}
}}
renderInput={(params) => <TextField {...params} placeholder="Choisir une option " />
}
/>}
</div>
{New_Get_List_Given_UE_Planif_lines_result && New_Get_List_Given_UE_Planif_lines_result.length > 1 &&
p_detail_sequence_ue_id && String(p_detail_sequence_ue_id).length > 2 &&
<div className="session_caract_Dialog" > Planification
<Autocomplete
disablePortal
name="event_dialog_ue_id_planig_line_id"
id="event_dialog_ue_id_planig_line_id"
fullWidth
value={New_Get_List_Given_UE_Planif_lines_result.filter((data) => (data)._id === String(p_detail_sequence_ue_planif_line_id))[0].label}
options={New_Get_List_Given_UE_Planif_lines_result}
onChange={(event, value) => {
if (value && value._id) {
setp_detail_sequence_ue_planif_line_id(value._id);
if (value.in_use === "1") {
alert(" Cette ligne est deja planifiée");
seteu_planif_line_insdispo("1");
} else {
seteu_planif_line_insdispo("");
}
//Get_List_Given_UE_Planif_lines(value._id);
} else {
setp_detail_sequence_ue_planif_line_id("");
// setNew_Get_List_Given_UE_Planif_lines_result([]);
}
}}
renderInput={(params) => <TextField {...params} placeholder="Choisir une option " />
}
/>
{eu_planif_line_insdispo === "1" &&
<div className="session_caract_Dialog koUpdateData">
<Tooltip className="tooltip_css" id="eu_planif_line_insdispo" style={{ "fontSize": "12px" }} />
<a data-tooltip-id="eu_planif_line_insdispo" data-tooltip-html="Cette ligne de planification est déjà utilisée">
<FcCancel /><FcInfo /> <font size="10px" color="orange"> /!\ Cette ligne de planification est déjà utilisée </font>
</a>
</div>
}
</div>
}
<div className="session_caract_Dialog" > Groupe apprenants
{New_Getall_Partner_Groupe_Inscrit_result && New_Getall_Partner_Groupe_Inscrit_result.length > 0 && <Autocomplete
disablePortal
name="event_dialog_grp_apprenant"
id="event_dialog_grp_apprenant"
fullWidth
value={New_Getall_Partner_Groupe_Inscrit_result.filter((data) => (data)._id === String(p_detail_sequence_groupe_apprenant_id))[0].label}
options={New_Getall_Partner_Groupe_Inscrit_result}
onChange={(event, value) => {
if (value && value._id) {
setp_detail_sequence_groupe_apprenant_id(value._id);
} else {
setp_detail_sequence_groupe_apprenant_id("");
}
}}
renderInput={(params) => <TextField {...params} placeholder="Choisir une option " />
}
/>}
</div>
</nav>
<div className="session_caract_Dialog" > Titre
<TextField
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
@ -6204,7 +6206,8 @@ const Module_Session_Planification = (props) => {
</div>
<div className="session_caract_Dialog" style={{ width: '50%' }}> Debut
<div className="session_caract_Dialog" style={{ width: '50%' }}> Debut <br />
<DatePicker
name="event_dialog_start"
id="event_dialog_start"
@ -6230,9 +6233,10 @@ const Module_Session_Planification = (props) => {
/>
</div>
<div className="session_caract_Dialog" style={{ width: '50%' }}> Fin
<div className="session_caract_Dialog" style={{ width: '50%' }}> Fin <br />
<DatePicker
name="event_dialog_end"
id="event_dialog_end"
@ -7297,10 +7301,17 @@ const Module_Session_Planification = (props) => {
</div>}
</div>
<style>{local_css}</style>
</div >
);
}
export default Module_Session_Planification;
const local_css = `
.react-datepicker-wrapper{
width: 100%;
}
`;

View File

@ -30,6 +30,7 @@ const New_Sidebar_ENT_Student_2025 = () => {
const history = useHistory();
const stored_apprenant_id = getCookie('tokenmysychapprenant');
const stored_tuteur_id = getCookie('tokenmysytuteurrhid');
const [cookie, setCookie, removeCookie] = useCookies(['tokenmysych']);
const [cookie_part, setCookie_part, removeCookie_part] = useCookies(['tokenmysypart']);
@ -60,30 +61,30 @@ const New_Sidebar_ENT_Student_2025 = () => {
history.push("/ent_student");
}
const stored_cookie = getCookie('tokenmysypart');
const stored_cookie = getCookie('tokenmysypart');
if (stored_cookie) {
var acces_right_token_name = stored_cookie + "_uar";
if (stored_cookie) {
var acces_right_token_name = stored_cookie + "_uar";
removeCookie(acces_right_token_name,);
}
removeCookie(acces_right_token_name,);
}
removeCookie("tokenmysychapprenant");
removeCookie("tokenmysych");
removeCookie("tokenmysychconnecteduserid");
removeCookie("tokenmysytypeconnexion");
removeCookie("tokenmysychapprenant");
removeCookie("tokenmysych");
removeCookie("tokenmysychconnecteduserid");
removeCookie("tokenmysytypeconnexion");
removeCookie("__stripe_sid");
removeCookie("__stripe_mid");
removeCookie("__stripe_sid");
removeCookie("__stripe_mid");
removeCookie("tokenmysypart");
removeCookie("mysy_session_display_view",);
removeCookie("mysy_menu_gauche_reduit",);
removeCookie("mysy_catalog_data_row_grouped_by",);
removeCookie("tokenmysytuteurrhid");
removeCookie("tokenmysychclient");
removeCookie("tokenmysypart");
removeCookie("mysy_session_display_view",);
removeCookie("mysy_menu_gauche_reduit",);
removeCookie("mysy_catalog_data_row_grouped_by",);
removeCookie("tokenmysytuteurrhid");
removeCookie("tokenmysychclient");
}
@ -229,7 +230,157 @@ const New_Sidebar_ENT_Student_2025 = () => {
// Pass on our props
<div>
{String(environnment) === "PROD" &&
{String(environnment) === "PROD" && stored_tokenmysytypeconnexion !== "tuteur" &&
<Menu className="ch_burger_menu">
<a href={"/mysy-student-ent/" + `${stored_apprenant_id}` + "/mes_formations"} className="menu-link">Formations</a>
<a href={"/mysy-student-ent/" + `${stored_apprenant_id}` + "/mon_planning"} className="menu-link">Planning</a>
<a href={"/mysy-student-ent/" + `${stored_apprenant_id}` + "/mes_notes"} className="menu-link">Notes</a>
<a href={"/mysy-student-ent/" + `${stored_apprenant_id}` + "/mes_documents"} className="menu-link">Documents</a>
<a href={"/mysy-student-ent/" + `${stored_apprenant_id}` + "/mes_emails"} className="menu-link">Emails &nbsp;&nbsp;<StyledBadge_mysy_color1 badgeContent={nb_undread_mail} style={{ "cursor": "pointer" }}
onClick={(event) => {
// monactivite_func();
}}> </StyledBadge_mysy_color1></a>
{String(someoneconnected) !== String("1") &&
<nav onClick={handleAccountConnexion}>
Connexion
</nav>
}
{String(someoneconnected) === String("1") &&
<a href={"/mysy-student-ent/" + `${stored_apprenant_id}` + "/apprenant_account_data"}
>Mon compte</a>
}
{typeof (stored_partner) !== "undefined" &&
/* Connexion partner active */
<Button className='bton_annule' onClick={logout} >
Deconnexion
</Button>
}
{typeof (stored_user) != "undefined" &&
/* Connexion utilisateur active */
<Button className='bton_annule' onClick={logout} >
Deconnexion
</Button>
}
</Menu>}
{String(environnment) === "PROD" && stored_tokenmysytypeconnexion === "tuteur" &&
<Menu className="ch_burger_menu">
<a href={"/mysy-student-ent/" + `${stored_tuteur_id}` + "/mes_formations"} className="menu-link">Formations</a>
{String(someoneconnected) !== String("1") &&
<nav onClick={handleAccountConnexion}>
Connexion
</nav>
}
{String(someoneconnected) === String("1") &&
<a href={"/mysy-student-ent/" + `${stored_tuteur_id}` + "/apprenant_account_data"}
>Mon compte</a>
}
{typeof (stored_partner) !== "undefined" &&
/* Connexion partner active */
<Button className='bton_annule' onClick={logout} >
Deconnexion
</Button>
}
{typeof (stored_user) != "undefined" &&
/* Connexion utilisateur active */
<Button className='bton_annule' onClick={logout} >
Deconnexion
</Button>
}
</Menu>}
{(String(environnment) === "REC" || String(environnment) === "DEM") && stored_tokenmysytypeconnexion !== "tuteur" &&
<Menu className="ch_burger_menu">
<a href={"/mysy-student-ent/" + `${stored_apprenant_id}` + "/mes_formations"} className="menu-link">Formations</a>
<a href={"/mysy-student-ent/" + `${stored_apprenant_id}` + "/mon_planning"} className="menu-link">Planning</a>
<a href={"/mysy-student-ent/" + `${stored_apprenant_id}` + "/mes_notes"} className="menu-link">Notes</a>
<a href={"/mysy-student-ent/" + `${stored_apprenant_id}` + "/mes_documents"} className="menu-link">Documents</a>
<a href={"/mysy-student-ent/" + `${stored_apprenant_id}` + "/mes_emails"} className="menu-link">Emails &nbsp;&nbsp;<StyledBadge_mysy_color1 badgeContent={nb_undread_mail} style={{ "cursor": "pointer" }}
onClick={(event) => {
// monactivite_func();
}}> </StyledBadge_mysy_color1></a>
{String(someoneconnected) !== String("1") &&
<nav onClick={handleAccountConnexion}>
Connexion
</nav>
}
{String(someoneconnected) === String("1") &&
<a href={"/mysy-student-ent/" + `${stored_apprenant_id}` + "/apprenant_account_data"}
>Mon compte</a>
}
{typeof (stored_partner) !== "undefined" &&
/* Connexion partner active */
<Button className='bton_annule' onClick={logout} >
Deconnexion
</Button>
}
{typeof (stored_user) != "undefined" &&
/* Connexion utilisateur active */
<Button className='bton_annule' onClick={logout} >
Deconnexion
</Button>
}
</Menu>}
{(String(environnment) === "REC" || String(environnment) === "DEM") && stored_tokenmysytypeconnexion === "tuteur" &&
<Menu className="ch_burger_menu">
<a href={"/mysy-student-ent/" + `${stored_tuteur_id}` + "/mes_formations"} className="menu-link">Formations</a>
{String(someoneconnected) !== String("1") &&
<nav onClick={handleAccountConnexion}>
Connexion
</nav>
}
{String(someoneconnected) === String("1") &&
<a href={"/mysy-student-ent/" + `${stored_tuteur_id}` + "/apprenant_account_data"}
>Mon compte</a>
}
{typeof (stored_partner) !== "undefined" &&
/* Connexion partner active */
<Button className='bton_annule' onClick={logout} >
Deconnexion
</Button>
}
{typeof (stored_user) != "undefined" &&
/* Connexion utilisateur active */
<Button className='bton_annule' onClick={logout} >
Deconnexion
</Button>
}
</Menu>}
{String(environnment) === "DEV" && stored_tokenmysytypeconnexion !== "tuteur" &&
<Menu className="ch_burger_menu">
<a href={"/mysy-student-ent/" + `${stored_apprenant_id}` + "/mes_formations"} className="menu-link">Formations</a>
@ -274,24 +425,10 @@ const New_Sidebar_ENT_Student_2025 = () => {
}
</Menu>}
{(String(environnment) === "REC" || String(environnment) === "DEM") &&
{String(environnment) === "DEV" && stored_tokenmysytypeconnexion === "tuteur" &&
<Menu className="ch_burger_menu">
<a href={"/mysy-student-ent/" + `${stored_apprenant_id}` + "/mes_formations"} className="menu-link">Formations</a>
<a href={"/mysy-student-ent/" + `${stored_apprenant_id}` + "/mon_planning"} className="menu-link">Planning</a>
<a href={"/mysy-student-ent/" + `${stored_apprenant_id}` + "/mes_notes"} className="menu-link">Notes</a>
<a href={"/mysy-student-ent/" + `${stored_apprenant_id}` + "/mes_documents"} className="menu-link">Documents</a>
<a href={"/mysy-student-ent/" + `${stored_apprenant_id}` + "/mes_emails"} className="menu-link">Emails &nbsp;&nbsp;<StyledBadge_mysy_color1 badgeContent={nb_undread_mail} style={{ "cursor": "pointer" }}
onClick={(event) => {
// monactivite_func();
}}> </StyledBadge_mysy_color1></a>
<a href={"/mysy-student-ent/" + `${stored_tuteur_id}` + "/mes_formations"} className="menu-link">Formations</a>
{String(someoneconnected) !== String("1") &&
<nav onClick={handleAccountConnexion}>
Connexion
@ -299,53 +436,7 @@ const New_Sidebar_ENT_Student_2025 = () => {
}
{String(someoneconnected) === String("1") &&
<a href={"/mysy-student-ent/" + `${stored_apprenant_id}` + "/apprenant_account_data"}
>Mon compte</a>
}
{typeof (stored_partner) !== "undefined" &&
/* Connexion partner active */
<Button className='bton_annule' onClick={logout} >
Deconnexion
</Button>
}
{typeof (stored_user) != "undefined" &&
/* Connexion utilisateur active */
<Button className='bton_annule' onClick={logout} >
Deconnexion
</Button>
}
</Menu>}
{String(environnment) === "DEV" &&
<Menu className="ch_burger_menu">
<a href={"/mysy-student-ent/" + `${stored_apprenant_id}` + "/mes_formations"} className="menu-link">Formations</a>
<a href={"/mysy-student-ent/" + `${stored_apprenant_id}` + "/mon_planning"} className="menu-link">Planning</a>
<a href={"/mysy-student-ent/" + `${stored_apprenant_id}` + "/mes_notes"} className="menu-link">Notes</a>
<a href={"/mysy-student-ent/" + `${stored_apprenant_id}` + "/mes_documents"} className="menu-link">Documents</a>
<a href={"/mysy-student-ent/" + `${stored_apprenant_id}` + "/mes_emails"} className="menu-link">Emails &nbsp;&nbsp;<StyledBadge_mysy_color1 badgeContent={nb_undread_mail} style={{ "cursor": "pointer" }}
onClick={(event) => {
// monactivite_func();
}}> </StyledBadge_mysy_color1></a>
{String(someoneconnected) !== String("1") &&
<nav onClick={handleAccountConnexion}>
Connexion
</nav>
}
{String(someoneconnected) === String("1") &&
<a href={"/mysy-student-ent/" + `${stored_apprenant_id}` + "/apprenant_account_data"}
<a href={"/mysy-student-ent/" + `${stored_tuteur_id}` + "/apprenant_account_data"}
>Mon compte</a>
}
{typeof (stored_partner) !== "undefined" &&

View File

@ -31,6 +31,9 @@ import Abonnement from "./Abonnement";
import { useLocation } from "react-router-dom";
import { useParams } from 'react-router-dom';
import CheckOut from "./CheckOut";
import { FaHandPointRight } from "react-icons/fa";
import OrderConfirmation from "./OrderConfirmation";
import Partner_Client from "./Partner_Client";

View File

@ -41,7 +41,7 @@ import { Editor } from '@tinymce/tinymce-react';
import { ImMobile2, ImWhatsapp, ImHome, ImOffice } from "react-icons/im";
import { BsMailbox } from "react-icons/bs";
import { Elements } from '@stripe/react-stripe-js';
import { loadStripe } from '@stripe/stripe-js';
import { PaymentElement } from '@stripe/react-stripe-js';
import Popup from 'reactjs-popup';
import 'reactjs-popup/dist/index.css';
@ -102,8 +102,6 @@ import { es } from 'date-fns/esm/locale';
import steph_img from "../mysy_img/spteph.jpg";
// pour le payement stripe : https://stripe.com/docs/payments/quickstart?client=react&lang=python
const stripePromise = loadStripe('pk_test_51LUUfAAbmaEugrFTI25uZBD3IFjbtaL6jUfRV83diDf7nco8worna4NGKhMHbPP71WCwT5EHFRdDNatxPrJWwgZ300kgH5EO4p');
const datagridSx = {
borderRadius: 2,

View File

@ -89,6 +89,8 @@ const Header_ENT_Student = () => {
const stored_user = getCookie('tokenmysych');
const stored_part = getCookie('tokenmysypart');
const stored_apprenant_id = getCookie('tokenmysychapprenant');
const stored_tuteur_id = getCookie('tokenmysytuteurrhid');
const stored_tokenmysytypeconnexion = getCookie('tokenmysytypeconnexion');
const [cookie, setCookie, removeCookie] = useCookies(['tokenmysych'], { path: '/' });
const [partcookie, setpartCookie, removepartCookie] = useCookies(['tokenmysypart'], { path: '/' });
@ -403,7 +405,7 @@ const Header_ENT_Student = () => {
</nav>}
{stored_tokenmysytypeconnexion === "tuteur" && <nav className="menu-list">
<a href={"/mysy-student-ent/" + `${stored_apprenant_id}` + "/mes_formations"} className="menu-link">Formations </a>
<a href={"/mysy-student-ent/" + `${stored_tuteur_id}` + "/mes_formations"} className="menu-link">Formations </a>
</nav>}

View File

@ -3,16 +3,13 @@ import ReactDOM from 'react-dom/client';
import 'bootstrap/dist/css/bootstrap.min.css';
import "./styles/index.scss"
import App from './App';
import { Elements } from '@stripe/react-stripe-js';
import { loadStripe } from '@stripe/stripe-js';
window.ela_tocken = "";
const stripePromise_PROD = loadStripe('pk_live_51LUUfAAbmaEugrFTyfNe4Dj0vbxc5qXQqNs0rztjAKy8oSlc5EEQyJGjA8Z5kXmP2gvUMcYLUBYCIyWWzLCw59RY00PtGInkVf');
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
<Elements stripe={stripePromise_PROD}>
<App />
</Elements>
);

View File

@ -5,20 +5,17 @@ import "./styles/index.scss"
import App from './App';
import Footer from "./pages/footer";
import { Elements } from '@stripe/react-stripe-js';
import { loadStripe } from '@stripe/stripe-js';
const stripePromise = loadStripe('pk_test_51LUUfAAbmaEugrFTI25uZBD3IFjbtaL6jUfRV83diDf7nco8worna4NGKhMHbPP71WCwT5EHFRdDNatxPrJWwgZ300kgH5EO4p');
const stripePromise_PROD = loadStripe('pk_live_51LUUfAAbmaEugrFTyfNe4Dj0vbxc5qXQqNs0rztjAKy8oSlc5EEQyJGjA8Z5kXmP2gvUMcYLUBYCIyWWzLCw59RY00PtGInkVf');
window.ela_tocken = "";
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
<Elements stripe={stripePromise_PROD}>
<App />
</Elements>
);

View File

@ -65,6 +65,8 @@
.css-1v4ccyo {
height: 3rem !important;
}
padding-top: 0.5rem;

View File

@ -487,7 +487,7 @@
/*style petites-moyennes tablettes */
.bloc_image_centrale {
width: 70%;
width: 50% !important;
text-align: center;
margin: auto;
}
@ -1101,8 +1101,9 @@
@media only screen and (min-width: 992px) and (max-width: 1199px) {
.bloc_image_centrale {
width: 50%;
width: 40%;
float: left;
padding-top: 1rem;
}
@ -1690,8 +1691,9 @@
@media only screen and (min-width: 1200px) {
.bloc_image_centrale {
width: 50%;
width: 40%;
float: left;
padding-top: 2rem;
}

View File

@ -998,7 +998,8 @@
display: flex;
flex-direction: row;
gap: 24px;
width: 100%;
width: 90%;
margin: auto;
flex-wrap: wrap;
justify-content: center;
}

View File

@ -24,7 +24,7 @@
z-index: 1;
top: 0px;
opacity: 80%;
left: 0px;
left: 0px;
}
.spinner {

View File

@ -3,7 +3,7 @@
width: 100%;
float: left;
min-height: calc(100vh - 5rem);
.css-1nmdiq5-menu {
background: transparent !important;
@ -15,7 +15,7 @@
background: transparent !important;
}
.h1_transparent {
color: transparent;
//color: red;
@ -23,6 +23,8 @@
}
@media only screen and (max-width: 600px) {
min-height: calc(100vh + 2rem);
.calage {
display: none;
}
@ -758,7 +760,7 @@
/* Background Header */
position: absolute;
width: 100%;
height: 350px;
height: 150px;
left: 0px;
top: 0px;
@ -2327,8 +2329,8 @@
.bloc_connexion {
width: 100%;
float: left;
min-height: 120vh;
margin-top: 10rem;
min-height: 15vh;
margin-top: 9rem;
}
.bloc_milieu_text {
@ -2581,6 +2583,8 @@
@media only screen and (min-width: 601px) and (max-width: 991px) {
/*style petites-moyennes tablettes */
min-height: calc(100vh - 5rem);
.div_row {
float: left;
//border:0px solid black;
@ -3500,7 +3504,7 @@
.Partner_Catalog_Background_Header {
position: absolute;
width: 100%;
height: 380px;
height: 280px;
left: 0px;
top: 0px;
@ -5722,7 +5726,7 @@
width: 100%;
float: left;
min-height: 40vh;
margin-top: 20rem;
margin-top: 15rem;
margin-bottom: 5rem;
}
@ -5872,6 +5876,7 @@
@media only screen and (min-width: 992px) and (max-width: 1199px) {
/*style grande tablettes & Pc portable */
min-height: calc(100vh - 5rem);
.div_row {
float: left;
@ -6777,7 +6782,7 @@
.Partner_Catalog_Background_Header {
position: absolute;
width: 100%;
height: 452px;
height: 252px;
left: 0px;
top: 0px;
@ -9142,6 +9147,7 @@
}
@media only screen and (min-width: 1200px) and (max-width: 1919px) {
min-height: calc(100vh - 5rem);
/* Ordi de bureau et grands ecrans*/
.align_gauche {
@ -10048,7 +10054,7 @@
.Partner_Catalog_Background_Header {
// position: absolute;
width: 100%;
height: 452px;
height: 252px;
left: 0px;
top: 0px;
@ -12246,7 +12252,7 @@
width: 100%;
float: left;
min-height: 40vh;
padding-top: 3rem;
padding-top: 0px;
}
.bloc_milieu_text {
@ -12440,6 +12446,8 @@
}
@media only screen and (min-width: 1920px) {
min-height: calc(100vh - 5rem);
.calage {
width: 2%;
}
@ -13358,7 +13366,7 @@
.Partner_Catalog_Background_Header {
// position: absolute;
width: 100%;
height: 452px;
height: 252px;
left: 0px;
top: 0px;
@ -15578,7 +15586,7 @@
width: 100%;
float: left;
min-height: 40vh;
padding-top: 3rem;
}
.bloc_milieu_text {