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