21/01/2024 -18h30

recette2
cherif 2024-01-21 18:48:15 +01:00
parent 93b7b17675
commit d035cafa84
5 changed files with 72 additions and 16 deletions

View File

@ -345,7 +345,7 @@ const DistplayPartnerTraningsPage = (props) => {
const [expanded, setExpanded] = React.useState(false);
return (
<div style={{ paddingLeft: "5px", paddingRight: "15px", "display": "block", wordBreak: "break-all" }}>
<div style={{ paddingLeft: "5px", paddingRight: "5px", "display": "block", wordBreak: "break-all" }}>
{expanded ? value : value.slice(0, 50)}&nbsp;
{value.length > 50 && (
// eslint-disable-next-line jsx-a11y/anchor-is-valid
@ -384,7 +384,7 @@ const DistplayPartnerTraningsPage = (props) => {
{ field: 'zone_diffusion', headerName: 'zone_diffusion', hide: true, maxWidth: 1, editable: false, },
{ field: 'internal_url', headerName: 'internal_url', hide: true, editable: false, },
{ field: 'external_code', headerName: 'Code Formation', hideable: false, minWidth: 150, flex: 1, maxWidth: 250, editable: false, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{ field: 'title', headerName: 'Titre', flex: 1, hideable: false, minWidth: 250, flex: 1, editable: false, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{ field: 'title', headerName: 'Titre', hideable: false, minWidth: 300, flex: 1, editable: false, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{ field: 'domain', headerName: 'Domaine', minWidth: 50, flex: 1, maxWidth: 150, hideable: true, editable: false, },
{ field: 'metier', headerName: 'Métier', minWidth: 50, flex: 1, maxWidth: 150, hideable: true, hide: true, editable: false, },
{ field: 'nb_session_formation', headerName: 'Nb Session', minWidth: 50, flex: 1, maxWidth: 100, hideable: true, hide: false , editable: false, align: "center",},

View File

@ -122,6 +122,7 @@ const Employes = (props) => {
{ field: 'nom', headerName: 'Nom', flex: 1, hide: false, minWidth: 150, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{ field: 'prenom', headerName: 'Prénom', flex: 1, hide: false, minWidth: 150, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{ field: 'email', headerName: 'Email', minWidth: 300, flex: 1, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{ field: 'user_login', headerName: 'Login', minWidth: 200, flex: 1, renderCell: (params) => <ExpandableCell_50 {...params} />, },
{
field: 'ismanager', headerName: 'Manager', width: 150, hide: false,
valueFormatter: (params) => {
@ -5573,6 +5574,7 @@ const Employes = (props) => {
adr_ville: JSON.parse(item).adr_ville,
adr_pays: JSON.parse(item).adr_pays,
date_naissance: JSON.parse(item).date_naissance,
user_login: JSON.parse(item).user_login,
}
@ -5872,7 +5874,11 @@ const Employes = (props) => {
<div className="session_caract"> <b> Email </b><br />
<div className="session_caract">
<Tooltip className="tooltip_css" id="deb_email" style={{ "fontSize": "12px" }} />
<a data-tooltip-id="deb_email" data-tooltip-html="L'email n'est pas modifiable si l'utilisateur a déjà un compte utilisateur">
<b> Email </b> <FcInfo />
</a><br />
<TextField
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
required
@ -5886,8 +5892,12 @@ const Employes = (props) => {
className="disabled_style"
value={p_detail_mail}
onChange={(e) => {
setp_detail_mail(e.target.value);
setEmployee_data_changed("1");
if (String(p_detail_user_login).trim() === "") {
setp_detail_mail(e.target.value);
setEmployee_data_changed("1");
} else {
alert(" Cet utilisateur a déjà un compte utilisateur associé cet email")
}
}
}
@ -6355,19 +6365,19 @@ const Employes = (props) => {
{ String(p_detail_user_login) === "" && <div style={{ "paddingLeft": "10px", "width": "30%", "float": "left" }}>
{String(p_detail_user_login) === "" && <div style={{ "paddingLeft": "10px", "width": "30%", "float": "left" }}>
<Button variant="contained" className="bton_action1" onClick={Dialog_1_handle_change_login_pwd}> Créer login & pwd
</Button>
</div>
}
{ String(p_detail_user_login) !== "" && <div style={{ "paddingLeft": "10px", "width": "30%", "float": "left" }}>
{String(p_detail_user_login) !== "" && <div style={{ "paddingLeft": "10px", "width": "30%", "float": "left" }}>
<Button variant="contained" className="bton_action1" onClick={Dialog_1_handle_change_login_pwd}> M.A.J PWD &nbsp;
</Button>
</div>
}
{ String(p_detail_user_login) !== "" && String(p_detail_user_login_locked) !== "1"
{String(p_detail_user_login) !== "" && String(p_detail_user_login_locked) !== "1"
&& <div style={{ "paddingLeft": "10px", "width": "30%", "float": "left" }}>
<Popup
trigger={
@ -6422,7 +6432,7 @@ const Employes = (props) => {
</div>
}
{ String(p_detail_user_login) !== "" && String(p_detail_user_login_locked) === "1"
{String(p_detail_user_login) !== "" && String(p_detail_user_login_locked) === "1"
&& <div style={{ "paddingLeft": "10px", "width": "30%", "float": "left" }}>
<Popup
trigger={
@ -6490,7 +6500,7 @@ const Employes = (props) => {
<Tooltip className="tooltip_css" id="deb_inscription_lms" style={{ "fontSize": "12px" }} />
<a data-tooltip-id="deb_inscription_lms" data-tooltip-html="Pour créer un accès E-Learning, cliquez sur 'Editer.<br/>
L'utilisateur doit avoir un compte utilisateur valide. Assuez-vous qu'il a bien un login et un mot de passe. ">
Login E-Learning <FcInfo /> <br />
Login E-Learning <FcInfo /> <br />
</a>
<TextField
@ -6508,7 +6518,7 @@ const Employes = (props) => {
/>
</div>
{String(p_detail_mysy_lms_user_id) === ""
&& String(p_detail_user_login) !== "" && String(p_detail_user_login_locked) !== "1" &&
@ -6623,6 +6633,42 @@ const Employes = (props) => {
</div>}
</div>
<div className="div_row" style={{ "border": "None" }}>
&nbsp;
</div>
<div className="div_row" style={{ "border": "None" }}>
{String(Employee_data_changed) === "1" && String(employee_data_edit_mode) === "1" && <div className="div_row" style={{ "border": "None", "color": "orange", "textAlign": "center" }}>
/!\ Pensez à enregistrer les modifications
</div>}
<div className="div_row" style={{ "border": "None", "color": "orange", "textAlign": "center" }}>
{String(Employee_data_changed) === "1" && String(employee_data_edit_mode) === "1" && <div className="div_row_gauche" style={{ "textAlign": 'left', 'marginLeft': '15px' }}>
<Button variant="contained" className="bton_enreg" onClick={Update_One_Employee_Data}>Enregistrer les modifications
</Button>
</div>}
{String(employee_data_edit_mode) === "1" && <div className="div_row_droite" style={{ "textAlign": 'right', 'marginRight': '15px' }} >
<Button variant="contained" className="bton_annule" onClick={Annule_Employee_DetailFields}>Annuler
</Button>
</div>}
</div>
{String(employee_data_edit_mode) !== "1" && <div className="div_row_droite" style={{ "textAlign": 'right', 'marginRight': '15px' }}>
<Button variant="contained" className="bton_edit" onClick={Enable_Employee_DetailFields}>Editer
</Button>
</div>}
<div className="div_row" style={{ "border": "None" }}>
&nbsp;
</div>
</div>
<div className="div_row">
<div className="div_row" style={{ "border": "None" }}>
<hr className="hr_break" />
@ -6768,7 +6814,7 @@ const Employes = (props) => {
<div className="div_row" style={{ "border": "None" }}>
&nbsp;
</div>
{String(Employee_data_changed) === "1" && String(employee_data_edit_mode) === "1" && <div className="div_row" style={{ "border": "None", "color": "orange", "textAlign": "center" }}>
{/* {String(Employee_data_changed) === "1" && String(employee_data_edit_mode) === "1" && <div className="div_row" style={{ "border": "None", "color": "orange", "textAlign": "center" }}>
/!\ Pensez à enregistrer les modifications
</div>}
@ -6795,6 +6841,7 @@ const Employes = (props) => {
</Button>
</div>}
*/}
<div className="div_row" style={{ "border": "None" }}>
&nbsp;
</div>

View File

@ -1507,6 +1507,7 @@ const Materiels = (props) => {
setsubmenu("");
setadd_One_Materiel("");
setgridline_id("");
//Get_Materiel_Data(selected_id);
Display_Detail_Material_Data(selected_id);

View File

@ -910,8 +910,8 @@ const Partner_Client = (props) => {
<Button variant="outlined" onClick={handleClick_add_new_client}
className="detail_class_submenu bton_add_session"
id='menu_one_participant' name='menu_one_participant'><img src={participants} alt="ajout un client" className="icon_plus" /> &nbsp;
Ajouter 1 Client
id='menu_one_participant' name='menu_one_participant'> Ajout 1 Client &nbsp; <img src={participants} alt="ajout un client" className="icon_plus" /> &nbsp;
</Button>

View File

@ -274,12 +274,14 @@
background: #c8cfd5;
color: black;
width: 100%;
height: 2rem;
}
.bton_import_excel {
background: #c8cfd5;
color: black;
width: 100% !important;
height: 2rem;
}
.div_row_gauche_etendu {
@ -824,12 +826,14 @@
background: #c8cfd5;
color: black;
width: 50%;
height: 2rem;
}
.bton_import_excel {
background: #c8cfd5;
color: black;
width: 65% !important;
height: 2rem;
}
.div_row_gauche_etendu {
@ -1390,19 +1394,21 @@
}
.icon_plus {
width: 8%;
width: 6%;
}
.bton_add_session {
background: #c8cfd5;
color: black;
width: 40%;
height: 2rem;
}
.bton_import_excel {
background: #c8cfd5;
color: black;
width: 50% !important;
height: 2rem;
}
.div_row_gauche_etendu {
@ -1850,19 +1856,21 @@
}
.icon_plus {
width: 8%;
width: 6%;
}
.bton_add_session {
background: #c8cfd5;
color: black;
width: 25% !important;
height: 2rem;
}
.bton_import_excel {
background: #c8cfd5;
color: black;
width: 40% !important;
height: 2rem;
}
.div_row_gauche_etendu {