diff --git a/src/pages/DomandaEditInstructorManager/index.js b/src/pages/DomandaEditInstructorManager/index.js
index 34e5e81..081e241 100644
--- a/src/pages/DomandaEditInstructorManager/index.js
+++ b/src/pages/DomandaEditInstructorManager/index.js
@@ -60,6 +60,7 @@ import { SplitButton } from 'primereact/splitbutton';
import { FileUpload } from 'primereact/fileupload';
import { defaultMaxFileSize, mimeTypes, rejectionReasons } from '../../configData';
import getFormatedFileSizeText from '../../helpers/getFormatedFileSizeText';
+import ArchiveDocument from '../DomandaEditPreInstructor/components/ArchiveDocument';
const APP_EVALUATION_FLOW_ID = process.env.REACT_APP_EVALUATION_FLOW_ID;
const APP_HUB_ID = process.env.REACT_APP_HUB_ID;
@@ -225,7 +226,7 @@ const DomandaEditInstructorManager = () => {
const getCallback = (resp) => {
if (resp.status === 'SUCCESS') {
setData(getFormattedData(resp.data));
- setFinalDialogData((prev) => ({...prev, motivation: resp.data.motivation}));
+ setFinalDialogData((prev) => ({ ...prev, motivation: resp.data.motivation }));
updateFlagsForSoccorso(resp.data);
if (resp.data.evaluationVersion === 'V2') {
@@ -1167,7 +1168,7 @@ const DomandaEditInstructorManager = () => {
?
{__('Motivazione:', 'gepafin')}
-
+
{renderHtmlContent(data.motivation)}
{rejectionFiles()}
@@ -1329,6 +1330,31 @@ const DomandaEditInstructorManager = () => {
{data.evaluationVersion === 'V2'
?
+
{__('Domanda PDF firmato', 'gepafin')}
+ {data.signedDocument && !isEmpty(data.signedDocument)
+ ?
+ -
+
+
{renderHtmlContent(data.signedDocument.fileName)}
+
+
{
+ setData((prev) => ({
+ ...prev,
+ documentAttachmentId: attachId
+ }));
+ }}
+ isSignedDocument={true}
+ docAttachmentId={data.signedDocument.documentAttachmentId}/>
+
+
+
+
+ :
{__('Nessun documento firmato', 'gepafin')}
}
{__('Documenti allegati', 'gepafin')}
{!isEmpty(data.files)
?
{
+
{__('Domanda PDF firmato', 'gepafin')}
+ {data.signedDocument && !isEmpty(data.signedDocument)
+ ?
+ -
+
+
{renderHtmlContent(data.signedDocument.fileName)}
+
+
{
+ setData((prev) => ({
+ ...prev,
+ documentAttachmentId: attachId
+ }));
+ }}
+ isSignedDocument={true}
+ docAttachmentId={data.signedDocument.documentAttachmentId}/>
+
+
+
+
+ :
{__('Nessun documento firmato', 'gepafin')}
}
{__('Documenti allegati', 'gepafin')}
{!isEmpty(data.files)
?
{
: null}
{operationType === 'reject' && APP_HUB_ID !== 't7jh5wfg9QXylNaTZkPoE'
?
-
: null}
-
+
{__('Motivazione', 'gepafin')}
@@ -1666,13 +1719,19 @@ const DomandaEditInstructorManager = () => {
icon: 'pi pi-plus'
}}
itemTemplate={(file, props) => {
- return(
+ return (
-
+
{file.name}
-
{getFormatedFileSizeText(file.size)}
+
{getFormatedFileSizeText(file.size)}