From 34419733de8ce64be737b2f4d784da7661ce38e4 Mon Sep 17 00:00:00 2001 From: rdbsolutions Date: Thu, 16 Jan 2025 14:14:53 +0000 Subject: [PATCH] enf defect 3,5,8,2,6 --- .../representationProgress_enforcement.js | 2 +- ...resentationLPAQuestionnaire_enforcement.js | 22 +++++++++++++------ .../representationLPAQuestionnaire_s78.js | 2 +- components/pdftemplates/enforcement_pdf.js | 4 +--- pages/api/file/generatepdf.js | 20 ++++++++--------- 5 files changed, 28 insertions(+), 22 deletions(-) diff --git a/components/case/representation/representationProgress/representationProgress_enforcement.js b/components/case/representation/representationProgress/representationProgress_enforcement.js index 6d5c7dd1..cd7d3221 100644 --- a/components/case/representation/representationProgress/representationProgress_enforcement.js +++ b/components/case/representation/representationProgress/representationProgress_enforcement.js @@ -455,7 +455,7 @@ const RepresentationProgress_enforcement = (props) => { > {t( - "myrepresentations:enf-section-heading-seven" + "myrepresentations:s78-section-heading-five-sub" )} diff --git a/components/case/representation/representationQuestionnaires/representationLPAQuestionnaire_enforcement.js b/components/case/representation/representationQuestionnaires/representationLPAQuestionnaire_enforcement.js index b8d4d1a1..097d44be 100644 --- a/components/case/representation/representationQuestionnaires/representationLPAQuestionnaire_enforcement.js +++ b/components/case/representation/representationQuestionnaires/representationLPAQuestionnaire_enforcement.js @@ -126,9 +126,10 @@ let Enforcement_Questionnaire = (props) => {
{ {t("myrepresentations:enf-section-heading-six")}
- 31 .{t("myrepresentations:enf-section-question-31")} + 31. {t("myrepresentations:enf-section-question-31")}
@@ -946,8 +947,11 @@ let Enforcement_Questionnaire = (props) => { aria-describedby="commentBox-hint" >

- {t("myrepresentations:enf-section-heading-seven")} + {t("myrepresentations:s78-section-heading-five-sub")}

+

+ {t("myrepresentations:s78-section-heading-five")} +

{ conditionalLabel={t( "myrepresentations:enf-section-question-37-hint" )} + hint={ + "Regulation 45 of the Town and Country Planning (Environmental Impact Assessment) (Wales) Regulations 2017 (as amended)." + } optionSelect={t( "myrepresentations:questionnaire-yes" )} @@ -1244,6 +1251,7 @@ let Enforcement_Questionnaire = (props) => { label={t( "myrepresentations:enf-section-question-onbehalf" )} + disabled={true} validate={[required]} />
@@ -1253,9 +1261,9 @@ let Enforcement_Questionnaire = (props) => { label={t("myrepresentations:enf-section-question-date")} component={RenderDatePicker} validate={[required]} - errorMsg={t("newappeal:select-a-date-label")} + errorMsg={t("myrepresentations:select-a-date-label")} dateStart="0" - dateEnd="1-y" + dateEnd="0" /> )} diff --git a/components/case/representation/representationQuestionnaires/representationLPAQuestionnaire_s78.js b/components/case/representation/representationQuestionnaires/representationLPAQuestionnaire_s78.js index cda5716f..0c62a866 100644 --- a/components/case/representation/representationQuestionnaires/representationLPAQuestionnaire_s78.js +++ b/components/case/representation/representationQuestionnaires/representationLPAQuestionnaire_s78.js @@ -1079,7 +1079,7 @@ let S78_Questionnaire = (props) => { validate={[required]} dateStart="0" dateEnd="0" - errorMsg={t("myrepresentations:is-required-label")} + errorMsg={t("myrepresentations:select-a-date-label")} locale={locale} /> diff --git a/components/pdftemplates/enforcement_pdf.js b/components/pdftemplates/enforcement_pdf.js index fa7898a9..09111076 100644 --- a/components/pdftemplates/enforcement_pdf.js +++ b/components/pdftemplates/enforcement_pdf.js @@ -726,7 +726,6 @@ export const EnforcementQuestionnaire_pdf = ({ docProps }) => { { { The LPA’s Environmental Impact Assessment Screening Opinion and - ‘Regulation 45 Notice’*, if applicable? + ‘Regulation 45 Notice’, if applicable? {values.lpaEIAOS} diff --git a/pages/api/file/generatepdf.js b/pages/api/file/generatepdf.js index 85bcbfe0..10ae541c 100644 --- a/pages/api/file/generatepdf.js +++ b/pages/api/file/generatepdf.js @@ -153,16 +153,16 @@ export default async function handler(req, res) { ? cleanFilesList(reqBodyobj) : reqBodyobj; - console.log( - "//////////////////////\nreqBodyobj" + - req + - "\n//////////////////////\n" - ); - console.log( - "//////////////////////\nreqBodyobj" + - JSON.stringify(req.body) + - "\n//////////////////////\n" - ); + // console.log( + // "//////////////////////\nreqBodyobj" + + // req + + // "\n//////////////////////\n" + // ); + // console.log( + // "//////////////////////\nreqBodyobj" + + // JSON.stringify(req.body) + + // "\n//////////////////////\n" + // ); var containerID = reqBodyobj.containerID; var casefolderID = reqBodyobj.casefolderID;