- saving progress;
This commit is contained in:
@@ -1436,48 +1436,55 @@ const DomandaEditInstructorManager = () => {
|
||||
|
||||
{data.evaluationVersion === 'V2'
|
||||
? <div className="appPageSection">
|
||||
<h3>{__('Contratto', 'gepafin')}</h3>
|
||||
{data.contract && data.contract?.beneficiaryDocuments && !isEmpty(data.contract?.beneficiaryDocuments)
|
||||
? <ol className="appPageSection__list">
|
||||
{data.contract?.beneficiaryDocuments.map(o => <li key={o.id} className="appPageSection__listItem">
|
||||
<div className="appPageSection__listItemRow">
|
||||
<div>{renderHtmlContent(o.name)}</div>
|
||||
<div className="appPageSection__iconActions">
|
||||
<Button icon="pi pi-eye" rounded
|
||||
onClick={() => {
|
||||
window.open(o.fileDetail[0].filePath, '_blank').focus()
|
||||
}}
|
||||
outlined severity="info"
|
||||
aria-label={__('Mostra', 'gepafin')}/>
|
||||
<ArchiveDocument
|
||||
ndg={data.ndg}
|
||||
applicationId={id}
|
||||
fileDescr={renderHtmlContent(o.name)}
|
||||
fileId={o.id}
|
||||
updateFn={(attachId) => {
|
||||
setData((prev) => {
|
||||
const newDocuments = data.contract.beneficiaryDocuments
|
||||
.map(ob => {
|
||||
return ob.id === o.id
|
||||
? {...o, documentAttachmentId: attachId}
|
||||
: o;
|
||||
{APP_HUB_ID !== 't7jh5wfg9QXylNaTZkPoE'
|
||||
? <>
|
||||
<h3>{__('Contratto', 'gepafin')}</h3>
|
||||
{data.contract && data.contract?.beneficiaryDocuments && !isEmpty(data.contract?.beneficiaryDocuments)
|
||||
? <ol className="appPageSection__list">
|
||||
{data.contract?.beneficiaryDocuments.map(o => <li key={o.id}
|
||||
className="appPageSection__listItem">
|
||||
<div className="appPageSection__listItemRow">
|
||||
<div>{renderHtmlContent(o.name)}</div>
|
||||
<div className="appPageSection__iconActions">
|
||||
<Button icon="pi pi-eye" rounded
|
||||
onClick={() => {
|
||||
window.open(o.fileDetail[0].filePath, '_blank').focus()
|
||||
}}
|
||||
outlined severity="info"
|
||||
aria-label={__('Mostra', 'gepafin')}/>
|
||||
<ArchiveDocument
|
||||
ndg={data.ndg}
|
||||
applicationId={id}
|
||||
fileDescr={renderHtmlContent(o.name)}
|
||||
fileId={o.id}
|
||||
updateFn={(attachId) => {
|
||||
setData((prev) => {
|
||||
const newDocuments = data.contract.beneficiaryDocuments
|
||||
.map(ob => {
|
||||
return ob.id === o.id
|
||||
? {
|
||||
...o,
|
||||
documentAttachmentId: attachId
|
||||
}
|
||||
: o;
|
||||
});
|
||||
return {
|
||||
...prev,
|
||||
contract: {
|
||||
...prev.contract,
|
||||
beneficiaryDocuments: newDocuments
|
||||
}
|
||||
}
|
||||
});
|
||||
return {
|
||||
...prev,
|
||||
contract: {
|
||||
...prev.contract,
|
||||
beneficiaryDocuments: newDocuments
|
||||
}
|
||||
}
|
||||
});
|
||||
}}
|
||||
isSignedDocument={true}
|
||||
docAttachmentId={o.documentAttachmentId}/>
|
||||
</div>
|
||||
</div>
|
||||
</li>)}
|
||||
</ol>
|
||||
: <p>{__('Nessun documento firmato', 'gepafin')}</p>}
|
||||
}}
|
||||
isSignedDocument={true}
|
||||
docAttachmentId={o.documentAttachmentId}/>
|
||||
</div>
|
||||
</div>
|
||||
</li>)}
|
||||
</ol>
|
||||
: <p>{__('Nessun documento firmato', 'gepafin')}</p>}
|
||||
</> : null}
|
||||
<h2>{__('Domanda PDF firmato', 'gepafin')}</h2>
|
||||
{data.signedDocument && !isEmpty(data.signedDocument)
|
||||
? <ol className="appPageSection__list">
|
||||
@@ -1618,48 +1625,55 @@ const DomandaEditInstructorManager = () => {
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h3>{__('Contratto', 'gepafin')}</h3>
|
||||
{data.contract && data.contract?.beneficiaryDocuments && !isEmpty(data.contract?.beneficiaryDocuments)
|
||||
? <ol className="appPageSection__list">
|
||||
{data.contract?.beneficiaryDocuments.map(o => <li key={o.id} className="appPageSection__listItem">
|
||||
<div className="appPageSection__listItemRow">
|
||||
<div>{renderHtmlContent(o.name)}</div>
|
||||
<div className="appPageSection__iconActions">
|
||||
<Button icon="pi pi-eye" rounded
|
||||
onClick={() => {
|
||||
window.open(o.fileDetail[0].filePath, '_blank').focus()
|
||||
}}
|
||||
outlined severity="info"
|
||||
aria-label={__('Mostra', 'gepafin')}/>
|
||||
<ArchiveDocument
|
||||
ndg={data.ndg}
|
||||
applicationId={id}
|
||||
fileDescr={renderHtmlContent(o.name)}
|
||||
fileId={o.id}
|
||||
updateFn={(attachId) => {
|
||||
setData((prev) => {
|
||||
const newDocuments = data.contract.beneficiaryDocuments
|
||||
.map(ob => {
|
||||
return ob.id === o.id
|
||||
? {...o, documentAttachmentId: attachId}
|
||||
: o;
|
||||
});
|
||||
return {
|
||||
...prev,
|
||||
contract: {
|
||||
...prev.contract,
|
||||
beneficiaryDocuments: newDocuments
|
||||
}
|
||||
}
|
||||
});
|
||||
}}
|
||||
isSignedDocument={true}
|
||||
docAttachmentId={o.documentAttachmentId}/>
|
||||
</div>
|
||||
</div>
|
||||
</li>)}
|
||||
</ol>
|
||||
: <p>{__('Nessun documento firmato', 'gepafin')}</p>}
|
||||
{APP_HUB_ID !== 't7jh5wfg9QXylNaTZkPoE'
|
||||
? <>
|
||||
<h3>{__('Contratto', 'gepafin')}</h3>
|
||||
{data.contract && data.contract?.beneficiaryDocuments && !isEmpty(data.contract?.beneficiaryDocuments)
|
||||
? <ol className="appPageSection__list">
|
||||
{data.contract?.beneficiaryDocuments.map(o => <li key={o.id}
|
||||
className="appPageSection__listItem">
|
||||
<div className="appPageSection__listItemRow">
|
||||
<div>{renderHtmlContent(o.name)}</div>
|
||||
<div className="appPageSection__iconActions">
|
||||
<Button icon="pi pi-eye" rounded
|
||||
onClick={() => {
|
||||
window.open(o.fileDetail[0].filePath, '_blank').focus()
|
||||
}}
|
||||
outlined severity="info"
|
||||
aria-label={__('Mostra', 'gepafin')}/>
|
||||
<ArchiveDocument
|
||||
ndg={data.ndg}
|
||||
applicationId={id}
|
||||
fileDescr={renderHtmlContent(o.name)}
|
||||
fileId={o.id}
|
||||
updateFn={(attachId) => {
|
||||
setData((prev) => {
|
||||
const newDocuments = data.contract.beneficiaryDocuments
|
||||
.map(ob => {
|
||||
return ob.id === o.id
|
||||
? {
|
||||
...o,
|
||||
documentAttachmentId: attachId
|
||||
}
|
||||
: o;
|
||||
});
|
||||
return {
|
||||
...prev,
|
||||
contract: {
|
||||
...prev.contract,
|
||||
beneficiaryDocuments: newDocuments
|
||||
}
|
||||
}
|
||||
});
|
||||
}}
|
||||
isSignedDocument={true}
|
||||
docAttachmentId={o.documentAttachmentId}/>
|
||||
</div>
|
||||
</div>
|
||||
</li>)}
|
||||
</ol>
|
||||
: <p>{__('Nessun documento firmato', 'gepafin')}</p>}
|
||||
</> : null}
|
||||
<h3>{__('Domanda PDF firmato', 'gepafin')}</h3>
|
||||
{data.signedDocument && !isEmpty(data.signedDocument)
|
||||
? <ol className="appPageSection__list">
|
||||
|
||||
@@ -1436,48 +1436,55 @@ const DomandaEditPreInstructor = () => {
|
||||
|
||||
{data.evaluationVersion === 'V2'
|
||||
? <div className="appPageSection">
|
||||
<h3>{__('Contratto', 'gepafin')}</h3>
|
||||
{data.contract && data.contract?.beneficiaryDocuments && !isEmpty(data.contract?.beneficiaryDocuments)
|
||||
? <ol className="appPageSection__list">
|
||||
{data.contract?.beneficiaryDocuments.map(o => <li key={o.id} className="appPageSection__listItem">
|
||||
<div className="appPageSection__listItemRow">
|
||||
<div>{renderHtmlContent(o.name)}</div>
|
||||
<div className="appPageSection__iconActions">
|
||||
<Button icon="pi pi-eye" rounded
|
||||
onClick={() => {
|
||||
window.open(o.fileDetail[0].filePath, '_blank').focus()
|
||||
}}
|
||||
outlined severity="info"
|
||||
aria-label={__('Mostra', 'gepafin')}/>
|
||||
<ArchiveDocument
|
||||
ndg={data.ndg}
|
||||
applicationId={id}
|
||||
fileDescr={renderHtmlContent(o.name)}
|
||||
fileId={o.id}
|
||||
updateFn={(attachId) => {
|
||||
setData((prev) => {
|
||||
const newDocuments = data.contract.beneficiaryDocuments
|
||||
.map(ob => {
|
||||
return ob.id === o.id
|
||||
? {...o, documentAttachmentId: attachId}
|
||||
: o;
|
||||
{APP_HUB_ID !== 't7jh5wfg9QXylNaTZkPoE'
|
||||
? <>
|
||||
<h3>{__('Contratto', 'gepafin')}</h3>
|
||||
{data.contract && data.contract?.beneficiaryDocuments && !isEmpty(data.contract?.beneficiaryDocuments)
|
||||
? <ol className="appPageSection__list">
|
||||
{data.contract?.beneficiaryDocuments.map(o => <li key={o.id}
|
||||
className="appPageSection__listItem">
|
||||
<div className="appPageSection__listItemRow">
|
||||
<div>{renderHtmlContent(o.name)}</div>
|
||||
<div className="appPageSection__iconActions">
|
||||
<Button icon="pi pi-eye" rounded
|
||||
onClick={() => {
|
||||
window.open(o.fileDetail[0].filePath, '_blank').focus()
|
||||
}}
|
||||
outlined severity="info"
|
||||
aria-label={__('Mostra', 'gepafin')}/>
|
||||
<ArchiveDocument
|
||||
ndg={data.ndg}
|
||||
applicationId={id}
|
||||
fileDescr={renderHtmlContent(o.name)}
|
||||
fileId={o.id}
|
||||
updateFn={(attachId) => {
|
||||
setData((prev) => {
|
||||
const newDocuments = data.contract.beneficiaryDocuments
|
||||
.map(ob => {
|
||||
return ob.id === o.id
|
||||
? {
|
||||
...o,
|
||||
documentAttachmentId: attachId
|
||||
}
|
||||
: o;
|
||||
});
|
||||
return {
|
||||
...prev,
|
||||
contract: {
|
||||
...prev.contract,
|
||||
beneficiaryDocuments: newDocuments
|
||||
}
|
||||
}
|
||||
});
|
||||
return {
|
||||
...prev,
|
||||
contract: {
|
||||
...prev.contract,
|
||||
beneficiaryDocuments: newDocuments
|
||||
}
|
||||
}
|
||||
});
|
||||
}}
|
||||
isSignedDocument={true}
|
||||
docAttachmentId={o.documentAttachmentId}/>
|
||||
</div>
|
||||
</div>
|
||||
</li>)}
|
||||
</ol>
|
||||
: <p>{__('Nessun documento firmato', 'gepafin')}</p>}
|
||||
}}
|
||||
isSignedDocument={true}
|
||||
docAttachmentId={o.documentAttachmentId}/>
|
||||
</div>
|
||||
</div>
|
||||
</li>)}
|
||||
</ol>
|
||||
: <p>{__('Nessun documento firmato', 'gepafin')}</p>}
|
||||
</> : null}
|
||||
<h2>{__('Domanda PDF firmato', 'gepafin')}</h2>
|
||||
{data.signedDocument && !isEmpty(data.signedDocument)
|
||||
? <ol className="appPageSection__list">
|
||||
@@ -1618,48 +1625,55 @@ const DomandaEditPreInstructor = () => {
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h3>{__('Contratto', 'gepafin')}</h3>
|
||||
{data.contract && data.contract?.beneficiaryDocuments && !isEmpty(data.contract?.beneficiaryDocuments)
|
||||
? <ol className="appPageSection__list">
|
||||
{data.contract?.beneficiaryDocuments.map(o => <li key={o.id} className="appPageSection__listItem">
|
||||
<div className="appPageSection__listItemRow">
|
||||
<div>{renderHtmlContent(o.name)}</div>
|
||||
<div className="appPageSection__iconActions">
|
||||
<Button icon="pi pi-eye" rounded
|
||||
onClick={() => {
|
||||
window.open(o.fileDetail[0].filePath, '_blank').focus()
|
||||
}}
|
||||
outlined severity="info"
|
||||
aria-label={__('Mostra', 'gepafin')}/>
|
||||
<ArchiveDocument
|
||||
ndg={data.ndg}
|
||||
applicationId={id}
|
||||
fileDescr={renderHtmlContent(o.name)}
|
||||
fileId={o.id}
|
||||
updateFn={(attachId) => {
|
||||
setData((prev) => {
|
||||
const newDocuments = data.contract.beneficiaryDocuments
|
||||
.map(ob => {
|
||||
return ob.id === o.id
|
||||
? {...o, documentAttachmentId: attachId}
|
||||
: o;
|
||||
});
|
||||
return {
|
||||
...prev,
|
||||
contract: {
|
||||
...prev.contract,
|
||||
beneficiaryDocuments: newDocuments
|
||||
}
|
||||
}
|
||||
});
|
||||
}}
|
||||
isSignedDocument={true}
|
||||
docAttachmentId={o.documentAttachmentId}/>
|
||||
</div>
|
||||
</div>
|
||||
</li>)}
|
||||
</ol>
|
||||
: <p>{__('Nessun documento firmato', 'gepafin')}</p>}
|
||||
{APP_HUB_ID !== 't7jh5wfg9QXylNaTZkPoE'
|
||||
? <>
|
||||
<h3>{__('Contratto', 'gepafin')}</h3>
|
||||
{data.contract && data.contract?.beneficiaryDocuments && !isEmpty(data.contract?.beneficiaryDocuments)
|
||||
? <ol className="appPageSection__list">
|
||||
{data.contract?.beneficiaryDocuments.map(o => <li key={o.id}
|
||||
className="appPageSection__listItem">
|
||||
<div className="appPageSection__listItemRow">
|
||||
<div>{renderHtmlContent(o.name)}</div>
|
||||
<div className="appPageSection__iconActions">
|
||||
<Button icon="pi pi-eye" rounded
|
||||
onClick={() => {
|
||||
window.open(o.fileDetail[0].filePath, '_blank').focus()
|
||||
}}
|
||||
outlined severity="info"
|
||||
aria-label={__('Mostra', 'gepafin')}/>
|
||||
<ArchiveDocument
|
||||
ndg={data.ndg}
|
||||
applicationId={id}
|
||||
fileDescr={renderHtmlContent(o.name)}
|
||||
fileId={o.id}
|
||||
updateFn={(attachId) => {
|
||||
setData((prev) => {
|
||||
const newDocuments = data.contract.beneficiaryDocuments
|
||||
.map(ob => {
|
||||
return ob.id === o.id
|
||||
? {
|
||||
...o,
|
||||
documentAttachmentId: attachId
|
||||
}
|
||||
: o;
|
||||
});
|
||||
return {
|
||||
...prev,
|
||||
contract: {
|
||||
...prev.contract,
|
||||
beneficiaryDocuments: newDocuments
|
||||
}
|
||||
}
|
||||
});
|
||||
}}
|
||||
isSignedDocument={true}
|
||||
docAttachmentId={o.documentAttachmentId}/>
|
||||
</div>
|
||||
</div>
|
||||
</li>)}
|
||||
</ol>
|
||||
: <p>{__('Nessun documento firmato', 'gepafin')}</p>}
|
||||
</> : null}
|
||||
<h3>{__('Domanda PDF firmato', 'gepafin')}</h3>
|
||||
{data.signedDocument && !isEmpty(data.signedDocument)
|
||||
? <ol className="appPageSection__list">
|
||||
|
||||
Reference in New Issue
Block a user