- added required files for special amendment;
- fixed typo;
This commit is contained in:
@@ -33,10 +33,10 @@ const getBandoLabel = (status) => {
|
||||
return __('Ammisibile', 'gepafin');
|
||||
|
||||
case 'TECHNICAL_EVALUATION':
|
||||
return __('Valutazione technico-finanziaria', 'gepafin');
|
||||
return __('Valutazione tecnico-finanziaria', 'gepafin');
|
||||
|
||||
case 'AWAITING_TECHNICAL_EVALUATION':
|
||||
return __('Post valutazione technico-finanziaria', 'gepafin');
|
||||
return __('Post valutazione tecnico-finanziaria', 'gepafin');
|
||||
|
||||
case 'DUE':
|
||||
return __('In scadenza', 'gepafin');
|
||||
|
||||
@@ -290,7 +290,7 @@ const DomandaEditInstructorManager = () => {
|
||||
};
|
||||
|
||||
const header = renderHeader();
|
||||
const technicalEvalItems = [
|
||||
const tecnicalEvalItems = [
|
||||
{
|
||||
label: __('Nessuna garanzia', 'gepafin'),
|
||||
icon: 'pi pi-pen-to-square',
|
||||
@@ -1103,7 +1103,7 @@ const DomandaEditInstructorManager = () => {
|
||||
? __('Punteggio sufficiente per passaggio alla valutazione tecnica ed economico finanziaria', 'gepafin')
|
||||
: __('Punteggio non sufficiente per passaggio alla valutazione tecnica ed economico finanziaria', 'gepafin')}
|
||||
severity={isAdmissible ? 'success' : 'warning'}
|
||||
model={technicalEvalItems}/> : null}
|
||||
model={tecnicalEvalItems}/> : null}
|
||||
<Button
|
||||
type="button"
|
||||
disabled={!data.id || !['TECHNICAL_EVALUATION'].includes(data.applicationStatus) || evaluationBlockedForUser(data)}
|
||||
|
||||
@@ -290,7 +290,7 @@ const DomandaEditPreInstructor = () => {
|
||||
};
|
||||
|
||||
const header = renderHeader();
|
||||
const technicalEvalItems = [
|
||||
const tecnicalEvalItems = [
|
||||
{
|
||||
label: __('Nessuna garanzia', 'gepafin'),
|
||||
icon: 'pi pi-pen-to-square',
|
||||
@@ -1103,7 +1103,7 @@ const DomandaEditPreInstructor = () => {
|
||||
? __('Punteggio sufficiente per passaggio alla valutazione tecnica ed economico finanziaria', 'gepafin')
|
||||
: __('Punteggio non sufficiente per passaggio alla valutazione tecnica ed economico finanziaria', 'gepafin')}
|
||||
severity={isAdmissible ? 'success' : 'warning'}
|
||||
model={technicalEvalItems}/> : null}
|
||||
model={tecnicalEvalItems}/> : null}
|
||||
<Button
|
||||
type="button"
|
||||
disabled={!data.id || !['TECHNICAL_EVALUATION'].includes(data.applicationStatus) || evaluationBlockedForUser(data)}
|
||||
|
||||
@@ -56,7 +56,7 @@ const SoccorsoEditBeneficiario = () => {
|
||||
const goToArchivePage = () => {
|
||||
navigate(`/domande`);
|
||||
}
|
||||
|
||||
console.log('data', data.amendmentType)
|
||||
useEffect(() => {
|
||||
const parsedId = parseInt(id);
|
||||
const entityId = !isNaN(parsedId) ? parsedId : 0;
|
||||
@@ -115,6 +115,15 @@ const SoccorsoEditBeneficiario = () => {
|
||||
return data;
|
||||
};
|
||||
|
||||
const isSpecialAmendmentValidationFailed = () => {
|
||||
if (data.amendmentType === 'SPECIAL') {
|
||||
const formValues = getValues();
|
||||
const amendmentDocuments = formValues.amendmentDocuments;
|
||||
return !amendmentDocuments || amendmentDocuments.length === 0;
|
||||
}
|
||||
return false;
|
||||
};
|
||||
|
||||
const onSubmit = () => {
|
||||
};
|
||||
|
||||
@@ -413,6 +422,9 @@ const SoccorsoEditBeneficiario = () => {
|
||||
errors={errors}
|
||||
defaultValue={formInitialData.amendmentDocuments ? formInitialData.amendmentDocuments : []}
|
||||
accept={[]}
|
||||
config={{
|
||||
required: true
|
||||
}}
|
||||
source="amendment"
|
||||
sourceId={data.id}
|
||||
multiple={true}
|
||||
@@ -432,7 +444,7 @@ const SoccorsoEditBeneficiario = () => {
|
||||
{data.id
|
||||
? <Button
|
||||
type="button"
|
||||
disabled={isAsyncRequest || data.status !== 'AWAITING'}
|
||||
disabled={isAsyncRequest || data.status !== 'AWAITING' || isSpecialAmendmentValidationFailed()}
|
||||
onClick={doUpdateAmendmentAndCompleteTask}
|
||||
label={__('Invia documenti', 'gepafin')}
|
||||
icon="pi pi-save" iconPos="right"/> : null}
|
||||
|
||||
Reference in New Issue
Block a user