diff --git a/fe-piattaforma/src/components/DetailsRow/detailsRow.tsx b/fe-piattaforma/src/components/DetailsRow/detailsRow.tsx
index 7563ff5ab..e5451366e 100644
--- a/fe-piattaforma/src/components/DetailsRow/detailsRow.tsx
+++ b/fe-piattaforma/src/components/DetailsRow/detailsRow.tsx
@@ -16,8 +16,8 @@ interface DetailsRowI {
const statusCases = {
SENT: 'INVIATO',
- NOT_FILLED: 'NON COMPILATO',
- FILLED_OUT: 'COMPILATO',
+ NOT_FILLED: 'NON COMPILATA',
+ FILLED_OUT: 'COMPILATA',
NOT_SENT: 'NON INVIATO',
};
diff --git a/fe-piattaforma/src/components/StatusChip/statusChip.tsx b/fe-piattaforma/src/components/StatusChip/statusChip.tsx
index d2110baf2..fc22949a3 100644
--- a/fe-piattaforma/src/components/StatusChip/statusChip.tsx
+++ b/fe-piattaforma/src/components/StatusChip/statusChip.tsx
@@ -4,6 +4,7 @@ import React, { memo } from 'react';
import { selectDevice } from '../../redux/features/app/appSlice';
import { useAppSelector } from '../../redux/hooks';
import './statusChip.scss';
+
interface StatusChipI {
status?: string | undefined;
noTooltip?: boolean;
@@ -19,8 +20,8 @@ const statusTypes = {
ACTIVE: 'ATTIVO',
NOT_SENT: 'NON INVIATO',
SENT: 'INVIATO',
- FILLED_OUT: 'COMPILATO',
- NOT_FILLED_OUT: 'NON COMPILATO',
+ FILLED_OUT: 'COMPILATA',
+ NOT_FILLED_OUT: 'NON COMPILATA',
TERMINATED: 'TERMINATO',
ACTIVABLE: 'ATTIVABILE',
};
diff --git a/fe-piattaforma/src/pages/administrator/AdministrativeArea/Entities/Services/citizensList.tsx b/fe-piattaforma/src/pages/administrator/AdministrativeArea/Entities/Services/citizensList.tsx
index 72fe3456d..1145095f9 100644
--- a/fe-piattaforma/src/pages/administrator/AdministrativeArea/Entities/Services/citizensList.tsx
+++ b/fe-piattaforma/src/pages/administrator/AdministrativeArea/Entities/Services/citizensList.tsx
@@ -311,7 +311,7 @@ const CitizensList: React.FC = () => {
citizen?.dataUltimoAggiornamento
).format('DD-MM-YYYY HH:mm'),
}}
- rowInfoType='questionario'
+ rowInfoType='Rilevazione esperienza'
idQuestionario={citizen?.idQuestionario || ''}
/>
))}
diff --git a/fe-piattaforma/src/pages/administrator/AdministrativeArea/Entities/Surveys/printSurvey/printSurvey.tsx b/fe-piattaforma/src/pages/administrator/AdministrativeArea/Entities/Surveys/printSurvey/printSurvey.tsx
index aa6fd39a3..733af4ca7 100644
--- a/fe-piattaforma/src/pages/administrator/AdministrativeArea/Entities/Surveys/printSurvey/printSurvey.tsx
+++ b/fe-piattaforma/src/pages/administrator/AdministrativeArea/Entities/Surveys/printSurvey/printSurvey.tsx
@@ -1,5 +1,5 @@
import clsx from 'clsx';
-import React, { useEffect } from 'react';
+import React, { useEffect, useState } from 'react';
import { useDispatch } from 'react-redux';
import { useParams } from 'react-router-dom';
import {
@@ -41,11 +41,24 @@ const PrintSurvey: React.FC = () => {
const sections = useAppSelector(selectPrintSurveySections);
const serviceDetails = useAppSelector(selectServices)?.detail;
const classQuestion = 'd-inline-block mr-3 mb-3 question';
-
+ const [dataServizioFormattata, setDataServizioFormattata] = useState('');
useEffect(() => {
if (serviceId) dispatch(GetServicesDetail(serviceId));
if (idQuestionario) dispatch(GetSurveyInfo(idQuestionario, true));
- }, [serviceId, idQuestionario]);
+ }, [serviceId, idQuestionario, dispatch]);
+
+ useEffect(() => {
+ if (serviceDetails?.dettaglioServizio?.dataServizio) {
+ const timestampDataServizio =
+ serviceDetails?.dettaglioServizio?.dataServizio;
+ const dataServizio = new Date(timestampDataServizio);
+ const dataServizioFormattata =
+ timestampDataServizio && !isNaN(dataServizio.getTime())
+ ? dataServizio.toLocaleDateString('it-IT')
+ : 'Data non disponibile';
+ setDataServizioFormattata(dataServizioFormattata);
+ }
+ }, [serviceDetails]);
const getAnswerType = (
question: PrintSurveyQuestionI,
@@ -60,8 +73,8 @@ const PrintSurvey: React.FC = () => {
);
@@ -92,7 +105,9 @@ const PrintSurvey: React.FC = () => {
}
case 'multiple':
case 'string':
- if (question?.enum?.length) {
+ if (question.enum && question.id === '9') {
+ return ;
+ } else if (question.enum) {
return ;
} else {
return ;
@@ -104,7 +119,6 @@ const PrintSurvey: React.FC = () => {
return ;
}
};
-
return (
@@ -127,7 +141,7 @@ const PrintSurvey: React.FC = () => {
serviceDetails?.progettiAssociatiAlServizio?.[0]?.nomeBreve ||
'Progetto',
},
- // subTitle:
+ subTitle: dataServizioFormattata,
// 'Facilitatore: ' +
// serviceDetails?.dettaglioServizio?.nominativoFacilitatore,
}}
@@ -135,19 +149,22 @@ const PrintSurvey: React.FC = () => {
noTitleEllipsis
/>
- {(sections || []).map((section: SurveySectionI, i: number) => (
-
-
- {section?.sectionTitle}
-
- {section?.questions &&
- Object.keys(section?.questions).map((key) => (
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
- // @ts-ignore
- <>{getAnswerType(section?.questions?.[key], section)}>
- ))}
-
- ))}
+ {(sections || []).map(
+ (section: SurveySectionI, i: number) =>
+ (i === 0 || i === 3) && (
+
+
+ {section?.sectionTitle}
+
+ {section?.questions &&
+ Object.keys(section?.questions).map((key) => (
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
+ // @ts-ignore
+ <>{getAnswerType(section?.questions?.[key], section)}>
+ ))}
+
+ )
+ )}
);
diff --git a/fe-piattaforma/src/pages/administrator/CitizensArea/Entities/Citizens/CitizenServices.tsx b/fe-piattaforma/src/pages/administrator/CitizensArea/Entities/Citizens/CitizenServices.tsx
index 8179393ca..074cc66c2 100644
--- a/fe-piattaforma/src/pages/administrator/CitizensArea/Entities/Citizens/CitizenServices.tsx
+++ b/fe-piattaforma/src/pages/administrator/CitizensArea/Entities/Citizens/CitizenServices.tsx
@@ -47,7 +47,7 @@ const CitizenServices: React.FC<{
status={td.statoQuestionario}
rowTableId={td.idServizio}
/>
- {td.statoQuestionario === 'COMPILATO' && td.associatoAUtente && (
+ {td.statoQuestionario === 'COMPILATA' && td.associatoAUtente && (
<>