diff --git a/components/case/representation/index.js b/components/case/representation/index.js index 0eb50ad5..e0b7e0aa 100644 --- a/components/case/representation/index.js +++ b/components/case/representation/index.js @@ -1159,6 +1159,9 @@ let MakeRepresentation = (props) => { setRepresentationSubmitConfirmation={ setRepresentationSubmitConfirmation } + setShowQuestionnaireSection={ + setShowQuestionnaireSection + } props={props} /> ) : ( diff --git a/components/case/representation/representationCompleteSubmit.js b/components/case/representation/representationCompleteSubmit.js index d6f63fea..6feecd61 100644 --- a/components/case/representation/representationCompleteSubmit.js +++ b/components/case/representation/representationCompleteSubmit.js @@ -26,6 +26,7 @@ const RepCompleteSubmit = (props) => { setRepresentationSubmitConfirmation, setRepresentationMessageSent, setRepresentationReset, + setShowQuestionnaireSection, } = props; const { acceptedFiles, getRootProps, getInputProps } = useDropzone(); const files = acceptedFiles.map((file) => ( @@ -109,6 +110,10 @@ const RepCompleteSubmit = (props) => { props={props} formObj={formObj} setSubmitBack={setSubmitBack} + setShowQuestionnaireSection={ + setShowQuestionnaireSection + } + setRepresentationSubmit={setRepresentationSubmit} /> ); break; @@ -120,6 +125,10 @@ const RepCompleteSubmit = (props) => { props={props} formObj={formObj} setSubmitBack={setSubmitBack} + setShowQuestionnaireSection={ + setShowQuestionnaireSection + } + setRepresentationSubmit={setRepresentationSubmit} /> ); break; diff --git a/components/case/representation/representationLPA.js b/components/case/representation/representationLPA.js index 9289b761..2af6cdf2 100644 --- a/components/case/representation/representationLPA.js +++ b/components/case/representation/representationLPA.js @@ -74,6 +74,7 @@ let RepLPA = (props) => { setShowQuestionnaireSection } questionnaireCount={questionnaireCount} + setRepresentationSubmit={setRepresentationSubmit} /> ); break; @@ -93,6 +94,7 @@ let RepLPA = (props) => { setShowQuestionnaireSection } questionnaireCount={questionnaireCount} + setRepresentationSubmit={setRepresentationSubmit} /> ); break; diff --git a/components/case/representation/representationQuestionnaires/representationLPAQuestionnaire_enforcement.js b/components/case/representation/representationQuestionnaires/representationLPAQuestionnaire_enforcement.js index 37d8e8b8..7783a88a 100644 --- a/components/case/representation/representationQuestionnaires/representationLPAQuestionnaire_enforcement.js +++ b/components/case/representation/representationQuestionnaires/representationLPAQuestionnaire_enforcement.js @@ -385,7 +385,7 @@ let Enforcement_Questionnaire = (props) => { validate={[required]} legend={ "13. " + - t("myrepresentations:enf-section-question-12") + t("myrepresentations:enf-section-question-13") } conditionalLabel={t( "myrepresentations:enf-section-question-13-hint" @@ -668,7 +668,7 @@ let Enforcement_Questionnaire = (props) => { validate={[required]} legend={ "24. " + - t("myrepresentations:enf-section-question-23") + t("myrepresentations:enf-section-question-24") } conditionalLabel={t( "myrepresentations:enf-section-question-24-hint" @@ -843,7 +843,7 @@ let Enforcement_Questionnaire = (props) => { {t("myrepresentations:enf-section-heading-six")}
- {t("myrepresentations:enf-section-question-31")} + 31 .{t("myrepresentations:enf-section-question-31")}
diff --git a/components/case/representation/representationQuestionnairesCheck/representationLPAQuestionnaireCheck_enforcement.js b/components/case/representation/representationQuestionnairesCheck/representationLPAQuestionnaireCheck_enforcement.js index 6fbd94a1..5028f05d 100644 --- a/components/case/representation/representationQuestionnairesCheck/representationLPAQuestionnaireCheck_enforcement.js +++ b/components/case/representation/representationQuestionnairesCheck/representationLPAQuestionnaireCheck_enforcement.js @@ -4,49 +4,35 @@ import { formatDates } from "../../../utils"; let RepLPAQuestionnaireCheck_enforcement = (props) => { let { t } = useTranslation(); - const { formObj, currentView, setSubmitBack } = props; + const { + formObj, + currentView, + setSubmitBack, + showQuestionnaireSection, + setShowQuestionnaireSection, + setRepresentationSubmit, + questionnaireCount, + } = props; + const repFormData = formObj.representationForm.values; return ( <> - {_.has(repFormData, "procedureType") && ( - <> -
-
- 5. Which procedure do you consider the appeal should - follow? -
- -
- {repFormData.procedureType} -
- -
- { - setSubmitBack(); - }} - > - {t("common:change-link-label")} - - {" "} - {/* {FieldsTranslations( - rows[0].value - )} */} - - -
-
- {repFormData.representationOnBehalfOf == "Yes" && ( + {/* Section 1 Appeal procedure and site visit */} + <> +

+ Appeal procedure and site visit +

+ {_.has(repFormData, "procedureType") && ( + <>
- {t("case:representation-onbehalfof-details")} + 5. Which procedure do you consider the appeal + should follow?
- {repFormData.representationOnBehalfOf_details} + {repFormData.procedureType}
@@ -54,7 +40,8 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(1); }} > {t("common:change-link-label")} @@ -67,81 +54,52 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
- )} - - )} - {_.has(repFormData, "enterToView") && ( - <> -
-
- 6. Will the Inspector need to enter the appeal - site/property?{" "} -
+ {repFormData.representationOnBehalfOf == "Yes" && ( +
+
+ {t( + "case:representation-onbehalfof-details" + )} +
-
- {repFormData.enterToView} -
+
+ { + repFormData.representationOnBehalfOf_details + } +
-
- { - setSubmitBack(); - }} - > - {t("common:change-link-label")} - - {" "} - {/* {FieldsTranslations( +
+ { + setRepresentationSubmit(false); + setShowQuestionnaireSection(1); + }} + > + {t("common:change-link-label")} + + {" "} + {/* {FieldsTranslations( rows[0].value )} */} - - -
-
- - )} - {_.has(repFormData, "enterNeighbouringLandToViewSite") && ( - <> -
-
- 7. Do you consider that the Inspector needs to enter - neighbouring private land/property to view the site? -
- -
- {repFormData.enterNeighbouringLandToViewSite} -
- -
- { - setSubmitBack(); - }} - > - {t("common:change-link-label")} - - {" "} - {/* {FieldsTranslations( - rows[0].value - )} */} - - -
-
- {repFormData.enterNeighbouringLandToViewSite == "Yes" && ( + + + +
+ )} + + )} + {_.has(repFormData, "enterToView") && ( + <>
- {t("case:representation-onbehalfof-details")} + 5. Will the Inspector need to enter the appeal + site/property?{" "}
- { - repFormData.enterNeighbouringLandToViewSiteEvidence - } + {repFormData.enterToView}
@@ -149,7 +107,8 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(1); }} > {t("common:change-link-label")} @@ -162,46 +121,86 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
- )} - - )} - {_.has(repFormData, "enterNeighbouringLandAccessRequired") && ( - <> -
-
- 8. If access to private land/buildings is required, - are you content for the Inspector to visit the site - on an ‘access required’ basis, with only the - landowner or their representative present? -
- -
- {repFormData.enterNeighbouringLandAccessRequired} -
- -
- { - setSubmitBack(); - }} - > - {t("common:change-link-label")} - - {" "} - {/* {FieldsTranslations( - rows[0].value - )} */} - - -
-
- {repFormData.enterNeighbouringLandAccessRequired == - "Yes" && ( + + )} + {_.has(repFormData, "enterNeighbouringLandToViewSite") && ( + <>
- Evidence + 6. Do you consider that the Inspector needs to + enter neighbouring private land/property to view + the site? +
+ +
+ {repFormData.enterNeighbouringLandToViewSite} +
+ +
+ { + setRepresentationSubmit(false); + setShowQuestionnaireSection(1); + }} + > + {t("common:change-link-label")} + + {" "} + {/* {FieldsTranslations( + rows[0].value + )} */} + + +
+
+ {repFormData.enterNeighbouringLandToViewSite == + "Yes" && ( +
+
+ {t( + "case:representation-onbehalfof-details" + )} +
+ +
+ { + repFormData.enterNeighbouringLandToViewSiteEvidence + } +
+ +
+ { + setRepresentationSubmit(false); + setShowQuestionnaireSection(1); + }} + > + {t("common:change-link-label")} + + {" "} + {/* {FieldsTranslations( + rows[0].value + )} */} + + +
+
+ )} + + )} + {_.has(repFormData, "enterNeighbouringLandAccessRequired") && ( + <> +
+
+ 7. If access to private land/buildings is + required, are you content for the Inspector to + visit the site on an ‘access required’ basis, + with only the landowner or their representative + present?
@@ -215,7 +214,8 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(1); }} > {t("common:change-link-label")} @@ -228,48 +228,52 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
- )} - - )} - {_.has(repFormData, "healthAndSafetyIssues") && ( - <> -
-
- 9. Are you aware of any health and safety issues - which would need to be considered when the Inspector - visits the site? -
+ {repFormData.enterNeighbouringLandAccessRequired != + "Yes" && ( +
+
+ Evidence +
-
- {repFormData.healthAndSafetyIssues} -
+
+ { + repFormData.enterNeighbouringLandAccessRequired + } +
-
- { - setSubmitBack(); - }} - > - {t("common:change-link-label")} - - {" "} - {/* {FieldsTranslations( +
+ { + setRepresentationSubmit(false); + setShowQuestionnaireSection(1); + }} + > + {t("common:change-link-label")} + + {" "} + {/* {FieldsTranslations( rows[0].value )} */} - - -
-
- {repFormData.healthAndSafetyIssues == "Yes" && ( + + + +
+ )} + + )} + {_.has(repFormData, "healthAndSafetyIssues") && ( + <>
- Evidence + 8. Are you aware of any health and safety issues + which would need to be considered when the + Inspector visits the site?
- {repFormData.healthAndSafetyIssuesEvidence} + {repFormData.healthAndSafetyIssues}
@@ -277,7 +281,8 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(1); }} > {t("common:change-link-label")} @@ -290,205 +295,48 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
- )} - - )} - {_.has(repFormData, "LPAcontactDetails") && ( - <> -
-
- 10. LPA contact for site visit, hearing or inquiry - arrangements: -
+ {repFormData.healthAndSafetyIssues == "Yes" && ( +
+
+ Evidence +
-
- {repFormData.healthAndSafetyIssues} -
+
+ {repFormData.healthAndSafetyIssuesEvidence} +
-
- { - setSubmitBack(); - }} - > - {t("common:change-link-label")} - - {" "} - {/* {FieldsTranslations( +
+ { + setRepresentationSubmit(false); + setShowQuestionnaireSection(1); + }} + > + {t("common:change-link-label")} + + {" "} + {/* {FieldsTranslations( rows[0].value )} */} - - -
-
- - )} - {_.has(repFormData, "LPAcaseFileAndReps") && ( - <> -
-
- 11. LPA case file and represen- tations -
- -
- {repFormData.LPAcaseFileAndReps} -
- -
- { - setSubmitBack(); - }} - > - {t("common:change-link-label")} - - {" "} - {/* {FieldsTranslations( - rows[0].value - )} */} - - -
-
- - )} - {_.has(repFormData, "LPAldpAndMap") && ( - <> -
-
- 12. LPA’s adopted local development plan and - Proposals Map -
- -
- {repFormData.LPAldpAndMap} -
- -
- { - setSubmitBack(); - }} - > - {t("common:change-link-label")} - - {" "} - {/* {FieldsTranslations( - rows[0].value - )} */} - - -
-
- - )} - {_.has(repFormData, "LPAintentionToSubmitFullStatement") && ( - <> -
-
- 14. If applicable, do you intend to submit a full - statement at the 4- week stage? -
- -
- {repFormData.LPAintentionToSubmitFullStatement} -
- -
- { - setSubmitBack(); - }} - > - {t("common:change-link-label")} - - {" "} - {/* {FieldsTranslations( - rows[0].value - )} */} - - -
-
- - )} - {_.has(repFormData, "AONB") && ( - <> -
-
- 15. Is all or part of the site within an Area of - Outstanding Natural Beauty? -
- -
- {repFormData.AONB} -
- -
- { - setSubmitBack(); - }} - > - {t("common:change-link-label")} - - {" "} - {/* {FieldsTranslations( - rows[0].value - )} */} - - -
-
- - )} - {_.has(repFormData, "ROW") && ( - <> -
-
- 16. {t("myrepresentations:s78-section-question-15")} -
- -
- {repFormData.ROW} -
- -
- { - setSubmitBack(); - }} - > - {t("common:change-link-label")} - - {" "} - {/* {FieldsTranslations( - rows[0].value - )} */} - - -
-
- {repFormData.ROW == "Yes" && ( + + + +
+ )} + + )} + {_.has(repFormData, "LPAcontactDetails") && ( + <>
- Evidence + 9. LPA contact for site visit, hearing or + inquiry arrangements:
- {repFormData.ROWEvidence} + {repFormData.healthAndSafetyIssues}
@@ -496,7 +344,8 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(1); }} > {t("common:change-link-label")} @@ -509,47 +358,26 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
- )} - - )} - {_.has(repFormData, "conservationArea") && ( - <> -
-
- 17. Is all or part of the site within a Conservation - Area? -
- -
- {repFormData.conservationArea} -
- -
- { - setSubmitBack(); - }} - > - {t("common:change-link-label")} - - {" "} - {/* {FieldsTranslations( - rows[0].value - )} */} - - -
-
- {repFormData.conservationArea == "Yes" && ( + + )} + + {/* Section 2 Deemed Application Fee */} + <> +

+ {t("myrepresentations:enf-section-heading-two")} +

+ {_.has(repFormData, "feePaid") && ( + <>
- Evidence + 10. Has the local planning authority received + the correct fee payable in relation to this + appeal for the deemed planning + application/ground (a) to be considered?
- {repFormData.conservationAreaEvidence} + {repFormData.feePaid}
@@ -557,7 +385,8 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(2); }} > {t("common:change-link-label")} @@ -570,48 +399,17 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
- )} - - )} - {_.has(repFormData, "affectListedBuilding") && ( - <> -
-
- 18. Would the proposal involve works to, or affect - the setting of, a listed building, Scheduled - Monument or other designated historic asset? -
- -
- {repFormData.affectListedBuilding} -
- -
- { - setSubmitBack(); - }} - > - {t("common:change-link-label")} - - {" "} - {/* {FieldsTranslations( - rows[0].value - )} */} - - -
-
- {repFormData.affectListedBuilding == "Yes" && ( + + )} + {_.has(repFormData, "feeExempt") && ( + <>
- Evidence + 11. Is the appeal fee exempt?
- {repFormData.affectListedBuildingEvidence} + {repFormData.feeExempt}
@@ -619,7 +417,8 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(2); }} > {t("common:change-link-label")} @@ -632,47 +431,26 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
- )} - - )} - {_.has(repFormData, "TPO") && ( - <> -
-
- 19. Is any part of the site subject to a Tree - Preservation Order? -
- -
- {repFormData.affectListedBuilding} -
- -
- { - setSubmitBack(); - }} - > - {t("common:change-link-label")} - - {" "} - {/* {FieldsTranslations( - rows[0].value - )} */} - - -
-
- {repFormData.TPO == "Yes" && ( + + )} + + {/* Section 3 Planning History and Current Status */} + <> +

+ {t("myrepresentations:enf-section-heading-three")} +

+ {_.has(repFormData, "previousGrantedCerts") && ( + <>
- Evidence + {"12. " + + t( + "myrepresentations:enf-section-question-12" + )}{" "}
- {repFormData.TPOEvidence} + {repFormData.previousGrantedCerts}
@@ -680,7 +458,8 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(3); }} > {t("common:change-link-label")} @@ -693,48 +472,50 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
- )} - - )} - {_.has(repFormData, "natureConservationSite") && ( - <> -
-
- 20. Is the site within or likely to affect an - International or National Designated Site for nature - conservation (as defined in Planning Policy Wales)? -
+ {repFormData.previousGrantedCerts == "Yes" && ( +
+
+ Evidence +
-
- {repFormData.natureConservationSite} -
+
+ {repFormData.previousGrantedCertsEvidence} +
-
- { - setSubmitBack(); - }} - > - {t("common:change-link-label")} - - {" "} - {/* {FieldsTranslations( +
+ { + setRepresentationSubmit(false); + setShowQuestionnaireSection(3); + }} + > + {t("common:change-link-label")} + + {" "} + {/* {FieldsTranslations( rows[0].value )} */} - - -
-
- {repFormData.natureConservationSite == "Yes" && ( + + + +
+ )} + + )} + {_.has(repFormData, "stopNoticeServed") && ( + <>
- Evidence + {"13. " + + t( + "myrepresentations:enf-section-question-13" + )}
- {repFormData.natureConservationSiteEvidence} + {repFormData.stopNoticeServed}
@@ -742,7 +523,8 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(3); }} > {t("common:change-link-label")} @@ -755,47 +537,50 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
- )} - - )} - {_.has(repFormData, "protectedSpecies") && ( - <> -
-
- 21. Are any protected species likely to be affected - by the proposal? -
+ {repFormData.stopNoticeServed == "Yes" && ( +
+
+ Evidence +
-
- {repFormData.protectedSpecies} -
+
+ {repFormData.stopNoticeServedEvidence} +
-
- { - setSubmitBack(); - }} - > - {t("common:change-link-label")} - - {" "} - {/* {FieldsTranslations( +
+ { + setRepresentationSubmit(false); + setShowQuestionnaireSection(3); + }} + > + {t("common:change-link-label")} + + {" "} + {/* {FieldsTranslations( rows[0].value )} */} - - -
-
- {repFormData.protectedSpecies == "Yes" && ( + + + +
+ )} + + )} + {_.has(repFormData, "relatedCases") && ( + <>
- Evidence + {"14. " + + t( + "myrepresentations:enf-section-question-14" + )}
- {repFormData.protectedSpeciesEvidence} + {repFormData.relatedCases}
@@ -803,7 +588,8 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(3); }} > {t("common:change-link-label")} @@ -816,83 +602,964 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
- )} - - )} - {_.has(repFormData, "gypsyTravellerInvolvment") && ( - <> -
-
- 22. Does the case involve persons claiming - Gypsy/Traveller status, whether or not this is - accepted by the LPA? -
+ {repFormData.relatedCases == "Yes" && ( +
+
+ Evidence +
-
- {repFormData.gypsyTravellerInvolvment} -
+
+ {repFormData.stopNoticeServedEvidence} +
-
- { - setSubmitBack(); - }} - > - {t("common:change-link-label")} - - {" "} - {/* {FieldsTranslations( +
+ { + setRepresentationSubmit(false); + setShowQuestionnaireSection(3); + }} + > + {t("common:change-link-label")} + + {" "} + {/* {FieldsTranslations( rows[0].value )} */} - - -
-
- - )} - {_.has(repFormData, "governmentDepartmentComments") && ( - <> -
-
- 23. Have you received comments or directions from - any government department/agency or statutory - undertaker, including in response to a statutory - notification or consultation? -
- -
- {repFormData.governmentDepartmentComments} -
- -
- { - setSubmitBack(); - }} - > - {t("common:change-link-label")} - - {" "} - {/* {FieldsTranslations( - rows[0].value - )} */} - - -
-
- {repFormData.governmentDepartmentComments == "Yes" && ( + + + +
+ )} + + )} + {_.has(repFormData, "previousEnforcement") && ( + <>
- Evidence + {"15. " + + t( + "myrepresentations:enf-section-question-15" + )} +
+ +
+ {repFormData.previousEnforcement} +
+ +
+ { + setRepresentationSubmit(false); + setShowQuestionnaireSection(3); + }} + > + {t("common:change-link-label")} + + {" "} + {/* {FieldsTranslations( + rows[0].value + )} */} + + +
+
+ {repFormData.previousEnforcement == "Yes" && ( +
+
+ Evidence +
+ +
+ {repFormData.previousEnforcementEvidence} +
+ +
+ { + setRepresentationSubmit(false); + setShowQuestionnaireSection(3); + }} + > + {t("common:change-link-label")} + + {" "} + {/* {FieldsTranslations( + rows[0].value + )} */} + + +
+
+ )} + + )} + {_.has(repFormData, "subjectArticle4") && ( + <> +
+
+ {"16. " + + t( + "myrepresentations:enf-section-question-16" + )} +
+ +
+ {repFormData.subjectArticle4} +
+ +
+ { + setRepresentationSubmit(false); + setShowQuestionnaireSection(3); + }} + > + {t("common:change-link-label")} + + {" "} + {/* {FieldsTranslations( + rows[0].value + )} */} + + +
+
+ {repFormData.subjectArticle4 == "Yes" && ( +
+
+ Evidence +
+ +
+ {repFormData.subjectArticle4Evidence} +
+ +
+ { + setRepresentationSubmit(false); + setShowQuestionnaireSection(3); + }} + > + {t("common:change-link-label")} + + {" "} + {/* {FieldsTranslations( + rows[0].value + )} */} + + +
+
+ )} + + )} + {_.has(repFormData, "previousPDRRestriction") && ( + <> +
+
+ {"17. " + + t( + "myrepresentations:enf-section-question-17" + )} +
+ +
+ {repFormData.previousPDRRestriction} +
+ +
+ { + setRepresentationSubmit(false); + setShowQuestionnaireSection(3); + }} + > + {t("common:change-link-label")} + + {" "} + {/* {FieldsTranslations( + rows[0].value + )} */} + + +
+
+ {repFormData.previousPDRRestriction == "Yes" && ( +
+
+ Evidence +
+ +
+ {repFormData.previousPDRRestrictionEvidence} +
+ +
+ { + setRepresentationSubmit(false); + setShowQuestionnaireSection(3); + }} + > + {t("common:change-link-label")} + + {" "} + {/* {FieldsTranslations( + rows[0].value + )} */} + + +
+
+ )} + + )} + + {/* Section 4 Supporting Documents */} + <> +

