11/12/2023 - 20h30
parent
c6c891db5f
commit
77a8c1d2bc
|
@ -494,11 +494,16 @@ const AddClassManual = (props) => {
|
||||||
|
|
||||||
if (mylocaltraining.certif) {
|
if (mylocaltraining.certif) {
|
||||||
setmycertif(mylocaltraining.certif);
|
setmycertif(mylocaltraining.certif);
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
setmycertif("0");
|
setmycertif("0");
|
||||||
|
|
||||||
|
if (mylocaltraining.class_level) {
|
||||||
|
document.getElementsByName("class_level")[0].value = mylocaltraining.class_level;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
document.getElementsByName("class_level")[0].value = "2";
|
||||||
|
|
||||||
|
|
||||||
if (mylocaltraining.price)
|
if (mylocaltraining.price)
|
||||||
document.getElementsByName("price")[0].value = mylocaltraining.price;
|
document.getElementsByName("price")[0].value = mylocaltraining.price;
|
||||||
|
@ -676,6 +681,7 @@ const AddClassManual = (props) => {
|
||||||
var distentiel = document.getElementsByName("distentiel")[0].value;
|
var distentiel = document.getElementsByName("distentiel")[0].value;
|
||||||
var domaine = document.getElementsByName("domaine")[0].value;
|
var domaine = document.getElementsByName("domaine")[0].value;
|
||||||
var mypublier = document.getElementsByName("published")[0].value;
|
var mypublier = document.getElementsByName("published")[0].value;
|
||||||
|
var niveau_ftion = document.getElementsByName("class_level")[0].value;
|
||||||
var price = document.getElementsByName("price")[0].value;
|
var price = document.getElementsByName("price")[0].value;
|
||||||
var duree = document.getElementsByName("duree")[0].value;
|
var duree = document.getElementsByName("duree")[0].value;
|
||||||
var url = document.getElementsByName("url")[0].value;
|
var url = document.getElementsByName("url")[0].value;
|
||||||
|
@ -820,6 +826,7 @@ const AddClassManual = (props) => {
|
||||||
formData.append('presentiel', presentiel);
|
formData.append('presentiel', presentiel);
|
||||||
formData.append('domaine', domaine);
|
formData.append('domaine', domaine);
|
||||||
formData.append('distantiel', distentiel);
|
formData.append('distantiel', distentiel);
|
||||||
|
formData.append('class_level', niveau_ftion);
|
||||||
formData.append('price', price);
|
formData.append('price', price);
|
||||||
formData.append('duration', duree);
|
formData.append('duration', duree);
|
||||||
formData.append('duration_unit', mytrainingdurationunit);
|
formData.append('duration_unit', mytrainingdurationunit);
|
||||||
|
@ -1612,6 +1619,20 @@ const AddClassManual = (props) => {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div className="training_caract">
|
||||||
|
<TextField
|
||||||
|
name="class_level"
|
||||||
|
label="Niveau (2 à 8)"
|
||||||
|
type="number"
|
||||||
|
inputProps={{ min: "2", max: "8", step: "1" }}
|
||||||
|
InputLabelProps={{
|
||||||
|
shrink: true,
|
||||||
|
}}
|
||||||
|
disabled={false}
|
||||||
|
className="disabled_style"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div className="training_caract">
|
<div className="training_caract">
|
||||||
<TextField
|
<TextField
|
||||||
|
@ -1879,7 +1900,7 @@ const AddClassManual = (props) => {
|
||||||
{String(JSON.parse(champ_spec).field_type) === "float" && <TextField
|
{String(JSON.parse(champ_spec).field_type) === "float" && <TextField
|
||||||
name={JSON.parse(champ_spec).field_name}
|
name={JSON.parse(champ_spec).field_name}
|
||||||
id={JSON.parse(champ_spec).field_name}
|
id={JSON.parse(champ_spec).field_name}
|
||||||
label={JSON.parse(champ_spec).field_label}
|
label={JSON.parse(champ_spec).field_label}
|
||||||
type="number"
|
type="number"
|
||||||
inputProps={{ min: "1", max: "999999", step: "1" }}
|
inputProps={{ min: "1", max: "999999", step: "1" }}
|
||||||
InputLabelProps={{
|
InputLabelProps={{
|
||||||
|
|
|
@ -56,6 +56,9 @@ const AddParnerClient = (props) => {
|
||||||
const [p_client_email, setclient_email] = useState("");
|
const [p_client_email, setclient_email] = useState("");
|
||||||
const [p_client_nom, setclient_nom] = useState("");
|
const [p_client_nom, setclient_nom] = useState("");
|
||||||
|
|
||||||
|
const [p_client_type_id, setp_client_type_id] = useState("");
|
||||||
|
const [p_client_type_label, setp_client_type_label] = useState("");
|
||||||
|
|
||||||
const [p_client_raison_sociale, setclient_raison_sociale] = useState("");
|
const [p_client_raison_sociale, setclient_raison_sociale] = useState("");
|
||||||
const [p_client_siret, setclient_siret] = useState("");
|
const [p_client_siret, setclient_siret] = useState("");
|
||||||
const [p_client_tva, setclient_tva] = useState("");
|
const [p_client_tva, setclient_tva] = useState("");
|
||||||
|
@ -395,6 +398,45 @@ const AddParnerClient = (props) => {
|
||||||
setcurrent_contact_recid("");
|
setcurrent_contact_recid("");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const [Get_List_Client_Type_api, setGet_List_Client_Type_api] = useState();
|
||||||
|
const [Get_List_Client_Type_message, setGet_List_Client_Type_message] = useState();
|
||||||
|
const [Get_List_Client_Type_result, setGet_List_Client_Type_result] = useState();
|
||||||
|
function Get_List_Client_Type(event) {
|
||||||
|
|
||||||
|
var form = new FormData();
|
||||||
|
const stored_cookie = getCookie('tokenmysypart');
|
||||||
|
const related_collection = "partner_client"
|
||||||
|
|
||||||
|
|
||||||
|
form.append("token", stored_cookie);
|
||||||
|
|
||||||
|
var myurl = process.env.REACT_APP_API_URL + "myclass/api/Get_Client_Type_List/";
|
||||||
|
|
||||||
|
axios.post(myurl, form).then(res => {
|
||||||
|
console.log(" In Get_List_Client_Type res.data.status = " + res.data.status);
|
||||||
|
console.log(" In Get_List_Client_Type res.data.message r_class = " + res.data.message);
|
||||||
|
|
||||||
|
if (String(res.data.status) === String("true")) {
|
||||||
|
setGet_List_Client_Type_api("true");
|
||||||
|
setGet_List_Client_Type_result(res.data.message);
|
||||||
|
|
||||||
|
}
|
||||||
|
else if (String(res.data.status) === String("Err_Connexion")) {
|
||||||
|
alert('Erreur: ' + res.data.message);
|
||||||
|
history.push("/Connexion");
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
setGet_List_Client_Type_api("false");
|
||||||
|
setGet_List_Client_Type_message(res.data.message);
|
||||||
|
alert(res.data.message);
|
||||||
|
}
|
||||||
|
|
||||||
|
}).catch((error) => {
|
||||||
|
console.warn('Not good man :( Get_List_Client_Type = ', error);
|
||||||
|
setGet_List_Client_Type_api("false");
|
||||||
|
alert(" Impossible de récupérer les types de clients");
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|
||||||
|
@ -410,6 +452,7 @@ const AddParnerClient = (props) => {
|
||||||
setdatamodification_invoice("0");
|
setdatamodification_invoice("0");
|
||||||
|
|
||||||
Get_List_Contact_Of_client_Part();
|
Get_List_Contact_Of_client_Part();
|
||||||
|
Get_List_Client_Type();
|
||||||
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
@ -425,9 +468,8 @@ const AddParnerClient = (props) => {
|
||||||
const [fillfield_api, setfillfield_api] = useState("");
|
const [fillfield_api, setfillfield_api] = useState("");
|
||||||
const [fillfield_result, setfillfield_result] = useState("");
|
const [fillfield_result, setfillfield_result] = useState("");
|
||||||
const [fillfield_message, setfillfield_message] = useState("");
|
const [fillfield_message, setfillfield_message] = useState("");
|
||||||
function fillfield(cust_email) {
|
function fillfield() {
|
||||||
|
|
||||||
var val = cust_email;
|
|
||||||
|
|
||||||
var form = new FormData();
|
var form = new FormData();
|
||||||
|
|
||||||
|
@ -447,7 +489,7 @@ const AddParnerClient = (props) => {
|
||||||
|
|
||||||
|
|
||||||
if (mylocalclient) {
|
if (mylocalclient) {
|
||||||
|
|
||||||
|
|
||||||
if (mylocalclient.nom) {
|
if (mylocalclient.nom) {
|
||||||
setclient_nom(mylocalclient.nom);
|
setclient_nom(mylocalclient.nom);
|
||||||
|
@ -462,7 +504,6 @@ const AddParnerClient = (props) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (mylocalclient.raison_sociale) {
|
if (mylocalclient.raison_sociale) {
|
||||||
setclient_raison_sociale(mylocalclient.raison_sociale);
|
setclient_raison_sociale(mylocalclient.raison_sociale);
|
||||||
} else {
|
} else {
|
||||||
|
@ -490,6 +531,16 @@ const AddParnerClient = (props) => {
|
||||||
else
|
else
|
||||||
setclient_siret("");
|
setclient_siret("");
|
||||||
|
|
||||||
|
|
||||||
|
if (mylocalclient.client_type_id) {
|
||||||
|
|
||||||
|
setp_client_type_id(mylocalclient.client_type_id);
|
||||||
|
setp_client_type_label(mylocalclient.client_type_code);
|
||||||
|
}else{
|
||||||
|
setp_client_type_id("");
|
||||||
|
setp_client_type_label("");
|
||||||
|
}
|
||||||
|
|
||||||
if (mylocalclient.tva)
|
if (mylocalclient.tva)
|
||||||
setclient_tva(mylocalclient.tva);
|
setclient_tva(mylocalclient.tva);
|
||||||
else
|
else
|
||||||
|
@ -836,6 +887,12 @@ const AddParnerClient = (props) => {
|
||||||
document.getElementsByName("client_siret")[0].value = "";
|
document.getElementsByName("client_siret")[0].value = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (document.getElementsByName("client_type_id")) {
|
||||||
|
document.getElementsByName("client_type_id")[0].value = "";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (document.getElementsByName("client_tva")) {
|
if (document.getElementsByName("client_tva")) {
|
||||||
document.getElementsByName("client_tva")[0].value = "";
|
document.getElementsByName("client_tva")[0].value = "";
|
||||||
}
|
}
|
||||||
|
@ -895,6 +952,11 @@ const AddParnerClient = (props) => {
|
||||||
document.getElementsByName("client_siret")[0].style.backgroundColor = "#ECEFF1";
|
document.getElementsByName("client_siret")[0].style.backgroundColor = "#ECEFF1";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (document.getElementsByName("client_type_id")) {
|
||||||
|
document.getElementsByName("client_type_id")[0].disabled = true;
|
||||||
|
document.getElementsByName("client_type_id")[0].style.backgroundColor = "#ECEFF1";
|
||||||
|
}
|
||||||
|
|
||||||
if (document.getElementsByName("client_tva")) {
|
if (document.getElementsByName("client_tva")) {
|
||||||
document.getElementsByName("client_tva")[0].disabled = true;
|
document.getElementsByName("client_tva")[0].disabled = true;
|
||||||
document.getElementsByName("client_tva")[0].style.backgroundColor = "#ECEFF1";
|
document.getElementsByName("client_tva")[0].style.backgroundColor = "#ECEFF1";
|
||||||
|
@ -959,6 +1021,11 @@ const AddParnerClient = (props) => {
|
||||||
document.getElementsByName("client_siret")[0].style.backgroundColor = "#FFFFFF";
|
document.getElementsByName("client_siret")[0].style.backgroundColor = "#FFFFFF";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (document.getElementsByName("client_type_id")) {
|
||||||
|
document.getElementsByName("client_type_id")[0].disabled = false;
|
||||||
|
document.getElementsByName("client_type_id")[0].style.backgroundColor = "#FFFFFF";
|
||||||
|
}
|
||||||
|
|
||||||
if (document.getElementsByName("client_tva")) {
|
if (document.getElementsByName("client_tva")) {
|
||||||
document.getElementsByName("client_tva")[0].disabled = false;
|
document.getElementsByName("client_tva")[0].disabled = false;
|
||||||
document.getElementsByName("client_tva")[0].style.backgroundColor = "#FFFFFF";
|
document.getElementsByName("client_tva")[0].style.backgroundColor = "#FFFFFF";
|
||||||
|
@ -1211,6 +1278,10 @@ const AddParnerClient = (props) => {
|
||||||
}
|
}
|
||||||
form.append("website", client_website);
|
form.append("website", client_website);
|
||||||
|
|
||||||
|
if (p_client_type_id)
|
||||||
|
form.append("client_type_id", p_client_type_id);
|
||||||
|
else
|
||||||
|
form.append("client_type_id", "");
|
||||||
|
|
||||||
var myurl = process.env.REACT_APP_API_URL + "myclass/api/Add_Partner_Client/";
|
var myurl = process.env.REACT_APP_API_URL + "myclass/api/Add_Partner_Client/";
|
||||||
|
|
||||||
|
@ -1326,6 +1397,13 @@ const AddParnerClient = (props) => {
|
||||||
}
|
}
|
||||||
form.append("siret", client_siret);
|
form.append("siret", client_siret);
|
||||||
|
|
||||||
|
var client_type_client_id = ""
|
||||||
|
if (document.getElementsByName("client_type_id")) {
|
||||||
|
client_type_client_id = document.getElementsByName("client_type_id")[0].value;
|
||||||
|
}
|
||||||
|
form.append("client_type_id", client_type_client_id);
|
||||||
|
|
||||||
|
|
||||||
var client_tva = ""
|
var client_tva = ""
|
||||||
if (document.getElementsByName("client_tva")) {
|
if (document.getElementsByName("client_tva")) {
|
||||||
client_tva = document.getElementsByName("client_tva")[0].value;
|
client_tva = document.getElementsByName("client_tva")[0].value;
|
||||||
|
@ -1338,6 +1416,10 @@ const AddParnerClient = (props) => {
|
||||||
}
|
}
|
||||||
form.append("website", client_website);
|
form.append("website", client_website);
|
||||||
|
|
||||||
|
if (p_client_type_id)
|
||||||
|
form.append("client_type_id", p_client_type_id);
|
||||||
|
else
|
||||||
|
form.append("client_type_id", "");
|
||||||
|
|
||||||
var myurl = process.env.REACT_APP_API_URL + "myclass/api/Update_Partner_Client/";
|
var myurl = process.env.REACT_APP_API_URL + "myclass/api/Update_Partner_Client/";
|
||||||
|
|
||||||
|
@ -1349,6 +1431,7 @@ const AddParnerClient = (props) => {
|
||||||
setrecordPartnerClient_result(res.data.message);
|
setrecordPartnerClient_result(res.data.message);
|
||||||
setformedit_mode("0");
|
setformedit_mode("0");
|
||||||
setdatamodification("0");
|
setdatamodification("0");
|
||||||
|
fillfield();
|
||||||
Disable_fields();
|
Disable_fields();
|
||||||
alert(res.data.message);
|
alert(res.data.message);
|
||||||
|
|
||||||
|
@ -2288,6 +2371,53 @@ const AddParnerClient = (props) => {
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{String(formedit_mode) !== "1" && <div className="session_caract"> Type client<br />
|
||||||
|
<TextField
|
||||||
|
required
|
||||||
|
name="client_type_id"
|
||||||
|
id="client_type_id"
|
||||||
|
|
||||||
|
InputLabelProps={{
|
||||||
|
shrink: true,
|
||||||
|
}}
|
||||||
|
disabled={false}
|
||||||
|
className="disabled_style"
|
||||||
|
value={p_client_type_label}
|
||||||
|
/>
|
||||||
|
</div>}
|
||||||
|
|
||||||
|
|
||||||
|
{String(formedit_mode) === "1" && <div className="session_caract"> Type client<br />
|
||||||
|
<TextField
|
||||||
|
required
|
||||||
|
name="client_type_id"
|
||||||
|
id="client_type_id"
|
||||||
|
select
|
||||||
|
//label="Raison sociale"
|
||||||
|
InputLabelProps={{
|
||||||
|
shrink: true,
|
||||||
|
}}
|
||||||
|
disabled={false}
|
||||||
|
className="disabled_style"
|
||||||
|
value={p_client_type_id}
|
||||||
|
|
||||||
|
onChange={(e) => {
|
||||||
|
setp_client_type_id(e.target.value);
|
||||||
|
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
|
||||||
|
{Get_List_Client_Type_result &&
|
||||||
|
Get_List_Client_Type_result.map((myclass) => (
|
||||||
|
<MenuItem key={JSON.parse(myclass)._id} value={JSON.parse(myclass)._id} style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }}>
|
||||||
|
{JSON.parse(myclass).code}
|
||||||
|
|
||||||
|
</MenuItem>
|
||||||
|
))}
|
||||||
|
|
||||||
|
</TextField>
|
||||||
|
</div>}
|
||||||
|
|
||||||
|
|
||||||
<div className="session_caract"> N° Siret<br />
|
<div className="session_caract"> N° Siret<br />
|
||||||
<TextField
|
<TextField
|
||||||
|
@ -2488,7 +2618,7 @@ const AddParnerClient = (props) => {
|
||||||
<TextField
|
<TextField
|
||||||
required
|
required
|
||||||
name="client_invoice_tva"
|
name="client_invoice_tva"
|
||||||
// label="N° TVA Facturation"
|
// label="N° TVA Facturation"
|
||||||
InputLabelProps={{
|
InputLabelProps={{
|
||||||
shrink: true,
|
shrink: true,
|
||||||
}}
|
}}
|
||||||
|
@ -2827,7 +2957,7 @@ const AddParnerClient = (props) => {
|
||||||
value={p_contact_telephone}
|
value={p_contact_telephone}
|
||||||
onChange={(e) => setcontact_telephone(e.target.value)}
|
onChange={(e) => setcontact_telephone(e.target.value)}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="session_caract">
|
<div className="session_caract">
|
||||||
Téléphone Mobile <br />
|
Téléphone Mobile <br />
|
||||||
|
|
|
@ -1246,7 +1246,7 @@ const Config_Champs_Personnalise = (props) => {
|
||||||
<div className="session_data">
|
<div className="session_data">
|
||||||
<div style={{ "border": "None" }}>
|
<div style={{ "border": "None" }}>
|
||||||
|
|
||||||
<div style={{ height: 550, width: '100%', paddingRight: '1px' }}>
|
<div style={{ height: 550, width: '100%', paddingRight: '5px' }}>
|
||||||
|
|
||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
|
|
|
@ -2062,7 +2062,7 @@ const Config_Documents = (props) => {
|
||||||
<div className="session_data">
|
<div className="session_data">
|
||||||
<div style={{ "border": "None" }}>
|
<div style={{ "border": "None" }}>
|
||||||
|
|
||||||
<div style={{ height: 550, width: '100%', paddingRight: '1px' }}>
|
<div style={{ height: 550, width: '100%', paddingRight: '5px' }}>
|
||||||
|
|
||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
|
|
|
@ -8847,7 +8847,7 @@ Update du 22/10/2023 - Gestion des champs spécifiques ajoutés par le partenair
|
||||||
<div className="session_data">
|
<div className="session_data">
|
||||||
<div style={{ "border": "None" }}>
|
<div style={{ "border": "None" }}>
|
||||||
|
|
||||||
<div style={{ height: 550, width: '100%', paddingRight: '1px' }}>
|
<div style={{ height: 550, width: '100%', paddingRight: '5px' }}>
|
||||||
|
|
||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
|
|
|
@ -85,10 +85,10 @@ const DisplayPartnerStagiaires = (props) => {
|
||||||
{ field: 'id', headerName: 'id', hide: true },
|
{ field: 'id', headerName: 'id', hide: true },
|
||||||
{ field: 'class_internal_url', headerName: 'class_internal_url', hide: true, editable: false },
|
{ field: 'class_internal_url', headerName: 'class_internal_url', hide: true, editable: false },
|
||||||
|
|
||||||
|
|
||||||
{ field: 'nom', headerName: 'Nom', minWidth: 150, flex:1, hide: false, editable: false, editable: false },
|
{ field: 'nom', headerName: 'Nom', minWidth: 150, flex: 1, hide: false, editable: false, editable: false },
|
||||||
{ field: 'prenom', headerName: 'Prénom', minWidth: 150, flex:1, hide: false, editable: false },
|
{ field: 'prenom', headerName: 'Prénom', minWidth: 150, flex: 1, hide: false, editable: false },
|
||||||
{ field: 'email', headerName: 'Email', minWidth: 200, flex:1,hideable: false, editable: false },
|
{ field: 'email', headerName: 'Email', minWidth: 200, flex: 1, hideable: false, editable: false },
|
||||||
{ field: 'employeur', headerName: 'Employeur', minWidth: 150, hide: true, editable: false },
|
{ field: 'employeur', headerName: 'Employeur', minWidth: 150, hide: true, editable: false },
|
||||||
{
|
{
|
||||||
field: 'status', headerName: 'Statut', hide: false, width: datagrid_columns_size_model2,
|
field: 'status', headerName: 'Statut', hide: false, width: datagrid_columns_size_model2,
|
||||||
|
@ -105,8 +105,8 @@ const DisplayPartnerStagiaires = (props) => {
|
||||||
return "???";
|
return "???";
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{ field: 'code_session', headerName: 'Code session', hideable: true, editable: false, minWidth: 150, flex:1},
|
{ field: 'code_session', headerName: 'Code session', hideable: true, editable: false, minWidth: 150, flex: 1 },
|
||||||
{ field: 'title', headerName: 'Formation', minWidth: datagrid_columns_size_model1, align: "center", hideable: true, editable: false, hide:true },
|
{ field: 'title', headerName: 'Formation', minWidth: datagrid_columns_size_model1, align: "center", hideable: true, editable: false, hide: true },
|
||||||
{
|
{
|
||||||
field: 'distantiel', headerName: 'Distantiel', hideable: false, width: datagrid_columns_size_model2,
|
field: 'distantiel', headerName: 'Distantiel', hideable: false, width: datagrid_columns_size_model2,
|
||||||
valueFormatter: (params) => {
|
valueFormatter: (params) => {
|
||||||
|
@ -131,8 +131,8 @@ const DisplayPartnerStagiaires = (props) => {
|
||||||
|
|
||||||
},
|
},
|
||||||
{ field: 'domaine', headerName: 'Domaine', minWidth: datagrid_columns_size_model2, align: "center", hide: true, hideable: true, editable: false },
|
{ field: 'domaine', headerName: 'Domaine', minWidth: datagrid_columns_size_model2, align: "center", hide: true, hideable: true, editable: false },
|
||||||
{ field: 'date_debut', headerName: 'Du', minWidth: 90, maxWidth:100, flex:1, hideable: true, editable: false },
|
{ field: 'date_debut', headerName: 'Du', minWidth: 90, maxWidth: 100, flex: 1, hideable: true, editable: false },
|
||||||
{ field: 'date_fin', headerName: 'Au', minWidth: 90, maxWidth:100, flex:1, hideable: true, editable: false },
|
{ field: 'date_fin', headerName: 'Au', minWidth: 90, maxWidth: 100, flex: 1, hideable: true, editable: false },
|
||||||
{ field: 'class_internal_url', headerName: 'class_internal_url', hide: true, editable: false },
|
{ field: 'class_internal_url', headerName: 'class_internal_url', hide: true, editable: false },
|
||||||
{
|
{
|
||||||
field: "Detail", headerName: 'Voir detail',
|
field: "Detail", headerName: 'Voir detail',
|
||||||
|
@ -154,7 +154,7 @@ const DisplayPartnerStagiaires = (props) => {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'Action', headerName: 'Action', hide: false, minWidth: 100, maxWidth:150, flex:1,
|
field: 'Action', headerName: 'Action', hide: false, minWidth: 100, maxWidth: 150, flex: 1,
|
||||||
renderCell: (cellValues) => {
|
renderCell: (cellValues) => {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -856,10 +856,11 @@ const DisplayPartnerStagiaires = (props) => {
|
||||||
|
|
||||||
const [addOneSession, setaddOneSession] = useState();
|
const [addOneSession, setaddOneSession] = useState();
|
||||||
function submenu_add_one_stagiaire() {
|
function submenu_add_one_stagiaire() {
|
||||||
|
setsubmenu("");
|
||||||
setSelectionModel([]);
|
setSelectionModel([]);
|
||||||
setselected_code_session();
|
setselected_code_session();
|
||||||
setaddOneParticipant("1");
|
setaddOneParticipant("1");
|
||||||
submenu_detail_stagaire();
|
|
||||||
|
|
||||||
if (document.getElementById('detail_session')) {
|
if (document.getElementById('detail_session')) {
|
||||||
// myRef.current.scrollIntoView({ behavior: "smooth" });
|
// myRef.current.scrollIntoView({ behavior: "smooth" });
|
||||||
|
@ -1031,6 +1032,9 @@ const DisplayPartnerStagiaires = (props) => {
|
||||||
setp_detail_client_rattachement_nom();
|
setp_detail_client_rattachement_nom();
|
||||||
setp_detail_client_rattachement_id();
|
setp_detail_client_rattachement_id();
|
||||||
|
|
||||||
|
setp_detail_type_apprenant();
|
||||||
|
setp_detail_type_apprenant_label();
|
||||||
|
|
||||||
setfield_evaluation();
|
setfield_evaluation();
|
||||||
setdetailuser_date_certification();
|
setdetailuser_date_certification();
|
||||||
setdetailuser_date_evaluation();
|
setdetailuser_date_evaluation();
|
||||||
|
@ -1069,6 +1073,9 @@ const DisplayPartnerStagiaires = (props) => {
|
||||||
if (document.getElementsByName("one_pays_part") && document.getElementsByName("one_pays_part")[0])
|
if (document.getElementsByName("one_pays_part") && document.getElementsByName("one_pays_part")[0])
|
||||||
document.getElementsByName("one_pays_part")[0].value = "";
|
document.getElementsByName("one_pays_part")[0].value = "";
|
||||||
|
|
||||||
|
if (document.getElementsByName("one_detail_type_apprenant") && document.getElementsByName("one_pays_part")[0])
|
||||||
|
document.getElementsByName("one_detail_type_apprenant")[0].value = "";
|
||||||
|
|
||||||
if (document.getElementsByName("one_status_part") && document.getElementsByName("one_status_part")[0])
|
if (document.getElementsByName("one_status_part") && document.getElementsByName("one_status_part")[0])
|
||||||
document.getElementsByName("one_status_part")[0].value = "";
|
document.getElementsByName("one_status_part")[0].value = "";
|
||||||
|
|
||||||
|
@ -1089,6 +1096,8 @@ const DisplayPartnerStagiaires = (props) => {
|
||||||
setp_one_status_part("");
|
setp_one_status_part("");
|
||||||
setp_one_detail_client_rattachement_nom("");
|
setp_one_detail_client_rattachement_nom("");
|
||||||
setp_one_detail_client_rattachement_id("");
|
setp_one_detail_client_rattachement_id("");
|
||||||
|
|
||||||
|
setp_one_detail_type_apprenant("");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1385,6 +1394,12 @@ const DisplayPartnerStagiaires = (props) => {
|
||||||
document.getElementsByName("detail_opco")[0].style.backgroundColor = "#ECEFF1";
|
document.getElementsByName("detail_opco")[0].style.backgroundColor = "#ECEFF1";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (document.getElementsByName("detail_type_apprenant")[0]) {
|
||||||
|
document.getElementsByName("detail_type_apprenant")[0].disabled = true;
|
||||||
|
document.getElementsByName("detail_type_apprenant")[0].style.backgroundColor = "#ECEFF1";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (document.getElementsByName("detail_prenom")[0]) {
|
if (document.getElementsByName("detail_prenom")[0]) {
|
||||||
document.getElementsByName("detail_prenom")[0].disabled = true;
|
document.getElementsByName("detail_prenom")[0].disabled = true;
|
||||||
document.getElementsByName("detail_prenom")[0].style.backgroundColor = "#ECEFF1";
|
document.getElementsByName("detail_prenom")[0].style.backgroundColor = "#ECEFF1";
|
||||||
|
@ -1595,7 +1610,8 @@ const DisplayPartnerStagiaires = (props) => {
|
||||||
document.getElementsByName("note_eval")[0].disabled = false;
|
document.getElementsByName("note_eval")[0].disabled = false;
|
||||||
document.getElementsByName("note_eval")[0].style.backgroundColor = "#FFFFFF";
|
document.getElementsByName("note_eval")[0].style.backgroundColor = "#FFFFFF";
|
||||||
|
|
||||||
|
document.getElementsByName("detail_type_apprenant")[0].disabled = false;
|
||||||
|
document.getElementsByName("detail_type_apprenant")[0].style.backgroundColor = "#FFFFFF";
|
||||||
|
|
||||||
|
|
||||||
document.getElementsByName("date_evaluation")[0].disabled = false;
|
document.getElementsByName("date_evaluation")[0].disabled = false;
|
||||||
|
@ -1928,7 +1944,7 @@ const DisplayPartnerStagiaires = (props) => {
|
||||||
await sleep(5);
|
await sleep(5);
|
||||||
|
|
||||||
setdisplay_detail_stagiaire("1");
|
setdisplay_detail_stagiaire("1");
|
||||||
addOneParticipant();
|
setaddOneParticipant();
|
||||||
|
|
||||||
/*if (!edit_session_form) {
|
/*if (!edit_session_form) {
|
||||||
desableSessionFields();
|
desableSessionFields();
|
||||||
|
@ -2053,6 +2069,11 @@ const DisplayPartnerStagiaires = (props) => {
|
||||||
const [p_detail_cout, setp_detail_cout] = useState();
|
const [p_detail_cout, setp_detail_cout] = useState();
|
||||||
const [p_detail_mode_fin, setp_detail_mode_fin] = useState();
|
const [p_detail_mode_fin, setp_detail_mode_fin] = useState();
|
||||||
const [p_detail_employeur, setp_detail_employeur] = useState();
|
const [p_detail_employeur, setp_detail_employeur] = useState();
|
||||||
|
|
||||||
|
const [p_detail_type_apprenant, setp_detail_type_apprenant] = useState();
|
||||||
|
const [p_detail_type_apprenant_label, setp_detail_type_apprenant_label] = useState();
|
||||||
|
|
||||||
|
|
||||||
const [p_date_evaluation, setp_date_evaluation] = useState();
|
const [p_date_evaluation, setp_date_evaluation] = useState();
|
||||||
const [p_note_eval, setp_note_eval] = useState();
|
const [p_note_eval, setp_note_eval] = useState();
|
||||||
const [p_detail_session_class, setp_detail_session_class] = useState();
|
const [p_detail_session_class, setp_detail_session_class] = useState();
|
||||||
|
@ -2097,6 +2118,8 @@ const DisplayPartnerStagiaires = (props) => {
|
||||||
const [p_one_code_postal_part, setp_one_code_postal_part] = useState();
|
const [p_one_code_postal_part, setp_one_code_postal_part] = useState();
|
||||||
const [p_one_pays_part, setp_one_pays_part] = useState();
|
const [p_one_pays_part, setp_one_pays_part] = useState();
|
||||||
const [p_one_status_part, setp_one_status_part] = useState();
|
const [p_one_status_part, setp_one_status_part] = useState();
|
||||||
|
const [p_one_detail_type_apprenant, setp_one_detail_type_apprenant] = useState();
|
||||||
|
|
||||||
const [p_one_detail_client_rattachement_nom, setp_one_detail_client_rattachement_nom] = useState();
|
const [p_one_detail_client_rattachement_nom, setp_one_detail_client_rattachement_nom] = useState();
|
||||||
const [p_one_detail_client_rattachement_id, setp_one_detail_client_rattachement_id] = useState();
|
const [p_one_detail_client_rattachement_id, setp_one_detail_client_rattachement_id] = useState();
|
||||||
|
|
||||||
|
@ -2189,6 +2212,26 @@ const DisplayPartnerStagiaires = (props) => {
|
||||||
setp_detail_status_inscrit_label("?");
|
setp_detail_status_inscrit_label("?");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (mylocalattendee.type_apprenant) {
|
||||||
|
setp_detail_type_apprenant(mylocalattendee.type_apprenant);
|
||||||
|
// console.log(" ### mylocalattendee.type_apprenant = ", mylocalattendee.type_apprenant);
|
||||||
|
|
||||||
|
if (String(mylocalattendee.type_apprenant) === "0")
|
||||||
|
setp_detail_type_apprenant_label("Autre");
|
||||||
|
else if (String(mylocalattendee.type_apprenant) === "1")
|
||||||
|
setp_detail_type_apprenant_label("Salariés");
|
||||||
|
else if (String(mylocalattendee.type_apprenant) === "2")
|
||||||
|
setp_detail_type_apprenant_label("Apprentis");
|
||||||
|
else if (String(mylocalattendee.type_apprenant) === "3")
|
||||||
|
setp_detail_type_apprenant_label("Particuliers");
|
||||||
|
else if (String(mylocalattendee.type_apprenant) === "4")
|
||||||
|
setp_detail_type_apprenant_label("Rech. Emploi");
|
||||||
|
else
|
||||||
|
setp_detail_type_apprenant_label("?");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
document.getElementsByName("detail_opco")[0].value = "";
|
document.getElementsByName("detail_opco")[0].value = "";
|
||||||
if (mylocalattendee.opco)
|
if (mylocalattendee.opco)
|
||||||
setp_detail_opco(mylocalattendee.opco);
|
setp_detail_opco(mylocalattendee.opco);
|
||||||
|
@ -2612,6 +2655,11 @@ const DisplayPartnerStagiaires = (props) => {
|
||||||
else
|
else
|
||||||
form.append("pays", "");
|
form.append("pays", "");
|
||||||
|
|
||||||
|
if (p_one_detail_type_apprenant)
|
||||||
|
form.append("type_apprenant", p_one_detail_type_apprenant);
|
||||||
|
else
|
||||||
|
form.append("type_apprenant", "0");
|
||||||
|
|
||||||
|
|
||||||
if (p_one_status_part)
|
if (p_one_status_part)
|
||||||
form.append("status", p_one_status_part);
|
form.append("status", p_one_status_part);
|
||||||
|
@ -2671,6 +2719,7 @@ const DisplayPartnerStagiaires = (props) => {
|
||||||
setaddOneParticipant();
|
setaddOneParticipant();
|
||||||
Getall_TrainingParticipant();
|
Getall_TrainingParticipant();
|
||||||
clear_one_Attende_Fields();
|
clear_one_Attende_Fields();
|
||||||
|
setselected_id("");
|
||||||
alert(" Le participant a été correctement ajouté");
|
alert(" Le participant a été correctement ajouté");
|
||||||
|
|
||||||
//myRef_head.current.scrollIntoView({ behavior: "smooth" });
|
//myRef_head.current.scrollIntoView({ behavior: "smooth" });
|
||||||
|
@ -2780,6 +2829,12 @@ const DisplayPartnerStagiaires = (props) => {
|
||||||
else
|
else
|
||||||
form.append("opco", "");
|
form.append("opco", "");
|
||||||
|
|
||||||
|
if (p_detail_type_apprenant)
|
||||||
|
form.append("type_apprenant", p_detail_type_apprenant);
|
||||||
|
else
|
||||||
|
form.append("type_apprenant", "0");
|
||||||
|
|
||||||
|
|
||||||
form.append("_id", selected_id);
|
form.append("_id", selected_id);
|
||||||
if (p_detail_client_rattachement_nom)
|
if (p_detail_client_rattachement_nom)
|
||||||
form.append("client_rattachement_id", p_detail_client_rattachement_id);
|
form.append("client_rattachement_id", p_detail_client_rattachement_id);
|
||||||
|
@ -3351,6 +3406,7 @@ const DisplayPartnerStagiaires = (props) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (document.getElementsByName("adresse")[0]) {
|
if (document.getElementsByName("adresse")[0]) {
|
||||||
document.getElementsByName("adresse")[0].disabled = true;
|
document.getElementsByName("adresse")[0].disabled = true;
|
||||||
document.getElementsByName("adresse")[0].style.backgroundColor = "#ECEFF1";
|
document.getElementsByName("adresse")[0].style.backgroundColor = "#ECEFF1";
|
||||||
|
@ -5566,7 +5622,7 @@ const DisplayPartnerStagiaires = (props) => {
|
||||||
<div className="session_data">
|
<div className="session_data">
|
||||||
<div style={{ "border": "None" }}>
|
<div style={{ "border": "None" }}>
|
||||||
|
|
||||||
<div style={{ height: 550, width: '100%', paddingRight: '1px' }}>
|
<div style={{ height: 550, width: '100%', paddingRight: '5px' }}>
|
||||||
|
|
||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
|
@ -5611,7 +5667,7 @@ const DisplayPartnerStagiaires = (props) => {
|
||||||
color: "black",
|
color: "black",
|
||||||
fontSize: 14
|
fontSize: 14
|
||||||
},
|
},
|
||||||
|
|
||||||
'& .line--statut--selected': {
|
'& .line--statut--selected': {
|
||||||
backgroundColor: '#FBF2EF',
|
backgroundColor: '#FBF2EF',
|
||||||
color: 'black',
|
color: 'black',
|
||||||
|
@ -5718,14 +5774,14 @@ const DisplayPartnerStagiaires = (props) => {
|
||||||
return 'line--statut--inscrit';
|
return 'line--statut--inscrit';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Pour la gestion de la couleur de zone double cliquée
|
// Pour la gestion de la couleur de zone double cliquée
|
||||||
if (String(params.row.id) === String(gridline_id)) {
|
if (String(params.row.id) === String(gridline_id)) {
|
||||||
return 'line--statut--selected';
|
return 'line--statut--selected';
|
||||||
}
|
}
|
||||||
else if( parseInt(String(params.row.id)) % 2 === 0){
|
else if (parseInt(String(params.row.id)) % 2 === 0) {
|
||||||
return 'line--statut--pair';
|
return 'line--statut--pair';
|
||||||
}
|
}
|
||||||
else if( parseInt(String(params.row.id)) % 2 !== 0){
|
else if (parseInt(String(params.row.id)) % 2 !== 0) {
|
||||||
return 'line--statut--impair';
|
return 'line--statut--impair';
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
@ -5852,13 +5908,14 @@ const DisplayPartnerStagiaires = (props) => {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="div_row"> </div>
|
<div className="div_row"> </div>
|
||||||
<div className="div_row">
|
|
||||||
|
{( (selected_id && String(selected_id).length > 2) || (String(addOneParticipant) === "1" ) ) && <div className="div_row">
|
||||||
<Button variant="outlined" ref={myRef} onClick={submenu_detail_stagaire} className="detail_class_submenu" id='detail_session' name='detail_session'>Détail Stagiaire</Button>
|
<Button variant="outlined" ref={myRef} onClick={submenu_detail_stagaire} className="detail_class_submenu" id='detail_session' name='detail_session'>Détail Stagiaire</Button>
|
||||||
<Button variant="outlined" onClick={submenu_sessions} className="detail_class_submenu" id='preinscrit' name='preinscrit'>Détail Session </Button>
|
<Button variant="outlined" onClick={submenu_sessions} className="detail_class_submenu" id='preinscrit' name='preinscrit'>Détail Session </Button>
|
||||||
<Button variant="outlined" onClick={submenu_absence} className="detail_class_submenu" id='absence' name='absence'>Absence </Button>
|
<Button variant="outlined" onClick={submenu_absence} className="detail_class_submenu" id='absence' name='absence'>Absence </Button>
|
||||||
<Button variant="outlined" onClick={submenu_historique} className="detail_class_submenu" id='historique' name='historique'>Historique </Button>
|
<Button variant="outlined" onClick={submenu_historique} className="detail_class_submenu" id='historique' name='historique'>Historique </Button>
|
||||||
|
|
||||||
</div>
|
</div>}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -6159,6 +6216,34 @@ const DisplayPartnerStagiaires = (props) => {
|
||||||
</TextField>
|
</TextField>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div className="session_caract"> Type apprenant <br />
|
||||||
|
<TextField
|
||||||
|
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||||
|
required
|
||||||
|
name="one_detail_type_apprenant"
|
||||||
|
id="one_detail_type_apprenant"
|
||||||
|
select
|
||||||
|
InputLabelProps={{
|
||||||
|
shrink: true,
|
||||||
|
}}
|
||||||
|
disabled={false}
|
||||||
|
className="disabled_style"
|
||||||
|
value={p_one_detail_type_apprenant}
|
||||||
|
onChange={(e) => {
|
||||||
|
setp_one_detail_type_apprenant(e.target.value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
>
|
||||||
|
<MenuItem value="0" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }}>Autre </MenuItem>
|
||||||
|
<MenuItem value="1" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }}>Salariés </MenuItem>
|
||||||
|
<MenuItem value="2" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }}>Apprentis </MenuItem>
|
||||||
|
<MenuItem value="3" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }}>Particuliers </MenuItem>
|
||||||
|
<MenuItem value="4" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }}>Rech. Emploi </MenuItem>
|
||||||
|
|
||||||
|
</TextField>
|
||||||
|
</div>
|
||||||
|
|
||||||
{/* -- debut champs specifiques **/}
|
{/* -- debut champs specifiques **/}
|
||||||
<div className="div_row">
|
<div className="div_row">
|
||||||
<hr />
|
<hr />
|
||||||
|
@ -6354,7 +6439,7 @@ const DisplayPartnerStagiaires = (props) => {
|
||||||
</div>}
|
</div>}
|
||||||
|
|
||||||
|
|
||||||
{String(participant_data_edit_mode) === "1" && <div className="session_caract"> Session bb <br />
|
{String(participant_data_edit_mode) === "1" && <div className="session_caract"> Session <br />
|
||||||
<TextField
|
<TextField
|
||||||
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||||
required
|
required
|
||||||
|
@ -6438,6 +6523,55 @@ const DisplayPartnerStagiaires = (props) => {
|
||||||
|
|
||||||
</div>}
|
</div>}
|
||||||
|
|
||||||
|
|
||||||
|
{String(participant_data_edit_mode) === "1" && <div className="session_caract"> Type apprenant <br />
|
||||||
|
<TextField
|
||||||
|
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||||
|
required
|
||||||
|
name="detail_type_apprenant"
|
||||||
|
id="detail_type_apprenant"
|
||||||
|
select
|
||||||
|
InputLabelProps={{
|
||||||
|
shrink: true,
|
||||||
|
}}
|
||||||
|
disabled={false}
|
||||||
|
className="disabled_style"
|
||||||
|
value={p_detail_type_apprenant}
|
||||||
|
onChange={(e) => {
|
||||||
|
//setp_detail_client_rattachement_id(e.target.value);
|
||||||
|
setp_detail_type_apprenant(e.target.value);
|
||||||
|
setparticipant_data_changed("1");
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
>
|
||||||
|
<MenuItem value="0" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }}>Autre </MenuItem>
|
||||||
|
<MenuItem value="1" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }}>Salariés </MenuItem>
|
||||||
|
<MenuItem value="2" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }}>Apprentis </MenuItem>
|
||||||
|
<MenuItem value="3" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }}>Particuliers </MenuItem>
|
||||||
|
<MenuItem value="4" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }}>Rech. Emploi </MenuItem>
|
||||||
|
|
||||||
|
</TextField>
|
||||||
|
</div>}
|
||||||
|
|
||||||
|
{String(participant_data_edit_mode) !== "1" && <div className="session_caract"> Type apprenant <br />
|
||||||
|
<TextField
|
||||||
|
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||||
|
required
|
||||||
|
name="detail_type_apprenant"
|
||||||
|
id="detail_type_apprenant"
|
||||||
|
|
||||||
|
InputLabelProps={{
|
||||||
|
shrink: true,
|
||||||
|
}}
|
||||||
|
disabled={false}
|
||||||
|
className="disabled_style"
|
||||||
|
value={p_detail_type_apprenant_label}
|
||||||
|
/>
|
||||||
|
|
||||||
|
</div>}
|
||||||
|
|
||||||
{String(participant_data_edit_mode) !== "1" && <div className="session_caract"> Statut<br />
|
{String(participant_data_edit_mode) !== "1" && <div className="session_caract"> Statut<br />
|
||||||
<TextField
|
<TextField
|
||||||
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||||
|
|
|
@ -236,16 +236,16 @@ const DistplayPartnerTraningsPage = (props) => {
|
||||||
{ field: 'lms_class_code', headerName: 'lms_class_code', hide: true },
|
{ field: 'lms_class_code', headerName: 'lms_class_code', hide: true },
|
||||||
{ field: 'zone_diffusion', headerName: 'zone_diffusion', hide: true },
|
{ field: 'zone_diffusion', headerName: 'zone_diffusion', hide: true },
|
||||||
{ field: 'internal_url', headerName: 'internal_url', hide: true },
|
{ field: 'internal_url', headerName: 'internal_url', hide: true },
|
||||||
{ field: 'external_code', headerName: 'Code Formation', hideable: false, minWidth: 100, flex: 1, maxWidth: 250, editable: false },
|
{ field: 'external_code', headerName: 'Code Formation', hideable: false, minWidth: 150, flex: 1, maxWidth: 250, editable: false },
|
||||||
{ field: 'title', headerName: 'Titre', flex: 1, hideable: false, minWidth: 250, flex: 1, editable: false },
|
{ field: 'title', headerName: 'Titre', flex: 1, hideable: false, minWidth: 320, flex: 1, editable: false },
|
||||||
{ field: 'domain', headerName: 'Domaine', minWidth: datagrid_columns_size_model1, hideable: true, },
|
{ field: 'domain', headerName: 'Domaine', minWidth: 50, flex:1, maxWidth:150, hideable: true, },
|
||||||
{ field: 'metier', headerName: 'Métier', minWidth: datagrid_columns_size_model1, hideable: true, hide: true },
|
{ field: 'metier', headerName: 'Métier', minWidth: 50, flex:1, maxWidth:150, hideable: true, hide: true },
|
||||||
{ field: 'url', headerName: 'lien', minWidth: datagrid_columns_size_model1, hideable: true, hide: true },
|
{ field: 'url', headerName: 'lien', minWidth: 20, hideable: true, hide: true },
|
||||||
{ field: 'description', headerName: 'Description', hide: true, resizable: true, minWidth: 100, maxWidth: 150, flex: 1 },
|
{ field: 'description', headerName: 'Description', hide: true, resizable: true, minWidth: 100, maxWidth: 150, flex: 1 },
|
||||||
|
|
||||||
{ field: 'price', headerName: 'Prix', minWidth: datagrid_columns_size_model2, align: "center", resizable: true, hide: ismobilephone_columns_hide },
|
{ field: 'price', headerName: 'Prix', minWidth: 50, flex:1, maxWidth:100, align: "center", resizable: true, hide: ismobilephone_columns_hide },
|
||||||
{
|
{
|
||||||
field: 'published', headerName: 'Publié', minWidth: datagrid_columns_size_model2, align: "center", resizable: true,
|
field: 'published', headerName: 'Publié', minWidth: 50, flex:1, maxWidth:100, align: "center", resizable: true,
|
||||||
valueFormatter: (params) => {
|
valueFormatter: (params) => {
|
||||||
if (String(params.value) === "0")
|
if (String(params.value) === "0")
|
||||||
return "Non";
|
return "Non";
|
||||||
|
@ -256,7 +256,7 @@ const DistplayPartnerTraningsPage = (props) => {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: "management", headerName: 'Gestion', width: datagrid_columns_size_model2,
|
field: "management", headerName: 'Gestion', minWidth: 50, flex:1, maxWidth:100,
|
||||||
renderCell: (cellValues) => {
|
renderCell: (cellValues) => {
|
||||||
return (
|
return (
|
||||||
|
|
||||||
|
@ -274,7 +274,7 @@ const DistplayPartnerTraningsPage = (props) => {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: "visual", headerName: 'Visualiser', width: datagrid_columns_size_model2,
|
field: "visual", headerName: 'Visualiser', minWidth: 50, flex:1, maxWidth:100,
|
||||||
renderCell: (cellValues) => {
|
renderCell: (cellValues) => {
|
||||||
return (
|
return (
|
||||||
|
|
||||||
|
@ -292,7 +292,7 @@ const DistplayPartnerTraningsPage = (props) => {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: "Print", headerName: 'Editer', width: datagrid_columns_size_model2,
|
field: "Print", headerName: 'Editer', minWidth: 50, flex:1, maxWidth:100,
|
||||||
renderCell: (cellValues) => {
|
renderCell: (cellValues) => {
|
||||||
return (
|
return (
|
||||||
|
|
||||||
|
@ -311,7 +311,7 @@ const DistplayPartnerTraningsPage = (props) => {
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
field: "push_to_lms", headerName: 'E-learning Creation', width: 150,
|
field: "push_to_lms", headerName: 'E-learning Creation', minWidth: 100, flex:1, maxWidth:150,
|
||||||
renderCell: (cellValues) => {
|
renderCell: (cellValues) => {
|
||||||
return (
|
return (
|
||||||
<nav style={{ "textAlign": "center" }}>
|
<nav style={{ "textAlign": "center" }}>
|
||||||
|
@ -375,7 +375,7 @@ const DistplayPartnerTraningsPage = (props) => {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: "delete", headerName: 'Supprimer',
|
field: "delete", headerName: 'Supprimer', minWidth: 50, flex:1, maxWidth:100,
|
||||||
renderCell: (cellValues) => {
|
renderCell: (cellValues) => {
|
||||||
return (
|
return (
|
||||||
|
|
||||||
|
|
|
@ -4138,7 +4138,7 @@ const Employes = (props) => {
|
||||||
<div className="session_data">
|
<div className="session_data">
|
||||||
<div style={{ "border": "None" }}>
|
<div style={{ "border": "None" }}>
|
||||||
|
|
||||||
<div style={{ height: 550, width: '100%', paddingRight: '1px' }}>
|
<div style={{ height: 550, width: '100%', paddingRight: '5px' }}>
|
||||||
|
|
||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
|
|
|
@ -2312,7 +2312,7 @@ const Materiels = (props) => {
|
||||||
<div className="session_data">
|
<div className="session_data">
|
||||||
<div style={{ "border": "None" }}>
|
<div style={{ "border": "None" }}>
|
||||||
|
|
||||||
<div style={{ height: 550, width: '100%', paddingRight: '1px' }}>
|
<div style={{ height: 550, width: '100%', paddingRight: '5px' }}>
|
||||||
|
|
||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
|
|
|
@ -3857,7 +3857,7 @@ const Partner_Commande = (props) => {
|
||||||
<div className="session_data">
|
<div className="session_data">
|
||||||
<div style={{ "border": "None" }}>
|
<div style={{ "border": "None" }}>
|
||||||
|
|
||||||
<div style={{ height: 550, width: '100%', paddingRight: '1px' }}>
|
<div style={{ height: 550, width: '100%', paddingRight: '5px' }}>
|
||||||
|
|
||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
|
|
|
@ -601,7 +601,7 @@ const Partner_Configuration_Session_Steps = (props) => {
|
||||||
<div className="session_data">
|
<div className="session_data">
|
||||||
<div style={{ "border": "None" }}>
|
<div style={{ "border": "None" }}>
|
||||||
|
|
||||||
<div style={{ height: 550, width: '100%', paddingRight: '1px' }}>
|
<div style={{ height: 550, width: '100%', paddingRight: '5px' }}>
|
||||||
|
|
||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
|
|
|
@ -503,7 +503,7 @@ const Partner_Configuration_Technique = (props) => {
|
||||||
<div className="session_data">
|
<div className="session_data">
|
||||||
<div style={{ "border": "None" }}>
|
<div style={{ "border": "None" }}>
|
||||||
|
|
||||||
<div style={{ height: 550, width: '100%', paddingRight: '1px' }}>
|
<div style={{ height: 550, width: '100%', paddingRight: '5px' }}>
|
||||||
|
|
||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
|
@ -696,6 +696,9 @@ const Partner_Configuration_Technique = (props) => {
|
||||||
<MenuItem value="smtp_count_from_name" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >smtp_count_from_name</MenuItem>
|
<MenuItem value="smtp_count_from_name" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >smtp_count_from_name</MenuItem>
|
||||||
<MenuItem value="smtp_count_port" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >smtp_count_port</MenuItem>
|
<MenuItem value="smtp_count_port" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >smtp_count_port</MenuItem>
|
||||||
<MenuItem value="partner_smtp" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >partner_smtp</MenuItem>
|
<MenuItem value="partner_smtp" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >partner_smtp</MenuItem>
|
||||||
|
|
||||||
|
<MenuItem value="partner_jour_heure" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Nb Heure par jour</MenuItem>
|
||||||
|
|
||||||
</TextField>
|
</TextField>
|
||||||
|
|
||||||
</div>}
|
</div>}
|
||||||
|
|
|
@ -1730,7 +1730,7 @@ const Partner_Facture = (props) => {
|
||||||
<div className="session_data">
|
<div className="session_data">
|
||||||
<div style={{ "border": "None" }}>
|
<div style={{ "border": "None" }}>
|
||||||
|
|
||||||
<div style={{ height: 550, width: '100%', paddingRight: '1px' }}>
|
<div style={{ height: 550, width: '100%', paddingRight: '5px' }}>
|
||||||
|
|
||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
|
|
|
@ -1997,25 +1997,7 @@
|
||||||
list-style-type: none !important;
|
list-style-type: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
.rs-btn {
|
|
||||||
background: transparent !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.rs-dropdown-open {
|
|
||||||
background: green !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.rs-bnt-default {
|
|
||||||
background: yellow !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.rs-dropdown-menu{
|
|
||||||
//background: transparent !important;
|
|
||||||
background-color: #104277 !important;
|
|
||||||
color: white !important;
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// end media
|
// end media
|
||||||
|
@ -2023,6 +2005,36 @@
|
||||||
width: 10%;
|
width: 10%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.rs-dropdown-menu {
|
||||||
|
background: transparent !important;
|
||||||
|
background-color: #104277 !important;
|
||||||
|
color: white !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rs-dropdown-item {
|
||||||
|
color: white !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rs-dropdown-item-focus {
|
||||||
|
color: white !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rs-dropdown-toggle.rs-btn {
|
||||||
|
background: transparent !important;
|
||||||
|
color: white !important;
|
||||||
|
margin-bottom: 1rem !important;
|
||||||
|
list-style-type: none !important;
|
||||||
|
border: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rs-dropdown-menu {
|
||||||
|
width: 100% !important;
|
||||||
|
box-shadow: none !important;
|
||||||
|
border: none !important;
|
||||||
|
margin-bottom: 1rem !important;
|
||||||
|
list-style-type: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.css-1wgeduv-MuiFormControl-root-MuiTextField-root {
|
.css-1wgeduv-MuiFormControl-root-MuiTextField-root {
|
||||||
padding-top: 5px;
|
padding-top: 5px;
|
||||||
|
|
Loading…
Reference in New Issue