13/11/2025 - 22h30
parent
c117dbf75e
commit
3ff2f5771b
|
|
@ -5547,12 +5547,12 @@ const AddParnerClient = (props) => {
|
|||
|
||||
<div className="div_row" style={{ "border": "None" }}>
|
||||
<Modules_Mes_Documents
|
||||
partner_client_id={""}
|
||||
partner_client_id={props.client_id}
|
||||
partner_owner_recid={""}
|
||||
type_user_connected={"partner_account"}
|
||||
my_title={"Gestion Documentaire"}
|
||||
object_owner_collection={"partner_client"}
|
||||
object_owner_id={props.client_id}
|
||||
object_owner_id={props.client_id}
|
||||
|
||||
/>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -83,13 +83,6 @@ const Document_Affichage_Grid = (props) => {
|
|||
|
||||
useEffect(() => {
|
||||
|
||||
|
||||
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
|
||||
}, [props.apprenant_id])
|
||||
|
||||
function print_document_pdf(doc_id, file_extention, file_business_object) {
|
||||
|
|
@ -245,33 +238,34 @@ const Document_Affichage_Grid = (props) => {
|
|||
|
||||
|
||||
<div style={{ width: '100%', float: 'left', }}>
|
||||
<div className="file-grid">
|
||||
<div style={{ display: 'flex', flexDirection: 'row', gap: '20px', width: '100%', flexWrap: 'wrap',
|
||||
justifyContent: 'center', padding:'15px', color:"#e0e0e0", overflow:'hidden' }}>
|
||||
|
||||
{props.list_document &&
|
||||
props.list_document.map((document) => (
|
||||
|
||||
<div className="file-grid">
|
||||
<div className="file-card">
|
||||
<div className="file-icon"><GoFile style={{ fontSize: '30px', color: '#81bc3a' }} /> </div>
|
||||
<div className="file-name">{JSON.parse(document).file_business_object}</div>
|
||||
<div className="file-date">Crée le {String(JSON.parse(document).creation_date).substring(0, 10)}</div>
|
||||
<div className="file-date" style={{ width: '40%', float: 'left', cursor: 'pointer' }} onClick={(e) => {
|
||||
preview_document_pdf(JSON.parse(document)._id, JSON.parse(document).file_extention, JSON.parse(document).file_business_object);
|
||||
setselected_doc_name(JSON.parse(document).file_business_object);
|
||||
setDialog_Preview_Doc_open(true);
|
||||
}}>
|
||||
<VisibilityIcon style={{ color: 'white' }} />
|
||||
</div>
|
||||
<div className="file-date" style={{ width: '40%', float: 'right', cursor: 'pointer' }} onClick={(e) => {
|
||||
print_document_pdf(JSON.parse(document)._id, JSON.parse(document).file_extention, JSON.parse(document).file_business_object);
|
||||
setselected_doc_name(JSON.parse(document).file_business_object);
|
||||
|
||||
}}>
|
||||
<ArrowCircleDownIcon style={{ color: 'white' }} />
|
||||
</div>
|
||||
<div className="file-card">
|
||||
<div className="file-icon"><GoFile style={{ fontSize: '30px', color: '#81bc3a' }} /> </div>
|
||||
<div className="file-name">{JSON.parse(document).file_business_object}</div>
|
||||
<div className="file-date">Créé le {String(JSON.parse(document).creation_date).substring(0, 10)}</div>
|
||||
<div className="file-date" style={{ width: '40%', float: 'left', cursor: 'pointer' }} onClick={(e) => {
|
||||
preview_document_pdf(JSON.parse(document)._id, JSON.parse(document).file_extention, JSON.parse(document).file_business_object);
|
||||
setselected_doc_name(JSON.parse(document).file_business_object);
|
||||
setDialog_Preview_Doc_open(true);
|
||||
}}>
|
||||
<VisibilityIcon style={{ color: 'white' }} />
|
||||
</div>
|
||||
<div className="file-date" style={{ width: '40%', float: 'right', cursor: 'pointer' }} onClick={(e) => {
|
||||
print_document_pdf(JSON.parse(document)._id, JSON.parse(document).file_extention, JSON.parse(document).file_business_object);
|
||||
setselected_doc_name(JSON.parse(document).file_business_object);
|
||||
|
||||
}}>
|
||||
<ArrowCircleDownIcon style={{ color: 'white' }} />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
))}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1928,7 +1928,7 @@ const Modules_Mes_Documents = (props) => {
|
|||
|
||||
</div>}
|
||||
|
||||
{affichage_doc && String(affichage_doc) === "grid" && <div className="session_data">
|
||||
{affichage_doc && String(affichage_doc) === "grid" && <div>
|
||||
<Document_Affichage_Grid list_document={rowss} />
|
||||
</div>}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -2451,7 +2451,7 @@
|
|||
/* Grille de fichiers */
|
||||
.file-grid {
|
||||
flex: 1;
|
||||
display: grid;
|
||||
display: flex;
|
||||
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
|
||||
gap: 1rem;
|
||||
padding: 1.5rem;
|
||||
|
|
@ -2459,6 +2459,8 @@
|
|||
background-color: #e0e0e0;
|
||||
color: #e0e0e0;
|
||||
overflow: hidden;
|
||||
justify-content: center;
|
||||
|
||||
}
|
||||
|
||||
.file-card {
|
||||
|
|
@ -2469,6 +2471,7 @@
|
|||
text-align: center;
|
||||
transition: transform 0.2s, box-shadow 0.2s;
|
||||
min-height: 10rem;
|
||||
width: 13rem;
|
||||
}
|
||||
|
||||
.file-card:hover {
|
||||
|
|
|
|||
Loading…
Reference in New Issue