+ {t("myrepresentations:enf-section-heading-four")} +

+ {_.has(repFormData, "LPAldpAndMap") && ( + <> +
+
+ {"18. " + + t( + "myrepresentations:enf-section-question-18" + )} +
+ +
+ {repFormData.LPAldpAndMap} +
+ +
+ { + setRepresentationSubmit(false); + setShowQuestionnaireSection(4); + }} + > + {t("common:change-link-label")} + + {" "} + {/* {FieldsTranslations( + rows[0].value + )} */} + + +
+
+ + )} + {_.has(repFormData, "LPAlocalGuidance") && ( + <> +
+
+ {"19. " + + t( + "myrepresentations:enf-section-question-19" + )} +
+ +
+ {repFormData.LPAlocalGuidance} +
+ +
+ { + setRepresentationSubmit(false); + setShowQuestionnaireSection(4); + }} + > + {t("common:change-link-label")} + + {" "} + {/* {FieldsTranslations( + rows[0].value + )} */} + + +
+
+ + )} + {_.has(repFormData, "LPAintentionToSubmitFullStatement") && ( + <> +
+
+ {"20. " + + t( + "myrepresentations:enf-section-question-20" + )} +
+ +
+ {repFormData.LPAintentionToSubmitFullStatement} +
+ +
+ { + setRepresentationSubmit(false); + setShowQuestionnaireSection(4); + }} + > + {t("common:change-link-label")} + + {" "} + {/* {FieldsTranslations( + rows[0].value + )} */} + + +
+
+ + )} + + {/* Section 5 */} + <> +

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

