welsh text amends on reps

This commit is contained in:
2025-02-10 14:13:39 +00:00
parent 608348910f
commit 130102ad30
3 changed files with 57 additions and 39 deletions
@@ -324,45 +324,46 @@ export const RenderCondtionalRadioList = ({
className="govuk-label govuk-radios__label" className="govuk-label govuk-radios__label"
htmlFor={id + "_" + index} htmlFor={id + "_" + index}
> >
{options[key]} {options[key] == "Yes"
? t(
"myrepresentations:questionnaire-yes"
)
: t(
"myrepresentations:questionnaire-no"
)}
</label> </label>
</div> </div>
{value == {value == "Yes" && options[key] == "Yes" && (
t("myrepresentations:questionnaire-yes") && <div
options[key] == className="govuk-radios__conditional "
t( id={"conditional-" + id}
"myrepresentations:questionnaire-yes" >
) && (
<div <div
className="govuk-radios__conditional " className="govuk-form-group"
id={"conditional-" + id} key={"yes_group_" + key}
> >
<div <label
className="govuk-form-group" className="govuk-label"
key={"yes_group_" + key} htmlFor={id + "_details"}
> >
<label {t(
className="govuk-label" "myrepresentations:representation-onbehalfof-label"
htmlFor={id + "_details"} )}
> </label>
{t( <Field
"myrepresentations:representation-onbehalfof-label" className="govuk-input govuk-!-width-one-half"
)} id={id + "_details"}
</label> name={id + "_details"}
<Field component={RenderTextfield}
className="govuk-input govuk-!-width-one-half" type="text"
id={id + "_details"} validate={[required]}
name={id + "_details"} errorMsg={t(
component={RenderTextfield} "myrepresentations:is-required-label"
type="text" )}
validate={[required]} />
errorMsg={t(
"myrepresentations:is-required-label"
)}
/>
</div>
</div> </div>
)} </div>
)}
</div> </div>
))} ))}
</div> </div>
+19 -2
View File
@@ -285,10 +285,27 @@ const TopThree = (props) => {
'$..[?(@.value=="' + '$..[?(@.value=="' +
showTopThreeArr[key] showTopThreeArr[key]
.representationCapacity + .representationCapacity +
'")].value_cy', '" ||@.value_cy=="' +
showTopThreeArr[key]
.representationCapacity +
'" )].value_cy',
transLookup transLookup
) )
: showTopThreeArr[key].representationCapacity || ""} : jsonpath(
'$..[?(@.value_cy=="' +
showTopThreeArr[key]
.representationCapacity +
'")].value',
transLookup
).length > 0
? jsonpath(
'$..[?(@.value_cy=="' +
showTopThreeArr[key]
.representationCapacity +
'")].value',
transLookup
)
: showTopThreeArr[key].representationCapacity}
</div> </div>
<div className="cardModuleReference"> <div className="cardModuleReference">
<b>{t("myportal:date-raised")}:</b> <b>{t("myportal:date-raised")}:</b>
+4 -4
View File
@@ -46,10 +46,10 @@
"rep-complete-para-three": "Byddwch yn derbyn cadarnhad yn fuan a anfonir at y cyfeiriad e-bost a roddwyd gennych.", "rep-complete-para-three": "Byddwch yn derbyn cadarnhad yn fuan a anfonir at y cyfeiriad e-bost a roddwyd gennych.",
"lpa-capacity-para-one": "Maer ffurflen hon yn eich galluogi i gyflwyno datganiadau, sylwadau a holiaduron ar achos i Benderfyniadau Cynllunio ac Amgylchedd Cymru.", "lpa-capacity-para-one": "Maer ffurflen hon yn eich galluogi i gyflwyno datganiadau, sylwadau a holiaduron ar achos i Benderfyniadau Cynllunio ac Amgylchedd Cymru.",
"s78-section-heading-one": "Y weithdrefn apelio ac ymweliad safle", "s78-section-heading-one": "Y weithdrefn apelio ac ymweliad safle",
"s78-section-question-1": "Cyfeirnod PCAC:", "s78-section-question-1": "Cyfeirnod PCAC",
"s78-section-question-2": "Cyfeirnod yr ACLl:", "s78-section-question-2": "Cyfeirnod yr ACLl",
"s78-section-question-4": "Math o apêl:", "s78-section-question-4": "Math o apêl",
"s78-section-question-3": "Cyfeiriad y Safle:", "s78-section-question-3": "Cyfeiriad y Safle",
"s78-section-question-5": "Pa weithdrefn ydych chi'n credu y dylai'r apêl ei dilyn?", "s78-section-question-5": "Pa weithdrefn ydych chi'n credu y dylai'r apêl ei dilyn?",
"s78-section-question-6": "A fydd angen i'r Arolygydd fynd i mewn i safle/eiddo'r apêl?", "s78-section-question-6": "A fydd angen i'r Arolygydd fynd i mewn i safle/eiddo'r apêl?",
"s78-section-question-7": "A ydych chi'n credu bod angen i'r Arolygydd fynd ar dir/eiddo preifat cyfagos i weld y safle?", "s78-section-question-7": "A ydych chi'n credu bod angen i'r Arolygydd fynd ar dir/eiddo preifat cyfagos i weld y safle?",