welsh trans for validation message
This commit is contained in:
@@ -61,7 +61,7 @@ let RepCapacitySelection = (props) => {
|
|||||||
options={capacityOptionsArr}
|
options={capacityOptionsArr}
|
||||||
id="representationCapacity"
|
id="representationCapacity"
|
||||||
className="govuk-radios__input"
|
className="govuk-radios__input"
|
||||||
errorMsg="Select an option"
|
errorMsg={t("newappeal:select-an-option-label")}
|
||||||
component={RenderRadioList}
|
component={RenderRadioList}
|
||||||
validate={[required]}
|
validate={[required]}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -635,7 +635,7 @@ export function YesNofield(props) {
|
|||||||
id={props.name}
|
id={props.name}
|
||||||
className={"govuk-radios__input"}
|
className={"govuk-radios__input"}
|
||||||
validate={eval(validation)}
|
validate={eval(validation)}
|
||||||
errorMsg="Select an option"
|
errorMsg={t("newappeal:select-an-option-label")}
|
||||||
component={RenderYesNo}
|
component={RenderYesNo}
|
||||||
inline={_.has(props, "inline") ? props.inline : "true"}
|
inline={_.has(props, "inline") ? props.inline : "true"}
|
||||||
requiredDocumentLabel={props.requiredDocumentLabel}
|
requiredDocumentLabel={props.requiredDocumentLabel}
|
||||||
@@ -807,7 +807,7 @@ export function Radiofield(props) {
|
|||||||
options={fieldOptions}
|
options={fieldOptions}
|
||||||
id={name}
|
id={name}
|
||||||
//validate={[required]}
|
//validate={[required]}
|
||||||
errorMsg="Select an option"
|
errorMsg={t("newappeal:select-an-option-label")}
|
||||||
component={RenderRadio}
|
component={RenderRadio}
|
||||||
inline={props.inline}
|
inline={props.inline}
|
||||||
hint={props.hint}
|
hint={props.hint}
|
||||||
@@ -826,7 +826,7 @@ export function Radiofield(props) {
|
|||||||
options={fieldOptions}
|
options={fieldOptions}
|
||||||
id={name}
|
id={name}
|
||||||
//validate={[required]}
|
//validate={[required]}
|
||||||
errorMsg="Select an option"
|
errorMsg={t("newappeal:select-an-option-label")}
|
||||||
component={RenderRadio}
|
component={RenderRadio}
|
||||||
inline={props.inline}
|
inline={props.inline}
|
||||||
hint={props.hint}
|
hint={props.hint}
|
||||||
@@ -930,7 +930,7 @@ export function CheckBoxfield(props) {
|
|||||||
id={props.id}
|
id={props.id}
|
||||||
className={props.className}
|
className={props.className}
|
||||||
//validate={[required]}
|
//validate={[required]}
|
||||||
errorMsg="Select an option"
|
errorMsg={t("newappeal:select-an-option-label")}
|
||||||
component={RenderCheckBox}
|
component={RenderCheckBox}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -397,7 +397,7 @@ let AboutYou = (props) => {
|
|||||||
options={fieldOptions}
|
options={fieldOptions}
|
||||||
id={name}
|
id={name}
|
||||||
validate={[required]}
|
validate={[required]}
|
||||||
errorMsg="Select an option"
|
errorMsg={t("newappeal:select-an-option-label")}
|
||||||
component={RenderRadio}
|
component={RenderRadio}
|
||||||
inline={props.inline}
|
inline={props.inline}
|
||||||
hint={props.hint}
|
hint={props.hint}
|
||||||
@@ -416,7 +416,7 @@ let AboutYou = (props) => {
|
|||||||
options={fieldOptions}
|
options={fieldOptions}
|
||||||
id={name}
|
id={name}
|
||||||
validate={[required]}
|
validate={[required]}
|
||||||
errorMsg="Select an option"
|
errorMsg={t("newappeal:select-an-option-label")}
|
||||||
component={RenderRadio}
|
component={RenderRadio}
|
||||||
inline={props.inline}
|
inline={props.inline}
|
||||||
hint={props.hint}
|
hint={props.hint}
|
||||||
@@ -508,7 +508,7 @@ let AboutYou = (props) => {
|
|||||||
id={"pinswg_appellantagent"}
|
id={"pinswg_appellantagent"}
|
||||||
className="govuk-radios__input"
|
className="govuk-radios__input"
|
||||||
validate={"[required]"}
|
validate={"[required]"}
|
||||||
errorMsg="Select an option"
|
errorMsg={t("newappeal:select-an-option-label")}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{appellantAgentValue == "846040000" && (
|
{appellantAgentValue == "846040000" && (
|
||||||
@@ -583,7 +583,7 @@ let AboutYou = (props) => {
|
|||||||
id={"pinswg_contactprefs"}
|
id={"pinswg_contactprefs"}
|
||||||
className="govuk-radios__input"
|
className="govuk-radios__input"
|
||||||
validate={"[required]"}
|
validate={"[required]"}
|
||||||
errorMsg="Select an option"
|
errorMsg={t("newappeal:select-an-option-label")}
|
||||||
/>
|
/>
|
||||||
<Radiofield
|
<Radiofield
|
||||||
name={"pinswg_languagepreference"}
|
name={"pinswg_languagepreference"}
|
||||||
@@ -595,7 +595,7 @@ let AboutYou = (props) => {
|
|||||||
id={"pinswg_languagepreference"}
|
id={"pinswg_languagepreference"}
|
||||||
className="govuk-radios__input"
|
className="govuk-radios__input"
|
||||||
validate={"[required]"}
|
validate={"[required]"}
|
||||||
errorMsg="Select an optionqqq"
|
errorMsg={t("newappeal:select-an-option-label")}
|
||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
@@ -740,7 +740,7 @@ let AboutYou = (props) => {
|
|||||||
id={"pinswg_contactprefs"}
|
id={"pinswg_contactprefs"}
|
||||||
className="govuk-radios__input"
|
className="govuk-radios__input"
|
||||||
validate={[required]}
|
validate={[required]}
|
||||||
errorMsg="Select an option"
|
errorMsg={t("newappeal:select-an-option-label")}
|
||||||
/>
|
/>
|
||||||
<Radiofield
|
<Radiofield
|
||||||
name={"pinswg_languagepreference"}
|
name={"pinswg_languagepreference"}
|
||||||
@@ -752,7 +752,7 @@ let AboutYou = (props) => {
|
|||||||
id={"pinswg_languagepreference"}
|
id={"pinswg_languagepreference"}
|
||||||
className="govuk-radios__input"
|
className="govuk-radios__input"
|
||||||
validate={[required]}
|
validate={[required]}
|
||||||
errorMsg="Select an optionwww"
|
errorMsg={t("newappeal:select-an-option-label")}
|
||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -223,7 +223,6 @@ let CreateCase = (props) => {
|
|||||||
}) => {
|
}) => {
|
||||||
let { t } = useTranslation();
|
let { t } = useTranslation();
|
||||||
const required = (value) => (value ? undefined : "Required");
|
const required = (value) => (value ? undefined : "Required");
|
||||||
console.log(custom.hint);
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div
|
<div
|
||||||
@@ -378,7 +377,7 @@ let CreateCase = (props) => {
|
|||||||
options={fieldOptions}
|
options={fieldOptions}
|
||||||
id={name}
|
id={name}
|
||||||
validate={[required]}
|
validate={[required]}
|
||||||
errorMsg="Select an option"
|
errorMsg={t("newappeal:select-an-option-label")}
|
||||||
component={RenderRadio}
|
component={RenderRadio}
|
||||||
inline={props.inline}
|
inline={props.inline}
|
||||||
hint={props.hint}
|
hint={props.hint}
|
||||||
@@ -397,7 +396,7 @@ let CreateCase = (props) => {
|
|||||||
options={fieldOptions}
|
options={fieldOptions}
|
||||||
id={name}
|
id={name}
|
||||||
validate={[required]}
|
validate={[required]}
|
||||||
errorMsg="Select an option"
|
errorMsg={t("newappeal:select-an-option-label")}
|
||||||
component={RenderRadio}
|
component={RenderRadio}
|
||||||
inline={props.inline}
|
inline={props.inline}
|
||||||
hint={props.hint}
|
hint={props.hint}
|
||||||
@@ -435,17 +434,17 @@ let CreateCase = (props) => {
|
|||||||
|
|
||||||
appTypeCollection = getFormCollectionByID(whichAppealType);
|
appTypeCollection = getFormCollectionByID(whichAppealType);
|
||||||
|
|
||||||
console.log(
|
// console.log(
|
||||||
"/newappeal" +
|
// "/newappeal" +
|
||||||
"/" +
|
// "/" +
|
||||||
appTypeCollection.UrlName +
|
// appTypeCollection.UrlName +
|
||||||
"?lpa=" +
|
// "?lpa=" +
|
||||||
values.lpaTypes +
|
// values.lpaTypes +
|
||||||
"&apt=" +
|
// "&apt=" +
|
||||||
whichAppealType +
|
// whichAppealType +
|
||||||
"&id=" //+
|
// "&id=" //+
|
||||||
// data.incidentid
|
// // data.incidentid
|
||||||
);
|
// );
|
||||||
|
|
||||||
delete values.confirmHASCAS;
|
delete values.confirmHASCAS;
|
||||||
|
|
||||||
@@ -534,15 +533,13 @@ let CreateCase = (props) => {
|
|||||||
<Radiofield
|
<Radiofield
|
||||||
name={"confirmHASCAS"}
|
name={"confirmHASCAS"}
|
||||||
datafieldname={"confirmHASCAS"}
|
datafieldname={"confirmHASCAS"}
|
||||||
label={"Confirm HAS/CAS appeal is required"}
|
label={t("newappeal:hascas-confirmation-label")}
|
||||||
hint={
|
hint={t("newappeal:hascas-confirmation-hint")}
|
||||||
"This appeal route is only applicable if your application relates the refusal of planning permission, orthe refusal of an application to vary or remove a condition attached to a previous permision. All other applications will be submitted via a Section 78 Planning Appeal"
|
options="[true|newappeal:yes-option-label,false|newappeal:no-option-label]"
|
||||||
}
|
|
||||||
options="[true|Yes,false|No]"
|
|
||||||
id={"confirmHASCAS"}
|
id={"confirmHASCAS"}
|
||||||
className="govuk-radios__input"
|
className="govuk-radios__input"
|
||||||
validate={"[required]"}
|
validate={"[required]"}
|
||||||
errorMsg="Select an option"
|
errorMsg={t("newappeal:select-an-option-label")}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
<button
|
<button
|
||||||
|
|||||||
@@ -9,6 +9,11 @@
|
|||||||
"select-default": "Dewiswch...",
|
"select-default": "Dewiswch...",
|
||||||
"change-link-label": "Newid",
|
"change-link-label": "Newid",
|
||||||
"submit-appeal-button": "Cyflwyno apêl",
|
"submit-appeal-button": "Cyflwyno apêl",
|
||||||
|
"yes-option-label": "Ydw",
|
||||||
|
"no-option-label": "Na",
|
||||||
|
"select-an-option-label": "Dewiswch opsiwn",
|
||||||
|
"hascas-confirmation-label": "Cadarnhau bod angen apêl HAS/CAS",
|
||||||
|
"hascas-confirmation-hint": "Mae'r llwybr apêl hwn yn berthnasol dim ond os yw'ch cais yn ymwneud â gwrthod caniatâd cynllunio, neu wrthodiad i gais i amrywio neu ddileu amod sydd ynghlwm wrth ganiatâd blaenorol. Bydd pob cais arall yn cael ei gyflwyno drwy Apêl Cynllunio Adran 78",
|
||||||
"about-you-page-title": "Amdanat ti",
|
"about-you-page-title": "Amdanat ti",
|
||||||
"about-you-on-behalf-label": "Cyflwynwyd apêl ar ran:",
|
"about-you-on-behalf-label": "Cyflwynwyd apêl ar ran:",
|
||||||
"about-you-who-can-appeal-label": "Pwy all apelio?",
|
"about-you-who-can-appeal-label": "Pwy all apelio?",
|
||||||
|
|||||||
@@ -9,6 +9,11 @@
|
|||||||
"select-default": "Select...",
|
"select-default": "Select...",
|
||||||
"change-link-label": "Change",
|
"change-link-label": "Change",
|
||||||
"submit-appeal-button": "Submit appeal",
|
"submit-appeal-button": "Submit appeal",
|
||||||
|
"yes-option-label": "Yes",
|
||||||
|
"no-option-label": "No",
|
||||||
|
"select-an-option-label": "Select an option",
|
||||||
|
"hascas-confirmation-label": "Confirm HAS/CAS appeal is required",
|
||||||
|
"hascas-confirmation-hint": "This appeal route is only applicable if your application relates the refusal of planning permission, orthe refusal of an application to vary or remove a condition attached to a previous permision. All other applications will be submitted via a Section 78 Planning Appeal",
|
||||||
"about-you-page-title": "About you",
|
"about-you-page-title": "About you",
|
||||||
"about-you-on-behalf-label": "Appeal submitted on behalf of:",
|
"about-you-on-behalf-label": "Appeal submitted on behalf of:",
|
||||||
"about-you-who-can-appeal-label": "Who can appeal?",
|
"about-you-who-can-appeal-label": "Who can appeal?",
|
||||||
|
|||||||
Reference in New Issue
Block a user