+ {_.has(repFormData, "AONB") && ( + <> +
+
+ {"21. " + + t( + "myrepresentations:enf-section-question-21" + )} +
+ +
+ {repFormData.AONB} +
+ +
+ { + setRepresentationSubmit(false); + setShowQuestionnaireSection(5); + }} + > + {t("common:change-link-label")} + + {" "} + {/* {FieldsTranslations( + rows[0].value + )} */} + + +
+
+ + )} + {_.has(repFormData, "ROW") && ( + <> +
+
+ {"22. " + + t( + "myrepresentations:enf-section-question-22" + )} +
+ +
+ {repFormData.ROW} +
+ +
+ { + setRepresentationSubmit(false); + setShowQuestionnaireSection(5); + }} + > + {t("common:change-link-label")} + + {" "} + {/* {FieldsTranslations( + rows[0].value + )} */} + + +
+
+ {repFormData.ROW == "Yes" && ( +
+
+ Evidence +
+ +
+ {repFormData.ROWEvidence} +
+ +
+ { + setRepresentationSubmit(false); + setShowQuestionnaireSection(5); + }} + > + {t("common:change-link-label")} + + {" "} + {/* {FieldsTranslations( + rows[0].value + )} */} + + +
+
+ )} + + )} + {_.has(repFormData, "conservationArea") && ( + <> +
+
+ {"23. " + + t( + "myrepresentations:enf-section-question-23" + )} +
+ +
+ {repFormData.conservationArea} +
+ +
+ { + setRepresentationSubmit(false); + setShowQuestionnaireSection(5); + }} + > + {t("common:change-link-label")} + + {" "} + {/* {FieldsTranslations( + rows[0].value + )} */} + + +
+
+ {repFormData.conservationArea == "Yes" && ( +
+
+ Evidence +
+ +
+ {repFormData.conservationAreaEvidence} +
+ +
+ { + setRepresentationSubmit(false); + setShowQuestionnaireSection(5); + }} + > + {t("common:change-link-label")} + + {" "} + {/* {FieldsTranslations( + rows[0].value + )} */} + + +
+
+ )} + + )} + {_.has(repFormData, "affectListedBuilding") && ( + <> +
+
+ {"24. " + + t( + "myrepresentations:enf-section-question-24" + )} +
+ +
+ {repFormData.affectListedBuilding} +
+ +
+ { + setRepresentationSubmit(false); + setShowQuestionnaireSection(5); + }} + > + {t("common:change-link-label")} + + {" "} + {/* {FieldsTranslations( + rows[0].value + )} */} + + +
+
+ {repFormData.affectListedBuilding == "Yes" && ( +
+
+ Evidence +
+ +
+ {repFormData.affectListedBuildingEvidence} +
+ +
+ { + setRepresentationSubmit(false); + setShowQuestionnaireSection(5); + }} + > + {t("common:change-link-label")} + + {" "} + {/* {FieldsTranslations( + rows[0].value + )} */} + + +
+
+ )} + + )} + {_.has(repFormData, "TPO") && ( + <> +
+
+ {"25. " + + t( + "myrepresentations:enf-section-question-25" + )} +
+ +
+ {repFormData.affectListedBuilding} +
+ +
+ { + setRepresentationSubmit(false); + setShowQuestionnaireSection(5); + }} + > + {t("common:change-link-label")} + + {" "} + {/* {FieldsTranslations( + rows[0].value + )} */} + + +
+
+ {repFormData.TPO == "Yes" && ( +
+
+ Evidence +
+ +
+ {repFormData.TPOEvidence} +
+ +
+ { + setRepresentationSubmit(false); + setShowQuestionnaireSection(5); + }} + > + {t("common:change-link-label")} + + {" "} + {/* {FieldsTranslations( + rows[0].value + )} */} + + +
+
+ )} + + )} + {_.has(repFormData, "natureConservationSite") && ( + <> +
+
+ {"26. " + + t( + "myrepresentations:enf-section-question-26" + )} +
+ +
+ {repFormData.natureConservationSite} +
+ +
+ { + setRepresentationSubmit(false); + setShowQuestionnaireSection(5); + }} + > + {t("common:change-link-label")} + + {" "} + {/* {FieldsTranslations( + rows[0].value + )} */} + + +
+
+ {repFormData.natureConservationSite == "Yes" && ( +
+
+ Evidence +
+ +
+ {repFormData.natureConservationSiteEvidence} +
+ +
+ { + setRepresentationSubmit(false); + setShowQuestionnaireSection(5); + }} + > + {t("common:change-link-label")} + + {" "} + {/* {FieldsTranslations( + rows[0].value + )} */} + + +
+
+ )} + + )} + {_.has(repFormData, "protectedSpecies") && ( + <> +
+
+ {"27. " + + t( + "myrepresentations:enf-section-question-27" + )} +
+ +
+ {repFormData.protectedSpecies} +
+ +
+ { + setRepresentationSubmit(false); + setShowQuestionnaireSection(5); + }} + > + {t("common:change-link-label")} + + {" "} + {/* {FieldsTranslations( + rows[0].value + )} */} + + +
+
+ {repFormData.protectedSpecies == "Yes" && ( +
+
+ Evidence +
+ +
+ {repFormData.protectedSpeciesEvidence} +
+ +
+ { + setRepresentationSubmit(false); + setShowQuestionnaireSection(5); + }} + > + {t("common:change-link-label")} + + {" "} + {/* {FieldsTranslations( + rows[0].value + )} */} + + +
+
+ )} + + )} + {_.has(repFormData, "gypsyTravellerInvolvment") && ( + <> +
+
+ {"28. " + + t( + "myrepresentations:enf-section-question-28" + )} +
+ +
+ {repFormData.gypsyTravellerInvolvment} +
+ +
+ { + setRepresentationSubmit(false); + setShowQuestionnaireSection(5); + }} + > + {t("common:change-link-label")} + + {" "} + {/* {FieldsTranslations( + rows[0].value + )} */} + + +
+
+ + )} + {_.has(repFormData, "floodingIssue") && ( + <> +
+
+ {"29. " + + t( + "myrepresentations:enf-section-question-29" + )} +
+ +
+ {repFormData.floodingIssue} +
+ +
+ { + setRepresentationSubmit(false); + setShowQuestionnaireSection(5); + }} + > + {t("common:change-link-label")} + + {" "} + {/* {FieldsTranslations( + rows[0].value + )} */} + + +
+
+ {repFormData.floodingIssue == "Yes" && ( +
+
+ Evidence +
+ +
+ {repFormData.floodingIssueEvidence} +
+ +
+ { + setRepresentationSubmit(false); + setShowQuestionnaireSection(5); + }} + > + {t("common:change-link-label")} + + {" "} + {/* {FieldsTranslations( + rows[0].value + )} */} + + +
+
+ )} + + )} + {_.has(repFormData, "governmentDepartmentComments") && ( + <> +
+
+ {"30. " + + t( + "myrepresentations:enf-section-question-30" + )} +
+ +
+ {repFormData.governmentDepartmentComments} +
+ +
+ { + setRepresentationSubmit(false); + setShowQuestionnaireSection(5); + }} + > + {t("common:change-link-label")} + + {" "} + {/* {FieldsTranslations( + rows[0].value + )} */} + + +
+
+ {repFormData.governmentDepartmentComments == "Yes" && ( +
+
+ Evidence +
+ +
+ { + repFormData.governmentDepartmentCommentsEvidence + } +
+ +
+ { + setRepresentationSubmit(false); + setShowQuestionnaireSection(5); + }} + > + {t("common:change-link-label")} + + {" "} + {/* {FieldsTranslations( + rows[0].value + )} */} + + +
+
+ )} + + )} + + + {/* Section 6 */} + <> +

