@@ -272,59 +351,85 @@ const DomandaBeneficiario = () => {
{data.id
?
-
{__('Dettagli Richiesta', 'gepafin')}
-
{__('Documenti Richiesti', 'gepafin')}
-
+ {__('Dettagli Richiesta', 'gepafin')}
+ {__('Note e spiegazioni', 'gepafin')}
+
+ {renderHtmlContent(data.note)}
+
+
: null}
+
+ {data.id
+ ?
+
{__('Documenti Richiesti', 'gepafin')}
+
+ {/*
{data.formFields
? data.formFields.map((o, i) => -
{o.label}
) : null}
-
-
: null}
+ */}
+
: null}
{data.id
?
-
{__('Note e spiegazioni', 'gepafin')}
-
- {renderHtmlContent(data.note)}
-
-
: null}
+
{__('Comunicazioni', 'gepafin')}
+
+
+
+ | {__('Data', 'gepafin')} |
+ {__('Comunicazione', 'gepafin')} |
+
+
+
+ {!isNil(comms) && !isEmpty(comms)
+ ? comms.map((o, i) =>
+ |
+ {getDateFromISOstring(o.commentedDate)}
+ |
+
+ {o.title}
+ {o.comment}
+ |
+
)
+ :
+ | - |
+ - |
+
}
+
+
- {data.id
- ?
-
{__('Comunicazioni', 'gepafin')}
-
-
-
- | {__('Data', 'gepafin')} |
- {__('Comunicazione', 'gepafin')} |
-
-
-
- {!isNil(comms) && !isEmpty(comms)
- ? comms.map((o, i) =>
- |
- {getDateFromISOstring(o.commentedDate)}
- |
-
- {o.title}
- {o.comment}
- |
-
)
- :
- | - |
- - |
-
}
-
-
-
-
: null}
diff --git a/src/pages/DomandaEditPreInstructor/index.js b/src/pages/DomandaEditPreInstructor/index.js
index 82d1dd3..5ca8898 100644
--- a/src/pages/DomandaEditPreInstructor/index.js
+++ b/src/pages/DomandaEditPreInstructor/index.js
@@ -102,7 +102,7 @@ const DomandaEditPreInstructor = () => {
const updateEvaluationValue = (value, path, maxValue) => {
let finalValue = value;
- if (maxValue) {
+ if (maxValue || maxValue === 0) {
finalValue = value > maxValue ? maxValue : value;
}
@@ -258,6 +258,10 @@ const DomandaEditPreInstructor = () => {
const errGetAmendmentsCallback = () => {
}
+ const shouldDisableField = (fieldName) => {
+ return !['EVALUATION'].includes(data.status) || ['ADMISSIBLE'].includes(data.status) && fieldName !== 'criteria'
+ }
+
useEffect(() => {
const maxScore = pathOr(0, ['minScore'], data);
const criteria = pathOr([], ['criteria'], data);
@@ -329,9 +333,7 @@ const DomandaEditPreInstructor = () => {
-
{__('Punteggi di valutazione', 'gepafin')}
@@ -350,7 +352,7 @@ const DomandaEditPreInstructor = () => {
{
onClick={() => displayCriterionData(o.id)}
aria-label={__('Mostra', 'gepafin')}/> : null}
|