10/03/24 - 21h
parent
9c3a753204
commit
711d132a24
|
@ -3078,6 +3078,7 @@ const DisplayPartnerSession = (props) => {
|
||||||
{ "id": "Mme", "label": "Mme", "value": "Mme" },
|
{ "id": "Mme", "label": "Mme", "value": "Mme" },
|
||||||
{ "id": "M", "label": "M", "value": "M" },
|
{ "id": "M", "label": "M", "value": "M" },
|
||||||
{ "id": "Neutre", "label": "Neutre", "value": "Neutre" },
|
{ "id": "Neutre", "label": "Neutre", "value": "Neutre" },
|
||||||
|
{ "id": "", "label": "", "value": "" },
|
||||||
]
|
]
|
||||||
|
|
||||||
const New_type_apprenant = [
|
const New_type_apprenant = [
|
||||||
|
|
|
@ -125,6 +125,13 @@ const Employes = (props) => {
|
||||||
{ field: 'date_naissance', headerName: 'date_naissance', hide: true, Width: 0 },
|
{ field: 'date_naissance', headerName: 'date_naissance', hide: true, Width: 0 },
|
||||||
{
|
{
|
||||||
field: 'civilite', headerName: 'Civilité', minWidth: 100, flex: 1, maxWidth: 100, hide: false,
|
field: 'civilite', headerName: 'Civilité', minWidth: 100, flex: 1, maxWidth: 100, hide: false,
|
||||||
|
valueFormatter: (params) => {
|
||||||
|
if (params.value)
|
||||||
|
return String(params.value)[0].toUpperCase() + String(params.value).slice(1);
|
||||||
|
else
|
||||||
|
return ""
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -4713,6 +4720,12 @@ const Employes = (props) => {
|
||||||
{ "id": "1", "label": "", "value": "1" }, // Cette ligne pour couvrir l'ajout d'une ligne de filter. C'est fait expres.
|
{ "id": "1", "label": "", "value": "1" }, // Cette ligne pour couvrir l'ajout d'une ligne de filter. C'est fait expres.
|
||||||
]
|
]
|
||||||
|
|
||||||
|
const New_civilite = [
|
||||||
|
{ "id": "mme", "label": "Mme", "value": "mme" },
|
||||||
|
{ "id": "m", "label": "M", "value": "m" },
|
||||||
|
{ "id": "neutre", "label": "Neutre", "value": "neutre" },
|
||||||
|
{ "id": "", "label": "", "value": "" },
|
||||||
|
]
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="employes">
|
<div className="employes">
|
||||||
|
@ -4748,7 +4761,8 @@ const Employes = (props) => {
|
||||||
</div>
|
</div>
|
||||||
{String(gridline_id) !== "" && Getall_Training_Employee_No_Filter_result && selected_id &&
|
{String(gridline_id) !== "" && Getall_Training_Employee_No_Filter_result && selected_id &&
|
||||||
String(selected_id).length > 0 && <div className="div_row_droite_dialog_session" style={{ "textAlign": 'right' }}>
|
String(selected_id).length > 0 && <div className="div_row_droite_dialog_session" style={{ "textAlign": 'right' }}>
|
||||||
{JSON.parse(Getall_Training_Employee_No_Filter_result[gridline_id]).civilite}
|
{String(JSON.parse(Getall_Training_Employee_No_Filter_result[gridline_id]).civilite).length <= 0 && JSON.parse(Getall_Training_Employee_No_Filter_result[gridline_id]).civilite}
|
||||||
|
{String(JSON.parse(Getall_Training_Employee_No_Filter_result[gridline_id]).civilite).length > 0 && String(JSON.parse(Getall_Training_Employee_No_Filter_result[gridline_id]).civilite)[0].toUpperCase() + String(JSON.parse(Getall_Training_Employee_No_Filter_result[gridline_id]).civilite).slice(1)}
|
||||||
</div>}
|
</div>}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -6061,7 +6075,33 @@ const Employes = (props) => {
|
||||||
/>
|
/>
|
||||||
</div>}
|
</div>}
|
||||||
{String(employee_data_edit_mode) === "1" && <div className="session_caract"> <b>Civilité </b><br />
|
{String(employee_data_edit_mode) === "1" && <div className="session_caract"> <b>Civilité </b><br />
|
||||||
<TextField
|
|
||||||
|
<Autocomplete
|
||||||
|
disablePortal
|
||||||
|
name="detail_civilite"
|
||||||
|
id="detail_civilite"
|
||||||
|
className="disabled_style"
|
||||||
|
|
||||||
|
options={New_civilite}
|
||||||
|
value={New_civilite.filter((data) => (data).value === String(p_detail_civilite))[0].label}
|
||||||
|
|
||||||
|
onChange={(event, value) => {
|
||||||
|
if (value && value.value) {
|
||||||
|
setp_detail_civilite(value.value);
|
||||||
|
setEmployee_data_changed("1");
|
||||||
|
} else {
|
||||||
|
setp_detail_civilite("");
|
||||||
|
setEmployee_data_changed("1");
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
renderInput={(params) => <TextField {...params} label="" placeholder="Choisir une option"
|
||||||
|
inputProps={{ ...params.inputProps, style: { fontSize: 12, height: "1.4rem" } }}
|
||||||
|
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
|
||||||
|
{/*<TextField
|
||||||
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||||
required
|
required
|
||||||
name="detail_civilite"
|
name="detail_civilite"
|
||||||
|
@ -6082,7 +6122,7 @@ const Employes = (props) => {
|
||||||
<MenuItem value="mme" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Mme. </MenuItem>
|
<MenuItem value="mme" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Mme. </MenuItem>
|
||||||
<MenuItem value="neutre" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Neutre </MenuItem>
|
<MenuItem value="neutre" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >Neutre </MenuItem>
|
||||||
|
|
||||||
</TextField>
|
</TextField>*/}
|
||||||
</div>}
|
</div>}
|
||||||
|
|
||||||
<div className="session_caract"> <b> Nom </b> <br />
|
<div className="session_caract"> <b> Nom </b> <br />
|
||||||
|
|
Loading…
Reference in New Issue