+ {t("myrepresentations:enf-section-heading-six")} +

+ {_.has( + repFormData, + "developmentNotBeginLaterThanFiveYears" + ) && ( + <> +
+
+ {t( + "myrepresentations:enf-section-question-31a" + )}
{ - repFormData.governmentDepartmentCommentsEvidence + repFormData.developmentNotBeginLaterThanFiveYears }
@@ -901,7 +1568,8 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(6); }} > {t("common:change-link-label")} @@ -914,84 +1582,90 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
- )} - - )} - {_.has(repFormData, "developmentNotBeginLaterThanFiveYears") && ( - <> -
-
- 24a. The development shall begin not later than five - years from the date of this decision. -
+ + )} -
- {repFormData.developmentNotBeginLaterThanFiveYears} -
- -
- { - setSubmitBack(); - }} - > - {t("common:change-link-label")} - - {" "} - {/* {FieldsTranslations( - rows[0].value - )} */} - - -
-
- - )} - {_.has(repFormData, "developmentCarriedOutInAccordance") && ( - <> -
-
- 24b. The development shall be carried out in - accordance with the following approved plans and - documents: ............................ Reason: To - ensure the development is carried out in accordance - with the approved documents, plans and drawings - submitted with the application. -
- -
- {repFormData.developmentCarriedOutInAccordance} -
- -
- { - setSubmitBack(); - }} - > - {t("common:change-link-label")} - - {" "} - {/* {FieldsTranslations( - rows[0].value - )} */} - - -
-
- {repFormData.developmentCarriedOutInAccordance == "Yes" && ( + {_.has(repFormData, "developmentCarriedOutInAccordance") && ( + <>
- Evidence + 31 + {t( + "myrepresentations:enf-section-question-31a" + )} +
+ +
+ {repFormData.developmentCarriedOutInAccordance} +
+ +
+ { + setRepresentationSubmit(false); + setShowQuestionnaireSection(6); + }} + > + {t("common:change-link-label")} + + {" "} + {/* {FieldsTranslations( + rows[0].value + )} */} + + +
+
+ {repFormData.developmentCarriedOutInAccordance == + "Yes" && ( +
+
+ Evidence +
+ +
+ { + repFormData.developmentCarriedOutInAccordanceEvidence + } +
+ +
+ { + setRepresentationSubmit(false); + setShowQuestionnaireSection(6); + }} + > + {t("common:change-link-label")} + + {" "} + {/* {FieldsTranslations( + rows[0].value + )} */} + + +
+
+ )} + + )} + {_.has(repFormData, "developmentNotTakePlaceBiodiversity") && ( + <> +
+
+ 31 + {t( + "myrepresentations:enf-section-question-31b" + )}
{ - repFormData.developmentCarriedOutInAccordanceEvidence + repFormData.developmentNotTakePlaceBiodiversity }
@@ -1000,7 +1674,210 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(6); + }} + > + {t("common:change-link-label")} + + {" "} + {/* {FieldsTranslations( + rows[0].value + )} */} + + + +
+ + )} + + {_.has(repFormData, "developmentNotTakePlaceBroadband") && ( + <> +
+
+ 31 + {t( + "myrepresentations:enf-section-question-31c" + )} +
+ +
+ {repFormData.developmentNotTakePlaceBroadband} +
+ +
+ { + setRepresentationSubmit(false); + setShowQuestionnaireSection(6); + }} + > + {t("common:change-link-label")} + + {" "} + {/* {FieldsTranslations( + rows[0].value + )} */} + + +
+
+ {repFormData.developmentNotTakePlaceBroadband == + "Yes" && ( +
+
+ Evidence +
+ +
+ { + repFormData.developmentNotTakePlaceBroadbandEvidence + } +
+ +
+ { + setRepresentationSubmit(false); + setShowQuestionnaireSection(6); + }} + > + {t("common:change-link-label")} + + {" "} + {/* {FieldsTranslations( + rows[0].value + )} */} + + +
+
+ )} + + )} + {_.has(repFormData, "developmentAnyOtherConditions") && ( + <> +
+
+ 32.{" "} + {t("myrepresentations:enf-section-question-32")} +
+ +
+ {repFormData.developmentAnyOtherConditions} +
+ +
+ { + setRepresentationSubmit(false); + setShowQuestionnaireSection(6); + }} + > + {t("common:change-link-label")} + + {" "} + {/* {FieldsTranslations( + rows[0].value + )} */} + + +
+
+ {repFormData.developmentAnyOtherConditions == "Yes" && ( +
+
+ Evidence +
+ +
+ { + repFormData.developmentAnyOtherConditionsEvidence + } +
+ +
+ { + setRepresentationSubmit(false); + setShowQuestionnaireSection(6); + }} + > + {t("common:change-link-label")} + + {" "} + {/* {FieldsTranslations( + rows[0].value + )} */} + + +
+
+ )} + + )} + + + {/* Section 7 Before sending, have you attached or provided a web link to: */} +

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

