- saving progress - amendment page works for both instructor and beneficiary;
This commit is contained in:
@@ -605,34 +605,34 @@ const DomandaEditPreInstructor = () => {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/*<div className="appPageSection">
|
||||
<div className="appPageSection">
|
||||
<h2>{__('Documenti di soccorso', 'gepafin')}</h2>
|
||||
{data.amendmentDetails
|
||||
.filter(o => o.amendmentDocuments && !isEmpty(o.amendmentDocuments)
|
||||
|| o.formFieldDocuments && !isEmpty(o.formFieldDocuments))
|
||||
.map(o => {
|
||||
const aDocs = pathOr([],['amendmentDocuments'], o)
|
||||
.map(o => ({
|
||||
id: o.fieldId,
|
||||
label: o.nameValue,
|
||||
fileDetail: o.fileValue,
|
||||
valid: o.valid
|
||||
}));
|
||||
const aDocs = pathOr([],['amendmentDocuments'], o);
|
||||
const aNotes = pathOr('',['amendmentNotes'], o);
|
||||
const aValid = pathOr(null,['valid'], o);
|
||||
const aDocsObj = {
|
||||
id: o.amendmentId,
|
||||
label: aNotes,
|
||||
fileDetail: aDocs,
|
||||
valid: aValid
|
||||
}
|
||||
const fDocs = pathOr([],['formFieldDocuments'], o);
|
||||
|
||||
return {
|
||||
id: o.id,
|
||||
files: [...aDocs, ...fDocs]
|
||||
files: [aDocsObj, ...fDocs]
|
||||
}
|
||||
})
|
||||
.map(o => <ListOfFiles
|
||||
.map((o, i) => <ListOfFiles
|
||||
key={`list_${i}`}
|
||||
files={o.files}
|
||||
updateFn={updateEvaluationValue}
|
||||
shouldDisableFieldFn={shouldDisableField}
|
||||
name="files"
|
||||
name="amendmentDetails"
|
||||
ndg={data.ndg}
|
||||
applicationId={id}/>)}
|
||||
</div>*/}
|
||||
</div>
|
||||
|
||||
<div className="appPageSection">
|
||||
<h2>{__('Punteggi di valutazione', 'gepafin')}</h2>
|
||||
|
||||
Reference in New Issue
Block a user