From 086942df7ae03bf0dc7ea5662672a9d7579a3c75 Mon Sep 17 00:00:00 2001 From: rdbsolutions Date: Tue, 7 Jan 2025 08:01:25 +0000 Subject: [PATCH] questionnaire defect 22 and 9 --- .../case/representation/representationElements.js | 10 +++++++--- .../representationLPAQuestionnaire_s78.js | 2 ++ locales/en/myrepresentations.json | 4 ++-- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/components/case/representation/representationElements.js b/components/case/representation/representationElements.js index eae5eafd..307c836a 100644 --- a/components/case/representation/representationElements.js +++ b/components/case/representation/representationElements.js @@ -367,8 +367,7 @@ export const RenderLPACondtionalRadioList = ({ ...custom }) => { const required = (value) => (value ? undefined : "Required"); - - //console.log(error); + let { t } = useTranslation(); return ( <> @@ -401,7 +400,12 @@ export const RenderLPACondtionalRadioList = ({ -
+ {typeof custom.hint != undefined && ( +
+ {t(custom.hint)} +
+ )} +
{Object.keys(options).map((key, index) => (
diff --git a/components/case/representation/representationQuestionnaires/representationLPAQuestionnaire_s78.js b/components/case/representation/representationQuestionnaires/representationLPAQuestionnaire_s78.js index 0347009b..d7fb1332 100644 --- a/components/case/representation/representationQuestionnaires/representationLPAQuestionnaire_s78.js +++ b/components/case/representation/representationQuestionnaires/representationLPAQuestionnaire_s78.js @@ -814,6 +814,7 @@ let S78_Questionnaire = (props) => { legend={t( "myrepresentations:s78-section-question-27" )} + hint={t("myrepresentations:s78-footnote-two")} conditionalLabel={t( "myrepresentations:s78-section-question-27-hint" )} @@ -866,6 +867,7 @@ let S78_Questionnaire = (props) => { legend={t( "myrepresentations:s78-section-question-29" )} + hint={t("myrepresentations:s78-footnote-one")} conditionalLabel={t( "myrepresentations:s78-section-question-29-hint" )} diff --git a/locales/en/myrepresentations.json b/locales/en/myrepresentations.json index dc0cc232..8a8d71e4 100644 --- a/locales/en/myrepresentations.json +++ b/locales/en/myrepresentations.json @@ -206,8 +206,8 @@ "s78-heading-para-one": "For Planning, Conservation area, Listed Building and Advertisement applications/appeals", "s78-heading-para-two": "The LPA must send the completed questionnaire and any attachments to PEDW.casework@gov.wales and the appellant (or their agent) within 5 working days of the start date specified in our start letter", "section-heading-zero": "Case Details", - "s78-footnote-one": "* Article 11 of The Town and Country Planning (Development Management Procedure) (Wales) Order 2012; Regulation 7 of The Town and Country Planning (Listed Buildings and Conservation Areas) (Wales) Regulations 2012", - "s78-footnote-two": "** Article 12 of The Town and Country Planning (Development Management Procedure) (Wales) Order 2012; Section 67/73 of The Town and Country Planning (Listed Buildings and Conservation Areas) Act 1990; Regulation 10 of The Town and Country Planning (Listed Buildings and Conservation Areas) (Wales) Regulations 2012", + "s78-footnote-one": "Article 11 of The Town and Country Planning (Development Management Procedure) (Wales) Order 2012; Regulation 7 of The Town and Country Planning (Listed Buildings and Conservation Areas) (Wales) Regulations 2012", + "s78-footnote-two": "Article 12 of The Town and Country Planning (Development Management Procedure) (Wales) Order 2012; Section 67/73 of The Town and Country Planning (Listed Buildings and Conservation Areas) Act 1990; Regulation 10 of The Town and Country Planning (Listed Buildings and Conservation Areas) (Wales) Regulations 2012", "statement-case-type-label": "Case type", "statement-representation-capacity-label": "Representation capacity", "statement-representation-capacity-details-label": "Representation capacity details",