+ {_.has(repFormData, "copyOfEnforcementNotice") && ( + <> +
+
+ {"33. " + + t("myrepresentations:enf-section-question-33")} +
+ +
+ {repFormData.copyOfEnforcementNotice} +
+ +
+ { + setRepresentationSubmit(false); + setShowQuestionnaireSection(7); + }} + > + {t("common:change-link-label")} + + {" "} + {/* {FieldsTranslations( + rows[0].value + )} */} + + +
+
+ {repFormData.copyOfEnforcementNotice == "No" && ( +
+
+ Evidence +
+ +
+ {repFormData.copyOfEnforcementNoticeEvidence} +
+ +
+ { + setRepresentationSubmit(false); + setShowQuestionnaireSection(7); }} > {t("common:change-link-label")} @@ -1016,19 +1893,16 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => { )} )} - {_.has(repFormData, "developmentNotTakePlaceBiodiversity") && ( + {_.has(repFormData, "enforcementNoticePlan") && ( <>
- 24c. No development shall take place until a scheme - for biodiversity enhancement has been submitted to - and agreed in writing by the local planning - authority. Development shall be carried out in - accordance with the approved details. + {"34. " + + t("myrepresentations:enf-section-question-34")}
- {repFormData.developmentNotTakePlaceBiodiversity} + {repFormData.enforcementNoticePlan}
@@ -1036,7 +1910,8 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(7); }} > {t("common:change-link-label")} @@ -1049,26 +1924,48 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
+ {repFormData.enforcementNoticePlan != "Yes" && ( +
+
+ Evidence +
+ +
+ {repFormData.enforcementNoticePlanEvidence} +
+ +
+ { + setRepresentationSubmit(false); + setShowQuestionnaireSection(7); + }} + > + {t("common:change-link-label")} + + {" "} + {/* {FieldsTranslations( + rows[0].value + )} */} + + +
+
+ )} )} - {_.has(repFormData, "developmentNotTakePlaceBroadband") && ( + {_.has(repFormData, "listOfNotifiedOfEnforcement") && ( <>
- 24d. No development shall take place until a scheme - to enable the provision of gigabit capable broadband - infrastructure from the site boundary to the - dwellings/buildings hereby permitted has been - submitted to and agreed in writing by the local - planning authority. Development shall be carried out - in accordance with the approved details. Reason: To - support the roll-out of digital communications - infrastructure across Wales in accordance with - Policy 13 of Future Wales. + {"35. " + + t("myrepresentations:enf-section-question-35")}
- {repFormData.developmentNotTakePlaceBroadband} + {repFormData.enforcementNoticePlan}
@@ -1076,7 +1973,8 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(7); }} > {t("common:change-link-label")} @@ -1089,7 +1987,7 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
- {repFormData.developmentNotTakePlaceBroadband == "Yes" && ( + {repFormData.listOfNotifiedOfEnforcement != "Yes" && (
Evidence @@ -1097,7 +1995,7 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
{ - repFormData.developmentNotTakePlaceBroadbandEvidence + repFormData.listOfNotifiedOfEnforcementEvidence }
@@ -1106,197 +2004,8 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); - }} - > - {t("common:change-link-label")} - - {" "} - {/* {FieldsTranslations( - rows[0].value - )} */} - - - -
- )} - - )} - {_.has(repFormData, "developmentAnyOtherConditions") && ( - <> -
-
- 25. Do you consider other conditions, or amended - versions of the above standard conditions, to be - necessary? -
- -
- {repFormData.developmentAnyOtherConditions} -
- -
- { - setSubmitBack(); - }} - > - {t("common:change-link-label")} - - {" "} - {/* {FieldsTranslations( - rows[0].value - )} */} - - -
-
- {repFormData.developmentAnyOtherConditions == "Yes" && ( -
-
- Evidence -
- -
- { - repFormData.developmentAnyOtherConditionsEvidence - } -
- -
- { - setSubmitBack(); - }} - > - {t("common:change-link-label")} - - {" "} - {/* {FieldsTranslations( - rows[0].value - )} */} - - -
-
- )} - - )} - {_.has(repFormData, "copyOfApplicantsCertificate") && ( - <> -
-
- 26. A copy of the applicant’s certificate confirming - that they notified persons with an interest in the - land?* -
- -
- {repFormData.copyOfApplicantsCertificate} -
- -
- { - setSubmitBack(); - }} - > - {t("common:change-link-label")} - - {" "} - {/* {FieldsTranslations( - rows[0].value - )} */} - - -
-
- {repFormData.copyOfApplicantsCertificate == "Yes" && ( -
-
- Evidence -
- -
- { - repFormData.copyOfApplicantsCertificateEvidence - } -
- -
- { - setSubmitBack(); - }} - > - {t("common:change-link-label")} - - {" "} - {/* {FieldsTranslations( - rows[0].value - )} */} - - -
-
- )} - - )} - {_.has(repFormData, "advertismentGiven") && ( - <> -
-
- 27. Evidence of any publicity given to the - application, including site notices and local - advertisement?** -
- -
- {repFormData.advertismentGiven} -
- -
- { - setSubmitBack(); - }} - > - {t("common:change-link-label")} - - {" "} - {/* {FieldsTranslations( - rows[0].value - )} */} - - -
-
- {repFormData.advertismentGiven == "Yes" && ( -
-
- Evidence -
- -
- {repFormData.advertismentGivenEvidence} -
- -
- { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(7); }} > {t("common:change-link-label")} @@ -1316,9 +2025,8 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => { <>
- 28. A copy of the letter with which you notified - people of the appeal AND a list of the people you - notified? + {"36. " + + t("myrepresentations:enf-section-question-36")}
@@ -1330,7 +2038,8 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(7); }} > {t("common:change-link-label")} @@ -1343,7 +2052,7 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
- {repFormData.copyOfLetterOfAppealNotification == "Yes" && ( + {repFormData.copyOfLetterOfAppealNotification == "No" && (
Evidence @@ -1360,7 +2069,8 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(7); }} > {t("common:change-link-label")} @@ -1380,8 +2090,8 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => { <>
- 29. The LPA’s Environmental Impact Assessment - Screening Opinion, if applicable? + {"37. " + + t("myrepresentations:enf-section-question-37")}
@@ -1393,7 +2103,8 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(7); }} > {t("common:change-link-label")} @@ -1406,7 +2117,7 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
- {repFormData.lpaEIAOS == "Yes" && ( + {repFormData.lpaEIAOS == "No" && (
Evidence @@ -1421,73 +2132,8 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); - }} - > - {t("common:change-link-label")} - - {" "} - {/* {FieldsTranslations( - rows[0].value - )} */} - - - -
- )} - - )} - {_.has(repFormData, "advertismentConsentDiscontinuanceNotice") && ( - <> -
-
- 30. Advertisement consent proposals only: A true - copy of the Discontinuance Notice (if one has been - issued)? -
- -
- { - repFormData.advertismentConsentDiscontinuanceNotice - } -
- -
- { - setSubmitBack(); - }} - > - {t("common:change-link-label")} - - {" "} - {/* {FieldsTranslations( - rows[0].value - )} */} - - -
-
- {repFormData.lpaEIAOS == "Yes" && ( -
-
- Evidence -
- -
- { - repFormData.advertismentConsentDiscontinuanceNoticeEvidence - } -
- -
- { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(7); }} > {t("common:change-link-label")} @@ -1507,10 +2153,8 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => { <>
- 31. Details of other appeals or applications - relating to the site, or a nearby site, which are - still being considered by PEDW or the Welsh - Ministers? + {"38. " + + t("myrepresentations:enf-section-question-38")}
@@ -1522,7 +2166,8 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(7); }} > {t("common:change-link-label")} @@ -1550,7 +2195,8 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(7); }} > {t("common:change-link-label")} @@ -1570,9 +2216,8 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => { <>
- 32. Details of any previous appeal decision relating - to the site or a nearby site referred to by the LPA - or applicant? + {"39. " + + t("myrepresentations:enf-section-question-39")}
@@ -1584,7 +2229,8 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(7); }} > {t("common:change-link-label")} @@ -1612,7 +2258,8 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(7); }} > {t("common:change-link-label")} @@ -1645,7 +2292,8 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(7); }} > {t("common:change-link-label")} @@ -1673,7 +2321,8 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(); }} > {t("common:change-link-label")} @@ -1689,95 +2338,104 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => { )} )} - {_.has(repFormData, "signedDate") && ( - <> -
-
Signed
+ {/* Section 9 Declaration */} + <> +

+ Declaration +

+ {_.has(repFormData, "signedDate") && ( + <> +
+
Signed
-
- {repFormData.caseOfficer} -
+
+ {repFormData.caseOfficer} +
-
- { - setSubmitBack(); - }} - > - {t("common:change-link-label")} - - {" "} - {/* {FieldsTranslations( +
+ { + setRepresentationSubmit(false); + setShowQuestionnaireSection(9); + }} + > + {t("common:change-link-label")} + + {" "} + {/* {FieldsTranslations( rows[0].value )} */} - - -
-
- - )} - {_.has(repFormData, "caseOfficer") && ( - <> -
-
Date
+ + + +
+ + )} + {_.has(repFormData, "caseOfficer") && ( + <> +
+
Date
-
- {formatDates(repFormData.signedDate)} -
+
+ {formatDates(repFormData.signedDate)} +
-
- { - setSubmitBack(); - }} - > - {t("common:change-link-label")} - - {" "} - {/* {FieldsTranslations( +
+ { + setRepresentationSubmit(false); + setShowQuestionnaireSection(9); + }} + > + {t("common:change-link-label")} + + {" "} + {/* {FieldsTranslations( rows[0].value )} */} - - -
-
- - )} - {_.has(repFormData, "onBehalfOfLPA") && ( - <> -
-
- On behalf of -
+ + + +
+ + )} + {_.has(repFormData, "onBehalfOfLPA") && ( + <> +
+
+ On behalf of +
-
- {repFormData.onBehalfOfLPA} -
+
+ {repFormData.onBehalfOfLPA} +
-
- { - setSubmitBack(); - }} - > - {t("common:change-link-label")} - - {" "} - {/* {FieldsTranslations( +
+ { + setRepresentationSubmit(false); + setShowQuestionnaireSection(9); + }} + > + {t("common:change-link-label")} + + {" "} + {/* {FieldsTranslations( rows[0].value )} */} - - -
-
- - )} + + + +
+ + )} + ); }; diff --git a/components/case/representation/representationQuestionnairesCheck/representationLPAQuestionnaireCheck_s78.js b/components/case/representation/representationQuestionnairesCheck/representationLPAQuestionnaireCheck_s78.js index 2e6c1a1f..b719a289 100644 --- a/components/case/representation/representationQuestionnairesCheck/representationLPAQuestionnaireCheck_s78.js +++ b/components/case/representation/representationQuestionnairesCheck/representationLPAQuestionnaireCheck_s78.js @@ -4,11 +4,21 @@ import { formatDates } from "../../../utils"; let RepLPAQuestionnaireCheck_s78 = (props) => { let { t } = useTranslation(); - const { formObj, currentView, setSubmitBack } = props; + const { + formObj, + currentView, + setSubmitBack, + showQuestionnaireSection, + setShowQuestionnaireSection, + setRepresentationSubmit, + questionnaireCount, + } = props; const repFormData = formObj.representationForm.values; return ( <> + {showQuestionnaireSection} + {_.has(repFormData, "procedureType") && ( <>
@@ -26,7 +36,8 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(1); }} > {t("common:change-link-label")} @@ -87,7 +98,8 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(1); }} > {t("common:change-link-label")} @@ -119,7 +131,8 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(1); }} > {t("common:change-link-label")} @@ -152,7 +165,8 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(1); }} > {t("common:change-link-label")} @@ -187,7 +201,8 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(1); }} > {t("common:change-link-label")} @@ -221,7 +236,8 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(1); }} > {t("common:change-link-label")} @@ -255,7 +271,8 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(1); }} > {t("common:change-link-label")} @@ -288,7 +305,8 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(1); }} > {t("common:change-link-label")} @@ -321,7 +339,8 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(1); }} > {t("common:change-link-label")} @@ -357,7 +376,8 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(2); }} > {t("common:change-link-label")} @@ -394,7 +414,8 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(2); }} > {t("common:change-link-label")} @@ -426,7 +447,8 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(2); }} > {t("common:change-link-label")} @@ -458,7 +480,8 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(3); }} > {t("common:change-link-label")} @@ -489,7 +512,8 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(3); }} > {t("common:change-link-label")} @@ -522,7 +546,8 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(3); }} > {t("common:change-link-label")} @@ -555,7 +580,8 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(3); }} > {t("common:change-link-label")} @@ -588,7 +614,8 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(3); }} > {t("common:change-link-label")} @@ -622,7 +649,8 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(3); }} > {t("common:change-link-label")} @@ -655,7 +683,8 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(3); }} > {t("common:change-link-label")} @@ -688,7 +717,8 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(3); }} > {t("common:change-link-label")} @@ -721,7 +751,8 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(3); }} > {t("common:change-link-label")} @@ -755,7 +786,8 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(3); }} > {t("common:change-link-label")} @@ -788,7 +820,8 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(3); }} > {t("common:change-link-label")} @@ -821,7 +854,8 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(3); }} > {t("common:change-link-label")} @@ -854,7 +888,8 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(3); }} > {t("common:change-link-label")} @@ -888,7 +923,8 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(3); }} > {t("common:change-link-label")} @@ -922,7 +958,8 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(3); }} > {t("common:change-link-label")} @@ -955,7 +992,8 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(3); }} > {t("common:change-link-label")} @@ -988,7 +1026,8 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(4); }} > {t("common:change-link-label")} @@ -1024,7 +1063,8 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(4); }} > {t("common:change-link-label")} @@ -1057,7 +1097,8 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(4); }} > {t("common:change-link-label")} @@ -1093,7 +1134,8 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(4); }} > {t("common:change-link-label")} @@ -1133,7 +1175,8 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(4); }} > {t("common:change-link-label")} @@ -1166,7 +1209,8 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(4); }} > {t("common:change-link-label")} @@ -1200,7 +1244,8 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(4); }} > {t("common:change-link-label")} @@ -1233,7 +1278,8 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(4); }} > {t("common:change-link-label")} @@ -1267,7 +1313,8 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(5); }} > {t("common:change-link-label")} @@ -1300,7 +1347,8 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(5); }} > {t("common:change-link-label")} @@ -1334,7 +1382,8 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(5); }} > {t("common:change-link-label")} @@ -1367,7 +1416,8 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(5); }} > {t("common:change-link-label")} @@ -1401,7 +1451,8 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(5); }} > {t("common:change-link-label")} @@ -1434,7 +1485,8 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(5); }} > {t("common:change-link-label")} @@ -1467,7 +1519,8 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(5); }} > {t("common:change-link-label")} @@ -1500,7 +1553,8 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(5); }} > {t("common:change-link-label")} @@ -1536,7 +1590,8 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(5); }} > {t("common:change-link-label")} @@ -1569,7 +1624,8 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(5); }} > {t("common:change-link-label")} @@ -1604,7 +1660,8 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(5); }} > {t("common:change-link-label")} @@ -1637,7 +1694,8 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(5); }} > {t("common:change-link-label")} @@ -1671,7 +1729,8 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(5); }} > {t("common:change-link-label")} @@ -1704,7 +1763,8 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(5); }} > {t("common:change-link-label")} @@ -1737,7 +1797,8 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(5); }} > {t("common:change-link-label")} @@ -1770,7 +1831,8 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(5); }} > {t("common:change-link-label")} @@ -1800,7 +1862,8 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(7); }} > {t("common:change-link-label")} @@ -1829,7 +1892,8 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(7); }} > {t("common:change-link-label")} @@ -1860,7 +1924,8 @@ let RepLPAQuestionnaireCheck_s78 = (props) => { className="govuk-link" href="#" onClick={() => { - setSubmitBack(); + setRepresentationSubmit(false); + setShowQuestionnaireSection(7); }} > {t("common:change-link-label")}