From ccd3b8ffc5fb111154a672caf771bbf38e26eb8b Mon Sep 17 00:00:00 2001 From: rdbsolutions Date: Wed, 6 Dec 2023 15:20:09 +0000 Subject: [PATCH] update build id to store version number --- components/case/representation/index.js | 1 + .../representation/representationAgent.js | 24 ++- .../representation/representationAppellant.js | 183 ++++++++++-------- .../representation/representationElements.js | 54 +++--- .../representationInterestedPartyPerson.js | 158 ++++++++------- next.config.js | 10 +- package.json | 1 + store/store.js | 2 +- 8 files changed, 250 insertions(+), 183 deletions(-) diff --git a/components/case/representation/index.js b/components/case/representation/index.js index eaf568da..f8b1b2d5 100644 --- a/components/case/representation/index.js +++ b/components/case/representation/index.js @@ -271,6 +271,7 @@ let MakeRepresentation = (props) => { /> ); break; + case "interestedparty": case t( "myrepresentations:capacity-options-arr-interested" ).toLowerCase(): diff --git a/components/case/representation/representationAgent.js b/components/case/representation/representationAgent.js index a1cc8e24..7bb7b1c3 100644 --- a/components/case/representation/representationAgent.js +++ b/components/case/representation/representationAgent.js @@ -56,12 +56,24 @@ const RepAgent = (props) => { > {t("myrepresentations:kind-of-rep-label")} - + {typeof props.representationType == "undefined" || + typeof formObj.representationForm.values + .representationType == "undefined" ? ( + + ) : ( + + )} {/*
diff --git a/components/case/representation/representationAppellant.js b/components/case/representation/representationAppellant.js index 4253243a..ce788c73 100644 --- a/components/case/representation/representationAppellant.js +++ b/components/case/representation/representationAppellant.js @@ -56,13 +56,12 @@ const RepAppellant = (props) => { className="govuk-label govuk-body-m" htmlFor="representationType" > - {t( - "myrepresentations:representation-from-an-agent-heading" - )} - ? + {t("myrepresentations:kind-of-rep-label")} - {typeof props.representationType == "undefined" ? ( + {typeof props.representationType == "undefined" || + typeof formObj.representationForm.values + .representationType == "undefined" ? ( { optionsArr={appellantApplicantRepresentationArr} /> ) : ( -

{props.representationType}

+ )}
@@ -90,79 +95,103 @@ const RepAppellant = (props) => { */} -
-
-

- {t("myrepresentations:enter-comment-label")} -

-
-
- {t("myrepresentations:comments-set-out-label")}: -
-
- - {RepresentationGuidanceText( - formObj.representationForm.values.appealType - )} -
-
- -
- {props.currentView.caseReference.hasOwnProperty( - "repDetails" - ) && - props.currentView.caseReference.repDetails.filesList - .length > 0 ? ( -
- {props.currentView.caseReference.repDetails.filesList.map( - (blob, i) => ( -
- {blob.name} - - - {blob.name} ( - {bytesToSize(blob.size)}) - -
- ) + {(typeof props.representationType != "undefined" || + typeof formObj.representationForm.values.representationType != + "undefined") && ( +
+
+

+ {t("myrepresentations:enter-comment-label")} +

+
+
+ {t("myrepresentations:comments-set-out-label")}: +
+
+ + {formObj.representationForm.values.appealType == + "846040004" ? ( +

+ {t( + "myrepresentations:questionnaire-publish-policy-label" + )}{" "} + + https://gov.wales/planning-and-environment-decisions-wales-publishing-policy-html + +

+ ) : ( +

+ {t( + "myrepresentations:publish-policy-label" + )}{" "} + + https://gov.wales/planning-and-environment-decisions-wales-publishing-policy-html + +

)}
- ) : ( - "" - )} -
-
{" "} -
+
+ +
+ {props.currentView.caseReference.hasOwnProperty( + "repDetails" + ) && + props.currentView.caseReference.repDetails.filesList + .length > 0 ? ( +
+ {props.currentView.caseReference.repDetails.filesList.map( + (blob, i) => ( +
+ {blob.name} + + + {blob.name} ( + {bytesToSize(blob.size)}) + +
+ ) + )} +
+ ) : ( + "" + )} +
+
{" "} +
+ )}
+
+
+

+ {t("myrepresentations:enter-comment-label")} +

+
+
+ {t( + "myrepresentations:comments-set-out-label" + )} + : +
+
+ +
+ +
+ +
+
+
{" "} +
+ + )}