15/12/2023 - 18h
parent
218367e94c
commit
844da10528
|
@ -40,20 +40,34 @@ const Config_Documents = (props) => {
|
||||||
const [selectionModel, setSelectionModel] = React.useState([]);
|
const [selectionModel, setSelectionModel] = React.useState([]);
|
||||||
const editorRef_programme = useRef(null);
|
const editorRef_programme = useRef(null);
|
||||||
const [editorRef_programme_limite, seteditorRef_programme] = useState(1000);
|
const [editorRef_programme_limite, seteditorRef_programme] = useState(1000);
|
||||||
const [field_programme, setfield_programme] = useState("");
|
|
||||||
|
|
||||||
const [editor_tochange, seteditor_tochange] = useState("");
|
const [editor_tochange, seteditor_tochange] = useState("");
|
||||||
|
|
||||||
|
|
||||||
const one_editorRef_programme = useRef(null);
|
const one_editorRef_programme = useRef(null);
|
||||||
const [one_editorRef_programme_limite, setone_editorRef_programme_limite] = useState(1000);
|
const [one_editorRef_programme_limite, setone_editorRef_programme_limite] = useState(1000);
|
||||||
|
|
||||||
|
|
||||||
|
const [field_programme, setfield_programme] = useState("");
|
||||||
|
const [field_programme_initial_value, setfield_programme_initial_value] = useState("");
|
||||||
|
|
||||||
const [one_field_programme, setone_field_programme] = useState("");
|
const [one_field_programme, setone_field_programme] = useState("");
|
||||||
|
const [one_field_programme_initial_value, setone_field_programme_initial_value] = useState("");
|
||||||
|
|
||||||
|
|
||||||
const [one_editor_tochange, setone_editor_tochange] = useState("");
|
const [one_editor_tochange, setone_editor_tochange] = useState("");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const one_editorRef_corp_mail = useRef(null);
|
const one_editorRef_corp_mail = useRef(null);
|
||||||
const [one_editorRef_corp_mail_limite, setone_editorRef_corp_mail_limite] = useState(1000);
|
const [one_editorRef_corp_mail_limite, setone_editorRef_corp_mail_limite] = useState(1000);
|
||||||
const [one_field_corp_mail, setone_field_corp_mail] = useState("");
|
|
||||||
|
|
||||||
|
const [field_corp_mail, set_field_corp_mail] = useState("");
|
||||||
|
const [field_corp_mail_initial_value, set_field_corp_mail_initial_value] = useState("");
|
||||||
|
|
||||||
|
const [one_field_corp_mail, setone_field_corp_mail] = useState("");
|
||||||
|
const [one_field_corp_mail_initial_value, setone_field_corp_mail_initial_value] = useState("");
|
||||||
|
|
||||||
var date_today_90j = new Date();
|
var date_today_90j = new Date();
|
||||||
date_today_90j.setDate(date_today_90j.getDate() + 90);
|
date_today_90j.setDate(date_today_90j.getDate() + 90);
|
||||||
|
@ -355,6 +369,7 @@ const Config_Documents = (props) => {
|
||||||
const [p_detail_joint_pdf, setp_detail_joint_pdf] = useState(false);
|
const [p_detail_joint_pdf, setp_detail_joint_pdf] = useState(false);
|
||||||
|
|
||||||
const [p_detail_default_version, setp_detail_default_version] = useState(false);
|
const [p_detail_default_version, setp_detail_default_version] = useState(false);
|
||||||
|
const [p_detail_edition_par_client, setp_detail_edition_par_client] = useState(false);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -390,7 +405,7 @@ const Config_Documents = (props) => {
|
||||||
setone_field_corp_mail();
|
setone_field_corp_mail();
|
||||||
setp_detail_joint_pdf(false);
|
setp_detail_joint_pdf(false);
|
||||||
setp_detail_default_version(false);
|
setp_detail_default_version(false);
|
||||||
|
setpartner_document_data_changed(false);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -454,15 +469,23 @@ const Config_Documents = (props) => {
|
||||||
setp_detail_joint_pdf(true);
|
setp_detail_joint_pdf(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
p_detail_default_version(false);
|
setp_detail_default_version(false);
|
||||||
if (mylocal_document.default_version) {
|
if (mylocal_document.default_version) {
|
||||||
if (String(mylocal_document.default_version) === "1")
|
if (String(mylocal_document.default_version) === "1")
|
||||||
p_detail_default_version(true);
|
setp_detail_default_version(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
setone_field_corp_mail("");
|
|
||||||
|
setp_detail_edition_par_client(false);
|
||||||
|
if (mylocal_document.edit_by_client) {
|
||||||
|
if (String(mylocal_document.edit_by_client) === "1")
|
||||||
|
setp_detail_edition_par_client(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
set_field_corp_mail("");
|
||||||
if (mylocal_document.corps_mail) {
|
if (mylocal_document.corps_mail) {
|
||||||
setone_field_corp_mail(mylocal_document.corps_mail);
|
set_field_corp_mail(mylocal_document.corps_mail);
|
||||||
|
set_field_corp_mail_initial_value(mylocal_document.corps_mail);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -472,8 +495,8 @@ const Config_Documents = (props) => {
|
||||||
|
|
||||||
setfield_programme("");
|
setfield_programme("");
|
||||||
if (mylocal_document.contenu_doc) {
|
if (mylocal_document.contenu_doc) {
|
||||||
setp_detail_contenu_doc(mylocal_document.contenu_doc);
|
|
||||||
setfield_programme(mylocal_document.contenu_doc);
|
setfield_programme(mylocal_document.contenu_doc);
|
||||||
|
setfield_programme_initial_value(mylocal_document.contenu_doc);
|
||||||
}
|
}
|
||||||
|
|
||||||
disable_Partner_DocumentFields();
|
disable_Partner_DocumentFields();
|
||||||
|
@ -486,6 +509,9 @@ const Config_Documents = (props) => {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (document.getElementsByName('detail_document_principal') && document.getElementsByName('detail_document_principal')[0])
|
||||||
|
document.getElementsByName('detail_document_principal')[0].focus();
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
alert(" Aucun document recuperé");
|
alert(" Aucun document recuperé");
|
||||||
}
|
}
|
||||||
|
@ -568,12 +594,25 @@ const Config_Documents = (props) => {
|
||||||
setp_detail_sujet(mylocal_document.sujet);
|
setp_detail_sujet(mylocal_document.sujet);
|
||||||
}
|
}
|
||||||
|
|
||||||
setfield_programme("");
|
setone_field_programme("");
|
||||||
if (mylocal_document.contenu_doc) {
|
if (mylocal_document.contenu_doc) {
|
||||||
setp_detail_contenu_doc(String(mylocal_document.contenu_doc));
|
setone_field_programme(String(mylocal_document.contenu_doc));
|
||||||
setfield_programme(String(mylocal_document.contenu_doc));
|
setone_field_programme_initial_value(String(mylocal_document.contenu_doc));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setone_field_corp_mail("");
|
||||||
|
if (mylocal_document.corps_mail) {
|
||||||
|
setone_field_programme(String(mylocal_document.corps_mail));
|
||||||
|
setone_field_programme_initial_value(String(mylocal_document.corps_mail));
|
||||||
|
}
|
||||||
|
|
||||||
|
setp_detail_joint_pdf(false);
|
||||||
|
if (mylocal_document.joint_pdf) {
|
||||||
|
if (String(mylocal_document.joint_pdf) === "1")
|
||||||
|
setp_detail_joint_pdf(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
disable_Partner_DocumentFields();
|
disable_Partner_DocumentFields();
|
||||||
if (document.getElementById('myRef')) {
|
if (document.getElementById('myRef')) {
|
||||||
//myRef.current.scrollIntoView({ behavior: "smooth" });
|
//myRef.current.scrollIntoView({ behavior: "smooth" });
|
||||||
|
@ -674,10 +713,17 @@ const Config_Documents = (props) => {
|
||||||
else {
|
else {
|
||||||
setp_one_detail_duplicate("0");
|
setp_one_detail_duplicate("0");
|
||||||
}
|
}
|
||||||
|
|
||||||
setfield_programme("");
|
setfield_programme("");
|
||||||
if (mylocal_document.contenu_doc) {
|
if (mylocal_document.contenu_doc) {
|
||||||
setp_one_detail_contenu_doc(String(mylocal_document.contenu_doc));
|
|
||||||
setone_field_programme(String(mylocal_document.contenu_doc));
|
setone_field_programme(String(mylocal_document.contenu_doc));
|
||||||
|
setone_field_programme_initial_value(String(mylocal_document.contenu_doc));
|
||||||
|
}
|
||||||
|
|
||||||
|
set_field_corp_mail("");
|
||||||
|
if (mylocal_document.corps_mail) {
|
||||||
|
set_field_corp_mail(String(mylocal_document.corps_mail));
|
||||||
|
set_field_corp_mail_initial_value(String(mylocal_document.corps_mail));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -762,6 +808,9 @@ const Config_Documents = (props) => {
|
||||||
function Edit_Document_Data_Fields() {
|
function Edit_Document_Data_Fields() {
|
||||||
Enable_Partner_DocumentFields();
|
Enable_Partner_DocumentFields();
|
||||||
Get_Given_Personnalisable_Collection_and_Fields(selected_template_ref_interne);
|
Get_Given_Personnalisable_Collection_and_Fields(selected_template_ref_interne);
|
||||||
|
|
||||||
|
if (document.getElementsByName('one_detail_document_principal') && document.getElementsByName('one_detail_document_principal')[0])
|
||||||
|
document.getElementsByName('one_detail_document_principal')[0].focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
function Enable_Partner_DocumentFields() {
|
function Enable_Partner_DocumentFields() {
|
||||||
|
@ -952,7 +1001,7 @@ const Config_Documents = (props) => {
|
||||||
form.append("cible", p_one_detail_cible);
|
form.append("cible", p_one_detail_cible);
|
||||||
else {
|
else {
|
||||||
form.append("cible", "");
|
form.append("cible", "");
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -960,7 +1009,7 @@ const Config_Documents = (props) => {
|
||||||
form.append("duplicate", p_one_detail_duplicate);
|
form.append("duplicate", p_one_detail_duplicate);
|
||||||
else {
|
else {
|
||||||
form.append("duplicate", "0");
|
form.append("duplicate", "0");
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----
|
//-----
|
||||||
|
@ -969,15 +1018,32 @@ const Config_Documents = (props) => {
|
||||||
form.append("default_version", "1");
|
form.append("default_version", "1");
|
||||||
else {
|
else {
|
||||||
form.append("default_version", "0");
|
form.append("default_version", "0");
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (p_detail_joint_pdf)
|
if (p_detail_joint_pdf)
|
||||||
form.append("joint_pdf", "1");
|
form.append("joint_pdf", "1");
|
||||||
else {
|
else {
|
||||||
form.append("joint_pdf", "0");
|
form.append("joint_pdf", "0");
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (p_detail_edition_par_client)
|
||||||
|
form.append("edit_by_client", "1");
|
||||||
|
else {
|
||||||
|
form.append("joint_pdf", "0");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (p_detail_default_version)
|
||||||
|
form.append("default_version", "1");
|
||||||
|
else {
|
||||||
|
form.append("default_version", "0");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// -------
|
// -------
|
||||||
|
|
||||||
|
|
||||||
|
@ -998,8 +1064,8 @@ const Config_Documents = (props) => {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (one_editorRef_programme) {
|
if (one_field_programme) {
|
||||||
var programme = one_editorRef_programme.current.getContent();
|
var programme = one_field_programme;
|
||||||
programme = programme.replace('<', '<');
|
programme = programme.replace('<', '<');
|
||||||
programme = programme.replace('>', '>');
|
programme = programme.replace('>', '>');
|
||||||
programme = programme.replace('≤', '<=');
|
programme = programme.replace('≤', '<=');
|
||||||
|
@ -1010,8 +1076,8 @@ const Config_Documents = (props) => {
|
||||||
form.append("contenu_doc", "");
|
form.append("contenu_doc", "");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (one_editorRef_corp_mail) {
|
if (one_field_corp_mail) {
|
||||||
var corps_mail = one_editorRef_corp_mail.current.getContent();
|
var corps_mail = one_field_corp_mail;
|
||||||
corps_mail = corps_mail.replace('<', '<');
|
corps_mail = corps_mail.replace('<', '<');
|
||||||
corps_mail = corps_mail.replace('>', '>');
|
corps_mail = corps_mail.replace('>', '>');
|
||||||
corps_mail = corps_mail.replace('≤', '<=');
|
corps_mail = corps_mail.replace('≤', '<=');
|
||||||
|
@ -1235,8 +1301,45 @@ const Config_Documents = (props) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (editorRef_programme) {
|
//-----
|
||||||
var programme = editorRef_programme.current.getContent();
|
|
||||||
|
if (p_detail_default_version)
|
||||||
|
form.append("default_version", "1");
|
||||||
|
else {
|
||||||
|
form.append("default_version", "0");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
if (p_detail_joint_pdf)
|
||||||
|
form.append("joint_pdf", "1");
|
||||||
|
else {
|
||||||
|
form.append("joint_pdf", "0");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
if (p_detail_edition_par_client)
|
||||||
|
form.append("edit_by_client", "1");
|
||||||
|
else {
|
||||||
|
form.append("joint_pdf", "0");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (p_detail_default_version)
|
||||||
|
form.append("default_version", "1");
|
||||||
|
else {
|
||||||
|
form.append("default_version", "0");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// -------
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if (field_programme) {
|
||||||
|
var programme = field_programme;
|
||||||
|
|
||||||
programme = programme.replace('<', '<');
|
programme = programme.replace('<', '<');
|
||||||
programme = programme.replace('>', '>');
|
programme = programme.replace('>', '>');
|
||||||
|
@ -1253,6 +1356,23 @@ const Config_Documents = (props) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (field_corp_mail) {
|
||||||
|
var corps_mail = field_corp_mail;
|
||||||
|
|
||||||
|
corps_mail = corps_mail.replace('<', '<');
|
||||||
|
corps_mail = corps_mail.replace('>', '>');
|
||||||
|
corps_mail = corps_mail.replace('≤', '<=');
|
||||||
|
corps_mail = corps_mail.replace('≥', '>=');
|
||||||
|
|
||||||
|
|
||||||
|
form.append("corps_mail", corps_mail);
|
||||||
|
setp_detail_contenu_doc(corps_mail);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
form.append("corps_mail", "");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//console.log(" Update_one_Partner_Document affectation form == ", form);
|
//console.log(" Update_one_Partner_Document affectation form == ", form);
|
||||||
|
|
||||||
|
@ -1436,6 +1556,8 @@ const Config_Documents = (props) => {
|
||||||
setdisplay_partner_document();
|
setdisplay_partner_document();
|
||||||
setdisplay_detail_document();
|
setdisplay_detail_document();
|
||||||
|
|
||||||
|
setgridline_id("");
|
||||||
|
|
||||||
Get_List_Personnalisable_Default_Document();
|
Get_List_Personnalisable_Default_Document();
|
||||||
setadd_one_document("1");
|
setadd_one_document("1");
|
||||||
|
|
||||||
|
@ -1745,7 +1867,7 @@ const Config_Documents = (props) => {
|
||||||
|
|
||||||
// end gestion pièces jointes
|
// end gestion pièces jointes
|
||||||
|
|
||||||
|
const [gridline_id, setgridline_id] = useState("");
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="config_document">
|
<div className="config_document">
|
||||||
|
@ -2158,36 +2280,30 @@ const Config_Documents = (props) => {
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
// gestion couleur des lignes avec le statut d'inscription
|
|
||||||
'& .line--statut--annule': {
|
|
||||||
backgroundColor: '#D8D8D8',
|
|
||||||
color: 'white',
|
|
||||||
},
|
|
||||||
|
|
||||||
'& .line--statut--inscrit': {
|
|
||||||
backgroundColor: '#CEF6D8',
|
|
||||||
color: 'black',
|
|
||||||
},
|
|
||||||
'& .line--statut--preinscrit': {
|
|
||||||
backgroundColor: '#F7F2E0',
|
|
||||||
color: 'black',
|
|
||||||
},
|
|
||||||
|
|
||||||
/*"& .MuiDataGrid-virtualScrollerRenderZone": {
|
|
||||||
"& .MuiDataGrid-row": {
|
|
||||||
"&:nth-child(2n)": { backgroundColor: "rgba(235, 235, 235, .7)" }
|
|
||||||
}
|
|
||||||
},*/
|
|
||||||
"& .MuiDataGrid-columnHeaders": {
|
"& .MuiDataGrid-columnHeaders": {
|
||||||
backgroundColor: "#c8cfd5",
|
backgroundColor: "#c8cfd5",
|
||||||
color: "black",
|
color: "black",
|
||||||
fontSize: 14
|
fontSize: 14
|
||||||
},
|
},
|
||||||
|
|
||||||
|
'& .line--statut--selected': {
|
||||||
|
backgroundColor: '#FBF2EF',
|
||||||
|
color: 'black',
|
||||||
|
},
|
||||||
|
'& .line--statut--pair': {
|
||||||
|
backgroundColor: 'rgba(235, 235, 235, .7)',
|
||||||
|
color: 'black',
|
||||||
|
},
|
||||||
|
'& .line--statut--impair': {
|
||||||
|
backgroundColor: '#FFFFFF',
|
||||||
|
color: 'black',
|
||||||
|
},
|
||||||
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<DataGrid
|
<DataGrid
|
||||||
checkboxSelection
|
checkboxSelection
|
||||||
|
disableSelectionOnClick
|
||||||
onSelectionModelChange={(newSelectionModel) => {
|
onSelectionModelChange={(newSelectionModel) => {
|
||||||
setSelectionModel(newSelectionModel);
|
setSelectionModel(newSelectionModel);
|
||||||
/* if (newSelectionModel.length === 1)
|
/* if (newSelectionModel.length === 1)
|
||||||
|
@ -2223,6 +2339,7 @@ const Config_Documents = (props) => {
|
||||||
className="datagridclass"
|
className="datagridclass"
|
||||||
|
|
||||||
onRowDoubleClick={(newSelectionModel) => {
|
onRowDoubleClick={(newSelectionModel) => {
|
||||||
|
setgridline_id(newSelectionModel.row.id);
|
||||||
handleClick_display_partner_document(newSelectionModel.row.id);
|
handleClick_display_partner_document(newSelectionModel.row.id);
|
||||||
|
|
||||||
|
|
||||||
|
@ -2260,15 +2377,17 @@ const Config_Documents = (props) => {
|
||||||
}}
|
}}
|
||||||
getRowClassName={(params) => {
|
getRowClassName={(params) => {
|
||||||
|
|
||||||
if (String(params.row.status) === "-1") {
|
// Pour la gestion de la couleur de zone double cliquée
|
||||||
return 'line--statut--annule';
|
if (String(params.row.id) === String(gridline_id)) {
|
||||||
|
return 'line--statut--selected';
|
||||||
}
|
}
|
||||||
if (String(params.row.status) === "0") {
|
else if (parseInt(String(params.row.id)) % 2 === 0) {
|
||||||
return 'line--statut--preinscrit';
|
return 'line--statut--pair';
|
||||||
}
|
}
|
||||||
if (String(params.row.status) === "1") {
|
else if (parseInt(String(params.row.id)) % 2 !== 0) {
|
||||||
return 'line--statut--inscrit';
|
return 'line--statut--impair';
|
||||||
}
|
}
|
||||||
|
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
|
||||||
|
@ -2315,7 +2434,7 @@ const Config_Documents = (props) => {
|
||||||
|
|
||||||
|
|
||||||
<div className="div_row_gauche texte_area_filter" >
|
<div className="div_row_gauche texte_area_filter" >
|
||||||
Type de document 2<br />
|
Type de document<br />
|
||||||
<TextField
|
<TextField
|
||||||
name="document_type"
|
name="document_type"
|
||||||
//label="Type de document"
|
//label="Type de document"
|
||||||
|
@ -2356,8 +2475,8 @@ const Config_Documents = (props) => {
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="div_row_gauche texte_area_filter" >
|
{String(partner_document_data_edit_mode) !== "1" && <div className="div_row_gauche texte_area_filter" >
|
||||||
Joindre en PDF aaaa <br />
|
Joindre en PDF <br />
|
||||||
|
|
||||||
<Checkbox
|
<Checkbox
|
||||||
name="document_join_pdf"
|
name="document_join_pdf"
|
||||||
|
@ -2365,7 +2484,77 @@ const Config_Documents = (props) => {
|
||||||
checked={p_detail_joint_pdf}
|
checked={p_detail_joint_pdf}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
</div>
|
</div>}
|
||||||
|
|
||||||
|
{String(partner_document_data_edit_mode) !== "1" && <div className="div_row_gauche texte_area_filter" >
|
||||||
|
Version par defaut <br />
|
||||||
|
|
||||||
|
<Checkbox
|
||||||
|
name="document_join_pdf"
|
||||||
|
className="disabled_style"
|
||||||
|
checked={p_detail_default_version}
|
||||||
|
/>
|
||||||
|
|
||||||
|
</div>}
|
||||||
|
|
||||||
|
{String(partner_document_data_edit_mode) !== "1" && <div className="div_row_gauche texte_area_filter" >
|
||||||
|
Edition par client <br />
|
||||||
|
|
||||||
|
<Checkbox
|
||||||
|
name="document_join_pdf"
|
||||||
|
className="disabled_style"
|
||||||
|
checked={p_detail_edition_par_client}
|
||||||
|
/>
|
||||||
|
|
||||||
|
</div>}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{String(partner_document_data_edit_mode) === "1" && <div className="div_row_gauche texte_area_filter" >
|
||||||
|
Joindre en PDF <br />
|
||||||
|
|
||||||
|
<Checkbox
|
||||||
|
name="document_edition_par_client"
|
||||||
|
className="disabled_style"
|
||||||
|
checked={p_detail_joint_pdf}
|
||||||
|
onChange={(e) => {
|
||||||
|
setp_detail_joint_pdf(e.target.checked);
|
||||||
|
setpartner_document_data_changed("1");
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
|
||||||
|
</div>}
|
||||||
|
|
||||||
|
{String(partner_document_data_edit_mode) === "1" && <div className="div_row_gauche texte_area_filter" >
|
||||||
|
Version par defaut <br />
|
||||||
|
|
||||||
|
<Checkbox
|
||||||
|
name="document_join_pdf"
|
||||||
|
className="disabled_style"
|
||||||
|
checked={p_detail_default_version}
|
||||||
|
onChange={(e) => {
|
||||||
|
setp_detail_default_version(e.target.checked);
|
||||||
|
setpartner_document_data_changed("1");
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
|
||||||
|
</div>}
|
||||||
|
|
||||||
|
{String(partner_document_data_edit_mode) === "1" && <div className="div_row_gauche texte_area_filter" >
|
||||||
|
Edition par client <br />
|
||||||
|
|
||||||
|
<Checkbox
|
||||||
|
name="document_edition_par_client"
|
||||||
|
className="disabled_style"
|
||||||
|
checked={p_detail_edition_par_client}
|
||||||
|
onChange={(e) => {
|
||||||
|
setp_detail_edition_par_client(e.target.checked);
|
||||||
|
setpartner_document_data_changed("1");
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
|
||||||
|
</div>}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
@ -2421,7 +2610,7 @@ const Config_Documents = (props) => {
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="div_row" style={{ "padding": "5px" }}>
|
{String(partner_document_data_edit_mode) === "1" && <div className="div_row" style={{ "padding": "5px" }}>
|
||||||
|
|
||||||
<div style={{ "fontSize": "12px" }}>
|
<div style={{ "fontSize": "12px" }}>
|
||||||
<label htmlFor="upload-photo">
|
<label htmlFor="upload-photo">
|
||||||
|
@ -2456,7 +2645,7 @@ const Config_Documents = (props) => {
|
||||||
{Record_All_PJ_api && String(Record_All_PJ_api) === "false" && <div className="koUpdateData"> {Record_All_PJ_message} </div>}
|
{Record_All_PJ_api && String(Record_All_PJ_api) === "false" && <div className="koUpdateData"> {Record_All_PJ_message} </div>}
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>}
|
||||||
|
|
||||||
|
|
||||||
{file_1_name && file_1_name.name && <div className="div_row">
|
{file_1_name && file_1_name.name && <div className="div_row">
|
||||||
|
@ -2541,77 +2730,184 @@ const Config_Documents = (props) => {
|
||||||
</div>}
|
</div>}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
{String(partner_document_data_edit_mode) !== "1" && <div className="div_row">
|
||||||
|
|
||||||
|
{p_detail_joint_pdf === true && <div className="div_row" style={{ "border": "None", "width": "98%", "marginLeft": "1%", "marginRight": "1%", "float": "left" }}>
|
||||||
|
<Button variant="outlined"
|
||||||
|
onClick={(event) => {
|
||||||
|
setdocument_principal_ou_corp_mail("1");
|
||||||
|
}}
|
||||||
|
className="detail_class_submenu" id='detail_document_principal' name='detail_document_principal'>Document principal</Button>
|
||||||
|
<Button variant="outlined"
|
||||||
|
onClick={(event) => {
|
||||||
|
setdocument_principal_ou_corp_mail("2");
|
||||||
|
}}
|
||||||
|
className="detail_class_submenu" id='detail_corps_mail' name='detail_corps_mail'>Corps du mail </Button>
|
||||||
|
</div>}
|
||||||
|
|
||||||
|
|
||||||
|
{p_detail_joint_pdf === true && String(document_principal_ou_corp_mail) === "2" &&
|
||||||
|
<div style={{ "width": "98%", "marginLeft": "1%", "marginRight": "1%", "float": "left" }}>
|
||||||
|
|
||||||
|
<div className="titre_training_text"> Coprs du mail </div>
|
||||||
|
<Editor
|
||||||
|
id="corps_mail_content"
|
||||||
|
name="corps_mail_content"
|
||||||
|
onInit={(evt, editor) => one_editorRef_corp_mail.current = editor}
|
||||||
|
initialValue={field_corp_mail_initial_value}
|
||||||
|
disabled={true}
|
||||||
|
init={{
|
||||||
|
resize: false,
|
||||||
|
height: 700,
|
||||||
|
menubar: true,
|
||||||
|
plugins: [
|
||||||
|
'advlist', 'autolink', 'lists', 'link', 'image', 'charmap', 'print', 'preview', 'anchor', 'searchreplace',
|
||||||
|
'visualblocks', 'code', 'fullscreen', 'insertdatetime', 'media', 'table', 'paste', 'code', 'help', 'wordcount',
|
||||||
|
'lists', 'link', 'image', 'charmap', 'preview', 'anchor', 'searchreplace', 'visualblocks',
|
||||||
|
|
||||||
|
],
|
||||||
|
toolbar: 'undo redo | casechange blocks | bold italic backcolor | ' +
|
||||||
|
'alignleft aligncenter alignright alignjustify | ' +
|
||||||
|
'bullist numlist checklist outdent indent | removeformat | a11ycheck code table help',
|
||||||
|
|
||||||
|
content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px; }'
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
|
||||||
|
{String(document_principal_ou_corp_mail) !== "2" && <div>
|
||||||
|
<div style={{ "width": "98%", "marginLeft": "1%", "marginRight": "1%", "float": "left" }}>
|
||||||
|
<div className="titre_training_text"> Votre document </div>
|
||||||
|
<Editor
|
||||||
|
id="detail_document_principal"
|
||||||
|
name="detail_document_principal"
|
||||||
|
onInit={(evt, editor) => editorRef_programme.current = editor}
|
||||||
|
initialValue={field_programme_initial_value}
|
||||||
|
|
||||||
|
disabled={true}
|
||||||
|
init={{
|
||||||
|
resize: false,
|
||||||
|
height: 700,
|
||||||
|
menubar: true,
|
||||||
|
readonly: 1,
|
||||||
|
plugins: [
|
||||||
|
'advlist', 'autolink', 'lists', 'link', 'image', 'charmap', 'print', 'preview', 'anchor', 'searchreplace',
|
||||||
|
'visualblocks', 'code', 'fullscreen', 'insertdatetime', 'media', 'table', 'paste', 'code', 'help', 'wordcount',
|
||||||
|
'lists', 'link', 'image', 'charmap', 'preview', 'anchor', 'searchreplace', 'visualblocks',
|
||||||
|
|
||||||
|
],
|
||||||
|
toolbar: 'undo redo | casechange blocks | bold italic backcolor | ' +
|
||||||
|
'alignleft aligncenter alignright alignjustify | ' +
|
||||||
|
'bullist numlist checklist outdent indent | removeformat | a11ycheck code table help',
|
||||||
|
|
||||||
|
content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px; }'
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>}
|
||||||
|
</div>}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{String(partner_document_data_edit_mode) === "1" && <div className="div_row">
|
{String(partner_document_data_edit_mode) === "1" && <div className="div_row">
|
||||||
<div style={{ "width": "98%", "marginLeft": "1%", "marginRight": "1%", "float": "left" }}>
|
|
||||||
|
|
||||||
<div className="titre_training_text"> Modifier le contenu du document </div>
|
<div className="div_row" >
|
||||||
<Editor
|
|
||||||
id="document_contente"
|
|
||||||
name="document_contente"
|
|
||||||
onInit={(evt, editor) => editorRef_programme.current = editor}
|
|
||||||
initialValue={field_programme}
|
|
||||||
onKeyUp={editor_keyup}
|
|
||||||
onEditorChange={(newValue, editor) => {
|
|
||||||
if (String(editor_tochange) === "1") {
|
|
||||||
//alert(" change");
|
|
||||||
seteditor_tochange("");
|
|
||||||
setpartner_document_data_changed("1");
|
|
||||||
}
|
|
||||||
}}
|
|
||||||
init={{
|
|
||||||
resize: false,
|
|
||||||
height: 700,
|
|
||||||
menubar: true,
|
|
||||||
plugins: [
|
|
||||||
'advlist', 'autolink', 'lists', 'link', 'image', 'charmap', 'print', 'preview', 'anchor', 'searchreplace',
|
|
||||||
'visualblocks', 'code', 'fullscreen', 'insertdatetime', 'media', 'table', 'paste', 'code', 'help', 'wordcount',
|
|
||||||
'lists', 'link', 'image', 'charmap', 'preview', 'anchor', 'searchreplace', 'visualblocks',
|
|
||||||
|
|
||||||
],
|
{p_detail_joint_pdf === true && <div className="div_row" style={{ "border": "None", "width": "98%", "marginLeft": "1%", "marginRight": "1%", "float": "left" }}>
|
||||||
toolbar: 'undo redo | casechange blocks | bold italic backcolor | ' +
|
<Button variant="outlined"
|
||||||
'alignleft aligncenter alignright alignjustify | ' +
|
onClick={(event) => {
|
||||||
'bullist numlist checklist outdent indent | removeformat | a11ycheck code table help',
|
setdocument_principal_ou_corp_mail("1");
|
||||||
|
}}
|
||||||
|
className="detail_class_submenu" id='detail_employe' name='detail_employe'>Document principal</Button>
|
||||||
|
<Button variant="outlined"
|
||||||
|
onClick={(event) => {
|
||||||
|
setdocument_principal_ou_corp_mail("2");
|
||||||
|
}}
|
||||||
|
className="detail_class_submenu" id='droit_acces' name='droit_acces'>Corps du mail </Button>
|
||||||
|
</div>}
|
||||||
|
|
||||||
content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px; }'
|
|
||||||
}}
|
{p_detail_joint_pdf === true && String(document_principal_ou_corp_mail) === "2" &&
|
||||||
/>
|
<div style={{ "width": "98%", "marginLeft": "1%", "marginRight": "1%", "float": "left" }}>
|
||||||
|
|
||||||
|
<div className="titre_training_text"> Modifier le Coprs du mail </div>
|
||||||
|
<Editor
|
||||||
|
id="corps_mail_content"
|
||||||
|
name="corps_mail_content"
|
||||||
|
onInit={(evt, editor) => one_editorRef_corp_mail.current = editor}
|
||||||
|
//initialValue={field_corp_mail}
|
||||||
|
value={field_corp_mail}
|
||||||
|
onKeyUp={editor_keyup}
|
||||||
|
onEditorChange={(newValue, editor) => {
|
||||||
|
set_field_corp_mail(one_editorRef_corp_mail.current.getContent());
|
||||||
|
setpartner_document_data_changed("1");
|
||||||
|
}}
|
||||||
|
init={{
|
||||||
|
resize: false,
|
||||||
|
height: 700,
|
||||||
|
menubar: true,
|
||||||
|
plugins: [
|
||||||
|
'advlist', 'autolink', 'lists', 'link', 'image', 'charmap', 'print', 'preview', 'anchor', 'searchreplace',
|
||||||
|
'visualblocks', 'code', 'fullscreen', 'insertdatetime', 'media', 'table', 'paste', 'code', 'help', 'wordcount',
|
||||||
|
'lists', 'link', 'image', 'charmap', 'preview', 'anchor', 'searchreplace', 'visualblocks',
|
||||||
|
|
||||||
|
],
|
||||||
|
toolbar: 'undo redo | casechange blocks | bold italic backcolor | ' +
|
||||||
|
'alignleft aligncenter alignright alignjustify | ' +
|
||||||
|
'bullist numlist checklist outdent indent | removeformat | a11ycheck code table help',
|
||||||
|
|
||||||
|
content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px; }'
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
{String(document_principal_ou_corp_mail) !== "2" &&
|
||||||
|
<div style={{ "width": "98%", "marginLeft": "1%", "marginRight": "1%", "float": "left" }}>
|
||||||
|
<div className="titre_training_text"> Modifier le contenu du document </div>
|
||||||
|
<Editor
|
||||||
|
id="detail_document_principal"
|
||||||
|
name="detail_document_principal"
|
||||||
|
onInit={(evt, editor) => one_editorRef_programme.current = editor}
|
||||||
|
//initialValue={field_programme_initial_value}
|
||||||
|
|
||||||
|
onKeyUp={editor_keyup}
|
||||||
|
value={field_programme}
|
||||||
|
onEditorChange={(newValue, editor) => {
|
||||||
|
setfield_programme(one_editorRef_programme.current.getContent());
|
||||||
|
setpartner_document_data_changed("1");
|
||||||
|
|
||||||
|
}}
|
||||||
|
init={{
|
||||||
|
resize: false,
|
||||||
|
height: 700,
|
||||||
|
menubar: true,
|
||||||
|
plugins: [
|
||||||
|
'advlist', 'autolink', 'lists', 'link', 'image', 'charmap', 'print', 'preview', 'anchor', 'searchreplace',
|
||||||
|
'visualblocks', 'code', 'fullscreen', 'insertdatetime', 'media', 'table', 'paste', 'code', 'help', 'wordcount',
|
||||||
|
'lists', 'link', 'image', 'charmap', 'preview', 'anchor', 'searchreplace', 'visualblocks',
|
||||||
|
|
||||||
|
],
|
||||||
|
toolbar: 'undo redo | casechange blocks | bold italic backcolor | ' +
|
||||||
|
'alignleft aligncenter alignright alignjustify | ' +
|
||||||
|
'bullist numlist checklist outdent indent | removeformat | a11ycheck code table help',
|
||||||
|
|
||||||
|
content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px; }'
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
|
||||||
|
</div>}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>}
|
</div>}
|
||||||
|
|
||||||
{String(partner_document_data_edit_mode) !== "1" && <div>
|
|
||||||
<div style={{ "width": "98%", "marginLeft": "1%", "marginRight": "1%", "float": "left" }}>
|
|
||||||
<div className="titre_training_text"> Votre document </div>
|
|
||||||
<Editor
|
|
||||||
id="document_contente"
|
|
||||||
name="document_contente"
|
|
||||||
onInit={(evt, editor) => editorRef_programme.current = editor}
|
|
||||||
initialValue={field_programme}
|
|
||||||
|
|
||||||
disabled={true}
|
|
||||||
init={{
|
|
||||||
resize: false,
|
|
||||||
height: 700,
|
|
||||||
menubar: true,
|
|
||||||
readonly: 1,
|
|
||||||
plugins: [
|
|
||||||
'advlist', 'autolink', 'lists', 'link', 'image', 'charmap', 'print', 'preview', 'anchor', 'searchreplace',
|
|
||||||
'visualblocks', 'code', 'fullscreen', 'insertdatetime', 'media', 'table', 'paste', 'code', 'help', 'wordcount',
|
|
||||||
'lists', 'link', 'image', 'charmap', 'preview', 'anchor', 'searchreplace', 'visualblocks',
|
|
||||||
|
|
||||||
],
|
|
||||||
toolbar: 'undo redo | casechange blocks | bold italic backcolor | ' +
|
|
||||||
'alignleft aligncenter alignright alignjustify | ' +
|
|
||||||
'bullist numlist checklist outdent indent | removeformat | a11ycheck code table help',
|
|
||||||
|
|
||||||
content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px; }'
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>}
|
|
||||||
|
|
||||||
<div className="div_row" style={{ "border": "None" }}>
|
<div className="div_row" style={{ "border": "None" }}>
|
||||||
|
|
||||||
|
@ -2740,7 +3036,7 @@ const Config_Documents = (props) => {
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{String(display_add_one_document) === "1" && <div className="div_row">
|
{String(display_add_one_document) === "1" && <div>
|
||||||
|
|
||||||
<div className="div_row">
|
<div className="div_row">
|
||||||
|
|
||||||
|
@ -2786,7 +3082,7 @@ const Config_Documents = (props) => {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="div_row_gauche texte_area_filter" >
|
<div className="div_row_gauche texte_area_filter" >
|
||||||
Sujet <br />
|
Sujet 1 <br />
|
||||||
<TextField
|
<TextField
|
||||||
name="one_document_sujet"
|
name="one_document_sujet"
|
||||||
//label="Sujet"
|
//label="Sujet"
|
||||||
|
@ -2818,14 +3114,30 @@ const Config_Documents = (props) => {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="div_row_gauche texte_area_filter" >
|
<div className="div_row_gauche texte_area_filter" >
|
||||||
Version par defaut <br />
|
Version par defaut bbb <br />
|
||||||
|
|
||||||
<Checkbox
|
<Checkbox
|
||||||
name="document_join_pdf"
|
name="document_join_pdf"
|
||||||
// className="disabled_style"
|
// className="disabled_style"
|
||||||
checked={p_detail_joint_pdf}
|
checked={p_detail_default_version}
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
p_detail_default_version(e.target.checked);
|
setp_detail_default_version(e.target.checked);
|
||||||
|
setpartner_document_data_changed("1");
|
||||||
|
}}
|
||||||
|
|
||||||
|
/>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="div_row_gauche texte_area_filter" >
|
||||||
|
Edition par client bbb <br />
|
||||||
|
|
||||||
|
<Checkbox
|
||||||
|
name="document_join_pdf"
|
||||||
|
// className="disabled_style"
|
||||||
|
checked={p_detail_edition_par_client}
|
||||||
|
onChange={(e) => {
|
||||||
|
setp_detail_edition_par_client(e.target.checked);
|
||||||
setpartner_document_data_changed("1");
|
setpartner_document_data_changed("1");
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
@ -2877,15 +3189,16 @@ const Config_Documents = (props) => {
|
||||||
<hr className="hr_break" />
|
<hr className="hr_break" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="div_row" >
|
|
||||||
|
|
||||||
|
|
||||||
|
<div className="div_row" >
|
||||||
|
|
||||||
{p_detail_joint_pdf === true && <div className="div_row" style={{ "border": "None", "width": "98%", "marginLeft": "1%", "marginRight": "1%", "float": "left" }}>
|
{p_detail_joint_pdf === true && <div className="div_row" style={{ "border": "None", "width": "98%", "marginLeft": "1%", "marginRight": "1%", "float": "left" }}>
|
||||||
<Button variant="outlined"
|
<Button variant="outlined"
|
||||||
onClick={(event) => {
|
onClick={(event) => {
|
||||||
setdocument_principal_ou_corp_mail("1");
|
setdocument_principal_ou_corp_mail("1");
|
||||||
}}
|
}}
|
||||||
className="detail_class_submenu" id='detail_employe' name='detail_employe'>Document principal</Button>
|
className="detail_class_submenu" id='one_detail_document_principal' name='one_detail_document_principal'>Document principal</Button>
|
||||||
<Button variant="outlined"
|
<Button variant="outlined"
|
||||||
onClick={(event) => {
|
onClick={(event) => {
|
||||||
setdocument_principal_ou_corp_mail("2");
|
setdocument_principal_ou_corp_mail("2");
|
||||||
|
@ -2897,15 +3210,23 @@ const Config_Documents = (props) => {
|
||||||
{p_detail_joint_pdf === true && String(document_principal_ou_corp_mail) === "2" &&
|
{p_detail_joint_pdf === true && String(document_principal_ou_corp_mail) === "2" &&
|
||||||
<div style={{ "width": "98%", "marginLeft": "1%", "marginRight": "1%", "float": "left" }}>
|
<div style={{ "width": "98%", "marginLeft": "1%", "marginRight": "1%", "float": "left" }}>
|
||||||
|
|
||||||
<div className="titre_training_text"> Modifier le Coprs du mail </div>
|
<div className="titre_training_text"> Créer le Coprs du mail </div>
|
||||||
<Editor
|
<Editor
|
||||||
id="corps_contente"
|
id="one_corps_contente"
|
||||||
name="corps_contente"
|
name="one_corps_contente"
|
||||||
onInit={(evt, editor) => one_editorRef_corp_mail.current = editor}
|
onInit={(evt, editor) => one_editorRef_corp_mail.current = editor}
|
||||||
initialValue={one_field_corp_mail}
|
//initialValue={one_field_corp_mail_initial_value}
|
||||||
|
value={one_field_corp_mail}
|
||||||
onKeyUp={editor_keyup}
|
onKeyUp={editor_keyup}
|
||||||
onEditorChange={(newValue, editor) => {
|
|
||||||
|
|
||||||
|
onEditorChange={(newValue, editor) => {
|
||||||
|
/*if (String(editor_tochange) === "1") {
|
||||||
|
//alert(" change");
|
||||||
|
seteditor_tochange("");
|
||||||
|
setpartner_document_data_changed("1");
|
||||||
|
}*/
|
||||||
|
setpartner_document_data_changed("1");
|
||||||
|
setone_field_corp_mail(one_editorRef_corp_mail.current.getContent());
|
||||||
}}
|
}}
|
||||||
init={{
|
init={{
|
||||||
resize: false,
|
resize: false,
|
||||||
|
@ -2931,15 +3252,23 @@ const Config_Documents = (props) => {
|
||||||
|
|
||||||
{String(document_principal_ou_corp_mail) !== "2" &&
|
{String(document_principal_ou_corp_mail) !== "2" &&
|
||||||
<div style={{ "width": "98%", "marginLeft": "1%", "marginRight": "1%", "float": "left" }}>
|
<div style={{ "width": "98%", "marginLeft": "1%", "marginRight": "1%", "float": "left" }}>
|
||||||
<div className="titre_training_text"> Modifier le contenu du document </div>
|
<div className="titre_training_text"> Créer le contenu du document </div>
|
||||||
<Editor
|
<Editor
|
||||||
id="document_contente"
|
id="one_detail_document_principal"
|
||||||
name="document_contente"
|
name="one_detail_document_principal"
|
||||||
onInit={(evt, editor) => one_editorRef_programme.current = editor}
|
onInit={(evt, editor) => one_editorRef_programme.current = editor}
|
||||||
initialValue={one_field_programme}
|
//initialValue={one_field_programme_initial_value}
|
||||||
|
value={one_field_programme}
|
||||||
onKeyUp={editor_keyup}
|
onKeyUp={editor_keyup}
|
||||||
onEditorChange={(newValue, editor) => {
|
onEditorChange={(newValue, editor) => {
|
||||||
|
/*if (String(editor_tochange) === "1") {
|
||||||
|
//alert(" change");
|
||||||
|
seteditor_tochange("");
|
||||||
|
setpartner_document_data_changed("1");
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
setpartner_document_data_changed("1");
|
||||||
|
setone_field_programme(one_editorRef_programme.current.getContent());
|
||||||
}}
|
}}
|
||||||
init={{
|
init={{
|
||||||
resize: false,
|
resize: false,
|
||||||
|
@ -2961,8 +3290,6 @@ const Config_Documents = (props) => {
|
||||||
|
|
||||||
</div>}
|
</div>}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
@ -2988,11 +3315,8 @@ const Config_Documents = (props) => {
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>}
|
</div>}
|
||||||
|
|
||||||
</div>}
|
</div>}
|
||||||
|
|
||||||
</div >
|
</div >
|
||||||
|
|
|
@ -8496,8 +8496,11 @@ Update du 22/10/2023 - Gestion des champs spécifiques ajoutés par le partenair
|
||||||
|
|
||||||
</div>}
|
</div>}
|
||||||
|
|
||||||
{String(selected_convention_type) === "email" && <div className="session_caract_Dialog" > Recevoir un pré-envoie
|
|
||||||
<TextField
|
{String(selected_convention_type) === "email" && <div className="session_caract_Dialog" > Adresse email de test
|
||||||
|
<Tooltip id="test01" style={{ "fontSize": "12px" }} />
|
||||||
|
<a data-tooltip-id="test01" data-tooltip-content="Pour recevoir une email de test avant de l'envoyer">
|
||||||
|
<TextField
|
||||||
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||||
|
|
||||||
name="event_dialog_email_test_convention"
|
name="event_dialog_email_test_convention"
|
||||||
|
@ -8511,6 +8514,7 @@ Update du 22/10/2023 - Gestion des champs spécifiques ajoutés par le partenair
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
</a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
@ -8942,6 +8946,7 @@ Update du 22/10/2023 - Gestion des champs spécifiques ajoutés par le partenair
|
||||||
>
|
>
|
||||||
<DataGrid
|
<DataGrid
|
||||||
checkboxSelection
|
checkboxSelection
|
||||||
|
|
||||||
onSelectionModelChange={(newSelectionModel) => {
|
onSelectionModelChange={(newSelectionModel) => {
|
||||||
setSelectionModel(newSelectionModel);
|
setSelectionModel(newSelectionModel);
|
||||||
/*if (newSelectionModel.length === 1)
|
/*if (newSelectionModel.length === 1)
|
||||||
|
@ -8953,7 +8958,7 @@ Update du 22/10/2023 - Gestion des champs spécifiques ajoutés par le partenair
|
||||||
setsubmenu();
|
setsubmenu();
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
selectionModel={selectionModel}
|
selectionModel={selectionModel}
|
||||||
|
|
||||||
localeText={frFR.components.MuiDataGrid.defaultProps.localeText}
|
localeText={frFR.components.MuiDataGrid.defaultProps.localeText}
|
||||||
rows={rowss.map((item, index) => (
|
rows={rowss.map((item, index) => (
|
||||||
|
|
|
@ -5092,8 +5092,11 @@ const DisplayPartnerStagiaires = (props) => {
|
||||||
|
|
||||||
</div>}
|
</div>}
|
||||||
|
|
||||||
{String(selected_convention_type) === "email" && <div className="session_caract_Dialog" > Recevoir un pré-envoie
|
{String(selected_convention_type) === "email" && <div className="session_caract_Dialog" > Adresse email de test
|
||||||
<TextField
|
|
||||||
|
<Tooltip id="test01" style={{ "fontSize": "12px" }} />
|
||||||
|
<a data-tooltip-id="test01" data-tooltip-content="Pour recevoir une email de test avant de l'envoyer">
|
||||||
|
<TextField
|
||||||
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
|
||||||
|
|
||||||
name="event_dialog_email_test_convention"
|
name="event_dialog_email_test_convention"
|
||||||
|
@ -5107,6 +5110,7 @@ const DisplayPartnerStagiaires = (props) => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
</a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
@ -5685,6 +5689,7 @@ const DisplayPartnerStagiaires = (props) => {
|
||||||
>
|
>
|
||||||
<DataGrid
|
<DataGrid
|
||||||
checkboxSelection
|
checkboxSelection
|
||||||
|
|
||||||
onSelectionModelChange={(newSelectionModel) => {
|
onSelectionModelChange={(newSelectionModel) => {
|
||||||
setSelectionModel(newSelectionModel);
|
setSelectionModel(newSelectionModel);
|
||||||
/*if (newSelectionModel.length === 1)
|
/*if (newSelectionModel.length === 1)
|
||||||
|
|
|
@ -1509,6 +1509,7 @@ const DistplayPartnerTraningsPage = (props) => {
|
||||||
>
|
>
|
||||||
<DataGrid
|
<DataGrid
|
||||||
checkboxSelection
|
checkboxSelection
|
||||||
|
|
||||||
onSelectionModelChange={(newSelectionModel) => {
|
onSelectionModelChange={(newSelectionModel) => {
|
||||||
setSelectionModel(newSelectionModel);
|
setSelectionModel(newSelectionModel);
|
||||||
//console.log("ch selected--" + newSelectionModel);
|
//console.log("ch selected--" + newSelectionModel);
|
||||||
|
@ -1534,8 +1535,6 @@ const DistplayPartnerTraningsPage = (props) => {
|
||||||
}
|
}
|
||||||
))}
|
))}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
columns={columns}
|
columns={columns}
|
||||||
pageSize={10}
|
pageSize={10}
|
||||||
className="datagridclass"
|
className="datagridclass"
|
||||||
|
@ -1552,7 +1551,7 @@ const DistplayPartnerTraningsPage = (props) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
rowsPerPageOptions={[10]}
|
rowsPerPageOptions={[10]}
|
||||||
//disableSelectionOnClick
|
disableSelectionOnClick
|
||||||
components={{
|
components={{
|
||||||
Toolbar: GridToolbar,
|
Toolbar: GridToolbar,
|
||||||
}}
|
}}
|
||||||
|
|
|
@ -656,6 +656,7 @@
|
||||||
font-size: small;
|
font-size: small;
|
||||||
letter-spacing: 0.1rem;
|
letter-spacing: 0.1rem;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
|
width: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.detail_class_submenu:hover:active,
|
.detail_class_submenu:hover:active,
|
||||||
|
@ -1265,6 +1266,7 @@
|
||||||
font-size: small;
|
font-size: small;
|
||||||
letter-spacing: 0.1rem;
|
letter-spacing: 0.1rem;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
|
width: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.detail_class_submenu:hover:active,
|
.detail_class_submenu:hover:active,
|
||||||
|
@ -1730,6 +1732,7 @@
|
||||||
font-size: small;
|
font-size: small;
|
||||||
letter-spacing: 0.1rem;
|
letter-spacing: 0.1rem;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
|
width: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.detail_class_submenu:hover:active,
|
.detail_class_submenu:hover:active,
|
||||||
|
|
Loading…
Reference in New Issue