@@ -928,7 +945,7 @@ let Enforcement_Questionnaire = (props) => {
component={RenderLPACondtionalRadioList}
validate={[required]}
legend={
- "32. " +
+ "33. " +
t("myrepresentations:enf-section-question-32")
}
conditionalLabel={t(
@@ -969,7 +986,7 @@ let Enforcement_Questionnaire = (props) => {
component={RenderLPACondtionalRadioList}
validate={[required]}
legend={
- "33. " +
+ "34. " +
t("myrepresentations:enf-section-question-33")
}
conditionalLabel={t(
@@ -996,7 +1013,7 @@ let Enforcement_Questionnaire = (props) => {
component={RenderLPACondtionalRadioList}
validate={[required]}
legend={
- "34. " +
+ "35. " +
t("myrepresentations:enf-section-question-34")
}
conditionalLabel={t(
@@ -1023,7 +1040,7 @@ let Enforcement_Questionnaire = (props) => {
component={RenderLPACondtionalRadioList}
validate={[required]}
legend={
- "35. " +
+ "36. " +
t("myrepresentations:enf-section-question-35")
}
conditionalLabel={t(
@@ -1050,7 +1067,7 @@ let Enforcement_Questionnaire = (props) => {
component={RenderLPACondtionalRadioList}
validate={[required]}
legend={
- "36. " +
+ "37. " +
t("myrepresentations:enf-section-question-36")
}
conditionalLabel={t(
@@ -1077,7 +1094,7 @@ let Enforcement_Questionnaire = (props) => {
component={RenderLPACondtionalRadioList}
validate={[required]}
legend={
- "37. " +
+ "38. " +
t("myrepresentations:enf-section-question-37")
}
conditionalLabel={t(
@@ -1107,7 +1124,7 @@ let Enforcement_Questionnaire = (props) => {
component={RenderLPACondtionalRadioList}
validate={[required]}
legend={
- "38. " +
+ "39. " +
t("myrepresentations:enf-section-question-38")
}
conditionalLabel={t(
@@ -1134,7 +1151,7 @@ let Enforcement_Questionnaire = (props) => {
component={RenderLPACondtionalRadioList}
validate={[required]}
legend={
- "39. " +
+ "40. " +
t("myrepresentations:enf-section-question-39")
}
conditionalLabel={t(
@@ -1161,7 +1178,7 @@ let Enforcement_Questionnaire = (props) => {
component={RenderLPACondtionalRadioList}
validate={[required]}
legend={
- "40. " +
+ "41. " +
t("myrepresentations:enf-section-question-40")
}
conditionalLabel={t(
diff --git a/components/case/representation/representationQuestionnaires/representationLPAQuestionnaire_s78.js b/components/case/representation/representationQuestionnaires/representationLPAQuestionnaire_s78.js
index c60b81f8..3eaf275d 100644
--- a/components/case/representation/representationQuestionnaires/representationLPAQuestionnaire_s78.js
+++ b/components/case/representation/representationQuestionnaires/representationLPAQuestionnaire_s78.js
@@ -115,9 +115,14 @@ let S78_Questionnaire = (props) => {
className="govuk-fieldset"
aria-describedby="commentBox-hint"
>
+
+ {t("myrepresentations:questionnaire-hint-para")}
+
1. {t("myrepresentations:s78-section-question-1")}:{" "}
diff --git a/components/case/representation/representationQuestionnairesCheck/representationLPAQuestionnaireCheck_enforcement.js b/components/case/representation/representationQuestionnairesCheck/representationLPAQuestionnaireCheck_enforcement.js
index 98ef2fd1..6236ba0c 100644
--- a/components/case/representation/representationQuestionnairesCheck/representationLPAQuestionnaireCheck_enforcement.js
+++ b/components/case/representation/representationQuestionnairesCheck/representationLPAQuestionnaireCheck_enforcement.js
@@ -23,55 +23,49 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
{t("myrepresentations:enf-section-heading-one")}
- {_.has(repFormData, "procedureType") && (
- <>
+
+ <>
+
+ {repFormData.representationOnBehalfOf == "Yes" && (
- {repFormData.representationOnBehalfOf == "Yes" && (
-
- )}
- >
- )}
- {_.has(repFormData, "enterToView") && (
- <>
+
+
+ )}
+ >
+
+ <>
+
+ >
+
+ <>
+
+ {repFormData.enterNeighbouringLandToViewSite == "Yes" && (
- >
- )}
- {_.has(repFormData, "enterNeighbouringLandToViewSite") && (
- <>
-
- {repFormData.enterNeighbouringLandToViewSite ==
- "Yes" && (
-
- )}
- >
- )}
- {_.has(repFormData, "enterNeighbouringLandAccessRequired") && (
- <>
-
- {repFormData.enterNeighbouringLandAccessRequired !=
- "Yes" && (
+ )}
+ >
+
+ <>
+
+ {repFormData.enterNeighbouringLandAccessRequired != "Yes" &&
+ repFormData.enforcementNoticePlan != null && (
{t(
@@ -273,1721 +255,17 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
)}
- >
- )}
- {_.has(repFormData, "healthAndSafetyIssues") && (
- <>
-
- {repFormData.healthAndSafetyIssues == "Yes" && (
-
- )}
- >
- )}
- {_.has(repFormData, "LPAcontactDetails") && (
- <>
-
- >
- )}
- >
- {/* Section 2 Deemed Application Fee */}
- <>
-
- {t("myrepresentations:enf-section-heading-two")}
-
- {_.has(repFormData, "feePaid") && (
- <>
-
- >
- )}
- {_.has(repFormData, "feeExempt") && (
- <>
-
- >
- )}
- >
- {/* Section 3 Planning History and Current Status */}
- <>
-
- {t("myrepresentations:enf-section-heading-three")}
-
- {_.has(repFormData, "previousGrantedCerts") && (
- <>
-
- {repFormData.previousGrantedCerts == "Yes" && (
-
- )}
- >
- )}
- {_.has(repFormData, "stopNoticeServed") && (
- <>
-
- {repFormData.stopNoticeServed == "Yes" && (
-
- )}
- >
- )}
- {_.has(repFormData, "relatedCases") && (
- <>
-
- {repFormData.relatedCases == "Yes" && (
-
- )}
- >
- )}
- {_.has(repFormData, "previousEnforcement") && (
- <>
-
- {repFormData.previousEnforcement == "Yes" && (
-
- )}
- >
- )}
- {_.has(repFormData, "subjectArticle4") && (
- <>
-
- {repFormData.subjectArticle4 == "Yes" && (
-
- )}
- >
- )}
- {_.has(repFormData, "previousPDRRestriction") && (
- <>
-
- {repFormData.previousPDRRestriction == "Yes" && (
-
- )}
- >
- )}
- >
- {/* Section 4 Supporting Documents */}
- <>
-
- {t("myrepresentations:enf-section-heading-four")}
-
- {_.has(repFormData, "LPAldpAndMap") && (
- <>
-
- >
- )}
- {_.has(repFormData, "LPAlocalGuidance") && (
- <>
-
- >
- )}
- {_.has(repFormData, "LPAintentionToSubmitFullStatement") && (
- <>
-
- >
- )}
- >
- {/* Section 5 */}
- <>
-
- {t("myrepresentations:enf-section-heading-five")}
-
- {_.has(repFormData, "AONB") && (
- <>
-
- >
- )}
- {_.has(repFormData, "ROW") && (
- <>
-
- {repFormData.ROW == "Yes" && (
-
- )}
- >
- )}
- {_.has(repFormData, "conservationArea") && (
- <>
-
- {repFormData.conservationArea == "Yes" && (
-
- )}
- >
- )}
- {_.has(repFormData, "affectListedBuilding") && (
- <>
-
- {repFormData.affectListedBuilding == "Yes" && (
-
- )}
- >
- )}
- {_.has(repFormData, "TPO") && (
- <>
-
- {repFormData.TPO == "Yes" && (
-
- )}
- >
- )}
- {_.has(repFormData, "natureConservationSite") && (
- <>
-
- {repFormData.natureConservationSite == "Yes" && (
-
- )}
- >
- )}
- {_.has(repFormData, "protectedSpecies") && (
- <>
-
- {repFormData.protectedSpecies == "Yes" && (
-
- )}
- >
- )}
- {_.has(repFormData, "gypsyTravellerInvolvment") && (
- <>
-
- >
- )}
- {_.has(repFormData, "floodingIssue") && (
- <>
-
- {repFormData.floodingIssue == "Yes" && (
-
- )}
- >
- )}
- {_.has(repFormData, "governmentDepartmentComments") && (
- <>
-
- {repFormData.governmentDepartmentComments == "Yes" && (
-
- )}
- >
- )}
- >
-
- {/* Section 6 */}
- <>
-
- {t("myrepresentations:enf-section-heading-six")}
-
- {_.has(
- repFormData,
- "developmentNotBeginLaterThanFiveYears"
- ) && (
- <>
-
- >
- )}
-
- {_.has(repFormData, "developmentCarriedOutInAccordance") && (
- <>
-
- {repFormData.developmentCarriedOutInAccordance ==
- "Yes" && (
-
- )}
- >
- )}
- {_.has(repFormData, "developmentNotTakePlaceBiodiversity") && (
- <>
-
- >
- )}
-
- {_.has(repFormData, "developmentNotTakePlaceBroadband") && (
- <>
-
- {repFormData.developmentNotTakePlaceBroadband ==
- "Yes" && (
-
- )}
- >
- )}
- {_.has(repFormData, "developmentAnyOtherConditions") && (
- <>
-
- {repFormData.developmentAnyOtherConditions == "Yes" && (
-
- )}
- >
- )}
- >
-
- {/* Section 7 Before sending, have you attached or provided a web link to: */}
-
- {t("myrepresentations:s78-section-heading-five-sub")}
-
- {_.has(repFormData, "copyOfEnforcementNotice") && (
<>
- {"33. " +
- t("myrepresentations:enf-section-question-33")}
+ {"9. " +
+ t("myrepresentations:enf-section-question-8")}
- {repFormData.copyOfEnforcementNotice}
+ {repFormData.healthAndSafetyIssues}
@@ -1996,7 +274,7 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
href="#"
onClick={() => {
setRepresentationSubmit(false);
- setShowQuestionnaireSection(7);
+ setShowQuestionnaireSection(1);
}}
>
{t("common:change-link-label")}
@@ -2009,7 +287,7 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
- {repFormData.copyOfEnforcementNotice == "No" && (
+ {repFormData.healthAndSafetyIssues == "Yes" && (
{t(
@@ -2021,7 +299,7 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
@@ -2032,7 +310,7 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
href="#"
onClick={() => {
setRepresentationSubmit(false);
- setShowQuestionnaireSection(7);
+ setShowQuestionnaireSection(1);
}}
>
{t("common:change-link-label")}
@@ -2047,17 +325,1573 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
)}
>
- )}
- {_.has(repFormData, "enforcementNoticePlan") && (
+
<>
+ >
+ >
+ {/* Section 2 Deemed Application Fee */}
+ <>
+
+ {t("myrepresentations:enf-section-heading-two")}
+
+
+ <>
+
+ >
+
+ <>
+
+ >
+ >
+ {/* Section 3 Planning History and Current Status */}
+ <>
+
+ {t("myrepresentations:enf-section-heading-three")}
+
+
+ <>
+
+ {repFormData.previousGrantedCerts == "Yes" && (
+
+ )}
+ >
+
+ <>
+
+ {repFormData.stopNoticeServed == "Yes" && (
+
+ )}
+ >
+
+ <>
+
+ {repFormData.relatedCases == "Yes" && (
+
+ )}
+ >
+
+ <>
+
+ {repFormData.previousEnforcement == "Yes" && (
+
+ )}
+ >
+
+ <>
+
+ {repFormData.subjectArticle4 == "Yes" && (
+
+ )}
+ >
+
+ <>
+
+ {repFormData.previousPDRRestriction == "Yes" && (
+
+ )}
+ >
+ >
+ {/* Section 4 Supporting Documents */}
+ <>
+
+ {t("myrepresentations:enf-section-heading-four")}
+
+
+ <>
+
+ >
+
+ <>
+
+ >
+
+ <>
+
+ >
+ >
+ {/* Section 5 */}
+ <>
+
+ {t("myrepresentations:enf-section-heading-five")}
+
+
+ <>
+
+ >
+
+ <>
+
+ {repFormData.ROW == "Yes" && (
+
+ )}
+ >
+
+ <>
+
+ {repFormData.conservationArea == "Yes" && (
+
+ )}
+ >
+
+ <>
+
+ {repFormData.affectListedBuilding == "Yes" && (
+
+ )}
+ >
+
+ <>
+
+ {repFormData.TPO == "Yes" && (
+
+ )}
+ >
+
+ <>
+
+ {repFormData.natureConservationSite == "Yes" && (
+
+ )}
+ >
+
+ <>
+
+ {repFormData.protectedSpecies == "Yes" && (
+
+ )}
+ >
+
+ <>
+
+ >
+
+ <>
+
+ {repFormData.floodingIssue == "Yes" && (
+
+ )}
+ >
+
+ <>
+
+ {repFormData.governmentDepartmentComments == "Yes" && (
+
+ )}
+ >
+ >
+
+ {/* Section 6 */}
+ <>
+
+ {t("myrepresentations:enf-section-heading-six")}
+
+
+ <>
+
+
+ 32. {t("myrepresentations:enf-section-question-31")}
+
+
+
+ {repFormData.developmentNotBeginLaterThanFiveYears}
+
+
+
+
+ >
+
+ <>
+
+ {repFormData.developmentCarriedOutInAccordance == "Yes" && (
+
+ )}
+ >
+
+ <>
+
+ >
+
+ <>
+
+ {repFormData.developmentNotTakePlaceBroadband == "Yes" && (
+
+ )}
+ >
+
+ <>
+
+ {repFormData.developmentAnyOtherConditions == "Yes" && (
+
+ )}
+ >
+ >
+
+ {/* Section 7 Before sending, have you attached or provided a web link to: */}
+
+ {t("myrepresentations:s78-section-heading-five-sub")}
+
+ <>
+
+ {repFormData.copyOfEnforcementNotice == "No" && (
+
+
+ {t(
+ "myrepresentations:questionnaire-evidence-label"
+ )}
+
+
+
+
@@ -2079,7 +1913,41 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
- {repFormData.enforcementNoticePlan != "Yes" && (
+ )}
+ >
+
+ <>
+
+ {repFormData.enforcementNoticePlan != "Yes" &&
+ repFormData.enforcementNoticePlan != null && (
{t(
@@ -2116,40 +1984,40 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
)}
- >
- )}
- {_.has(repFormData, "listOfNotifiedOfEnforcement") && (
- <>
-
-
- {"35. " +
- t("myrepresentations:enf-section-question-35")}
-
+ >
-
- {repFormData.enforcementNoticePlan}
-
+ <>
+
- {repFormData.listOfNotifiedOfEnforcement != "Yes" && (
+
+
+
+
+ {repFormData.listOfNotifiedOfEnforcement != "Yes" &&
+ repFormData.enforcementNoticePlan != null && (
{t(
@@ -2186,18 +2054,53 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
)}
- >
- )}
- {_.has(repFormData, "copyOfLetterOfAppealNotification") && (
- <>
+ >
+
+ <>
+
+ {repFormData.copyOfLetterOfAppealNotification == "No" && (
- {"36. " +
- t("myrepresentations:enf-section-question-36")}
+ {t(
+ "myrepresentations:questionnaire-evidence-label"
+ )}
- {repFormData.copyOfLetterOfAppealNotification}
+
@@ -2219,55 +2122,54 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
- {repFormData.copyOfLetterOfAppealNotification == "No" && (
-
-
- {t(
- "myrepresentations:questionnaire-evidence-label"
- )}
-
+ )}
+ >
-
-
-
+ <>
+
- )}
- >
- )}
- {_.has(repFormData, "lpaEIAOS") && (
- <>
+
+
+
+
+ {repFormData.lpaEIAOS == "No" && (
- {"37. " +
- t("myrepresentations:enf-section-question-37")}
+ {t(
+ "myrepresentations:questionnaire-evidence-label"
+ )}
- {repFormData.lpaEIAOS}
+
@@ -2289,55 +2191,54 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
- {repFormData.lpaEIAOS == "No" && (
-
-
- {t(
- "myrepresentations:questionnaire-evidence-label"
- )}
-
+ )}
+ >
-
-
-
+ <>
+
- )}
- >
- )}
- {_.has(repFormData, "detailsOfOtherAppeals") && (
- <>
+
+
+
+
+ {repFormData.detailsOfOtherAppeals == "Yes" && (
- {"38. " +
- t("myrepresentations:enf-section-question-38")}
+ {t(
+ "myrepresentations:questionnaire-evidence-label"
+ )}
- {repFormData.detailsOfOtherAppeals}
+
@@ -2359,55 +2260,54 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
- {repFormData.detailsOfOtherAppeals == "Yes" && (
-
-
- {t(
- "myrepresentations:questionnaire-evidence-label"
- )}
-
+ )}
+ >
-
-
-
+ <>
+
- )}
- >
- )}
- {_.has(repFormData, "detailsOfPreviousAppeals") && (
- <>
+
+
+
+
+ {repFormData.detailsOfPreviousAppeals == "Yes" && (
- {"39. " +
- t("myrepresentations:enf-section-question-39")}
+ {t(
+ "myrepresentations:questionnaire-evidence-label"
+ )}
- {repFormData.detailsOfPreviousAppeals}
+
@@ -2429,55 +2329,54 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
- {repFormData.detailsOfPreviousAppeals == "Yes" && (
-
-
- {t(
- "myrepresentations:questionnaire-evidence-label"
- )}
-
+ )}
+ >
-
-
-
+ <>
+
- )}
- >
- )}
- {_.has(repFormData, "otherRelevantInformation") && (
- <>
+
+
+
+
+ {repFormData.otherRelevantInformation == "Yes" && (
- {"40. " +
- t("myrepresentations:enf-section-question-40")}
+ {t(
+ "myrepresentations:questionnaire-evidence-label"
+ )}
- {repFormData.otherRelevantInformation}
+
@@ -2486,7 +2385,7 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
href="#"
onClick={() => {
setRepresentationSubmit(false);
- setShowQuestionnaireSection(7);
+ setShowQuestionnaireSection();
}}
>
{t("common:change-link-label")}
@@ -2499,152 +2398,109 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
- {repFormData.otherRelevantInformation == "Yes" && (
-
- )}
- >
- )}
{/* Section 9 Declaration */}
<>
{t("myrepresentations:enf-section-heading-eight")}
- {_.has(repFormData, "signedDate") && (
- <>
-
-
- {t(
- "myrepresentations:enf-section-question-signed"
- )}
-
-
- {repFormData.caseOfficer}
-
+ <>
+
- >
- )}
- {_.has(repFormData, "caseOfficer") && (
- <>
-
-
- {t(
- "myrepresentations:s78-section-heading-date"
- )}
-
+
+
+
+
+ >
-
- {formatDates(repFormData.signedDate)}
-
+ <>
+
- >
- )}
- {_.has(repFormData, "onBehalfOfLPA") && (
- <>
-
-
- {t(
- "myrepresentations:enf-section-question-onbehalf"
- )}
-
+
+
+
+
+ >
-
- {repFormData.onBehalfOfLPA}
-
+ <>
+
- >
- )}
+
+
+
+
+ >
>
>
);
diff --git a/components/case/summary.js b/components/case/summary.js
index 4c838f75..44f0201e 100644
--- a/components/case/summary.js
+++ b/components/case/summary.js
@@ -258,9 +258,13 @@ const CaseSummary = (props) => {
: t("case:summary-applicant-label")}
- {detailsObj[
- "_pinswg_appellant_value@OData.Community.Display.V1.FormattedValue"
- ] || "not entered"}
+ {casesObj.pinswg_appellantagent == 846040001
+ ? casesObj.pinswg_appellantfirstname +
+ " " +
+ casesObj.pinswg_appellantlastname
+ : detailsObj[
+ "_pinswg_appellant_value@OData.Community.Display.V1.FormattedValue"
+ ] || "not entered"}
{detailsObj.pinswg_agentcontactname != null &&
diff --git a/components/newappeal/buildsection.js b/components/newappeal/buildsection.js
index 98c000c2..91498eb0 100644
--- a/components/newappeal/buildsection.js
+++ b/components/newappeal/buildsection.js
@@ -13,7 +13,7 @@ import {
setNewAppealProgress,
setFileCount,
} from "../../store/appealType/action";
-import { getFormCollectionByID, getProgressObj } from "../utils";
+import { getFormCollectionByID, getProgressObj, updateLinks } from "../utils";
import BuildRow from "./buildrow";
import { FieldsTranslations } from "../elements";
@@ -141,6 +141,8 @@ let BuildSection = (props) => {
let buildAppealFilesArray = [];
//console.log("attached docs: - ", buildAppealFilesArray);
+ values = updateLinks(values);
+
let filesUploadObj = Object.keys(values)
.filter(function (k) {
return k.indexOf("pinswg_fileUpload") == 0;
diff --git a/components/pdftemplates/enforcement_pdf.js b/components/pdftemplates/enforcement_pdf.js
index 20ce4a38..725aebf7 100644
--- a/components/pdftemplates/enforcement_pdf.js
+++ b/components/pdftemplates/enforcement_pdf.js
@@ -271,6 +271,24 @@ export const EnforcementQuestionnaire_pdf = ({ docProps }) => {
{values.siteAddress}
+