diff --git a/components/utils/index.js b/components/utils/index.js
index 2c8d8a23..32ac3c10 100644
--- a/components/utils/index.js
+++ b/components/utils/index.js
@@ -39,6 +39,19 @@ export const getPickListLabel = (data, picklistType, picklistID) => {
return pickListLabel[0];
};
+export const getRadioLabel = (data, radiotListName, radioListID) => {
+ const radioListData = jsonpath.query(
+ data,
+ "$..[?(@.LogicalName=='" + radiotListName + "')]"
+ );
+
+ const pickListLabel = jsonpath.query(
+ radioListData,
+ "$..[?(@.Value=='" + radioListID + "')].Label.LocalizedLabels..Label"
+ );
+ return pickListLabel[0];
+};
+
/*
* Get the details of a case from the appeal type
* @param object searchResultsObj
diff --git a/data/crmfieldlookuptranslations.json b/data/crmfieldlookuptranslations.json
index 2047a1b0..097d0cf5 100644
--- a/data/crmfieldlookuptranslations.json
+++ b/data/crmfieldlookuptranslations.json
@@ -2347,6 +2347,18 @@
{
"value": "Please explain why you have chosen this procedure",
"value_cy": "Eglurwch pam eich bod wedi dewis y driniaeth hon"
+ },
+ {
+ "value": "What procedure would you like the appeal to follow? More information on this can be found in the guidance notes.",
+ "value_cy": "Pa weithdrefn yr hoffech i'r apêl ei dilyn? Ceir rhagor o wybodaeth am hyn yn y nodiadau canllaw."
+ },
+ {
+ "value": "Do you intend to submit a costs application with this appeal? (see guidance for further information)",
+ "value_cy": "A ydych yn bwriadu cyflwyno cais costau gyda'r apêl hon? (gweler y canllawiau am ragor o wybodaeth)"
+ },
+ {
+ "value": "Do you intend to submit a planning obligation (a section 106 agreement or a unilateral undertaking) with this appeal?",
+ "value_cy": "A ydych yn bwriadu cyflwyno rhwymedigaeth gynllunio (cytundeb adran 106 neu ymgymeriad unochrog) gyda’r apêl hon?"
}
]
}
diff --git a/data/formsxml/planningappeals78.xml b/data/formsxml/planningappeals78.xml
index 7bd9ddb8..efcab909 100644
--- a/data/formsxml/planningappeals78.xml
+++ b/data/formsxml/planningappeals78.xml
@@ -434,17 +434,17 @@
|
-
+
|
-
+ |
-
+
|
|
@@ -452,7 +452,7 @@
-
+
diff --git a/data/picklistLookups.json b/data/picklistLookups.json
index ed173383..785b472f 100644
--- a/data/picklistLookups.json
+++ b/data/picklistLookups.json
@@ -1161,6 +1161,54 @@
{
"value": "Yes",
"value_cy": "Ydw"
+ },
+ {
+ "value": "Failed to give notice of its decision within the appropriate period (Usually 8 weeks) on an application for permission or approval",
+ "value_cy": "Wedi methu â rhoi hysbysiad o’i benderfyniad o fewn y cyfnod priodol (8 wythnos fel arfer) ar gais am ganiatâd neu gymeradwyaeth"
+ },
+ {
+ "value": "Granted approval of the matters reserved under the outline planning permission subject to conditions which you object",
+ "value_cy": "Wedi cymeradwyo’r materion a gadwyd yn ôl o dan y caniatâd cynllunio amlinellol gydag amodau yr ydych yn eu gwrthwynebu"
+ },
+ {
+ "value": "Granted planning permission for the development subject to the conditions which you object",
+ "value_cy": "Wedi rhoi caniatâd cynllunio ar gyfer y datblygiad gyda'r amodau yr ydych yn eu gwrthwynebu"
+ },
+ {
+ "value": "Refuse listed building consent/conservation area consent for the development as described",
+ "value_cy": "Gwrthod caniatâd adeilad rhestredig/caniatâd ardal gadwraeth ar gyfer y datblygiad fel y disgrifir"
+ },
+ {
+ "value": "Refused approval of the matters reserved under an outline planning permission",
+ "value_cy": "Gwrthod cymeradwyo'r materion a gadwyd yn ôl o dan ganiatâd cynllunio amlinellol"
+ },
+ {
+ "value": "Refused permission to vary or remove a condition(s)",
+ "value_cy": "Gwrthod caniatâd i amrywio neu ddileu amod(au)"
+ },
+ {
+ "value": "Refused planning permission for the development",
+ "value_cy": "Gwrthod caniatâd cynllunio ar gyfer y datblygiad"
+ },
+ {
+ "value": "Refused to approve any matters requiered by a condition on a previous planning permission (other than those above)",
+ "value_cy": "Gwrthod caniatáu unrhyw faterion y gofynnwyd amdanynt gan amod ar ganiatâd cynllunio blaenorol (ac eithrio’r rhai uchod)"
+ },
+ {
+ "value": "Select...",
+ "value_cy": "Dewiswch..."
+ },
+ {
+ "value": "Written representation",
+ "value_cy": "Cynrychiolaeth ysgrifenedig"
+ },
+ {
+ "value": "Hearing",
+ "value_cy": "Clyw"
+ },
+ {
+ "value": "Inquiry",
+ "value_cy": "Ymholiad"
}
]
}
diff --git a/locales/cy/common.json b/locales/cy/common.json
index 64216705..20b88f5c 100644
--- a/locales/cy/common.json
+++ b/locales/cy/common.json
@@ -15,6 +15,9 @@
"available-in": "English",
"continue-button": "Parhewch",
"search-button": "Chwilio",
+ "submit-button": "Cyflwyno",
+ "back-link": "Yn ol",
+ "save-exit-button": "Cadw a gadael",
"submit-and-start": "Cyflwyno a dechrau'r cwrs",
"footer-terms-conditions-link-label": "Telerau ac amodau",
"footer-terms-conditions-link": "https://llyw.cymru/gwaith-achos-cynllunio-telerau-ac-amodau",
diff --git a/locales/cy/newappeal.json b/locales/cy/newappeal.json
index ea963b02..4bf19550 100644
--- a/locales/cy/newappeal.json
+++ b/locales/cy/newappeal.json
@@ -49,5 +49,6 @@
"new-appeal-agricultural-holding-option-no": "(b) (i) Mae safle’r apêl yn ddaliad amaethyddol, neu’n rhan o ddaliad amaethyddol, a’r apelydd yw’r unig denant amaethyddol",
"new-appeal-agricultural-holding-option-NA": "(b) (ii) Mae safle’r apêl yn ddaliad amaethyddol neu’n rhan o ddaliad amaethyddol ac mae’r apelydd (neu’r asiant) wedi rhoi’r hysbysiad gofynnol i bob person (ac eithrio’r apelydd) sydd, ar y diwrnod 21 diwrnod cyn y dyddiad o’r apêl, a oedd yn denant daliad amaethyddol ar y cyfan neu ran o’r tir y mae’r apêl yn ymwneud ag ef fel a restrir isod:",
"new-appeal-procedure-option-virtual": "Rhith",
- "new-appeal-procedure-option-inperson": "Yn bersonol"
+ "new-appeal-procedure-option-inperson": "Yn bersonol",
+ "new-appeal-procedure-option-hybrid": "Hybrid"
}
\ No newline at end of file
diff --git a/locales/en/common.json b/locales/en/common.json
index 9f8685a5..54896874 100644
--- a/locales/en/common.json
+++ b/locales/en/common.json
@@ -15,6 +15,9 @@
"available-in": "Cymraeg",
"continue-button": "Continue",
"search-button": "Search",
+ "submit-button": "Submit",
+ "back-link": "Back",
+ "save-exit-button": "Save and exit",
"submit-and-start": "Submit and start course",
"footer-terms-conditions-link-label": "Terms and conditions",
"footer-terms-conditions-link": "https://gov.wales/planning-casework-terms-and-conditions",
diff --git a/locales/en/newappeal.json b/locales/en/newappeal.json
index 16fc758e..013645ef 100644
--- a/locales/en/newappeal.json
+++ b/locales/en/newappeal.json
@@ -49,5 +49,6 @@
"new-appeal-agricultural-holding-option-no": "(b) (i) The appeal site is, or is part of an agricultural holding, and the appellant is the sole agricultural tenant",
"new-appeal-agricultural-holding-option-NA": "(b) (ii) The appeal site is, or is part of, an agricultural holding and the appellant (or the agent) has given the requisite notice to every person (other than the appellant) who, on the day 21 days before the date of the appeal, was a tenant of anagricultural holding on all or part of the land to which the appeal relates as listed below:",
"new-appeal-procedure-option-virtual": "Virtual",
- "new-appeal-procedure-option-inperson": "In person"
+ "new-appeal-procedure-option-inperson": "In person",
+ "new-appeal-procedure-option-hybrid": "Hybrid"
}
\ No newline at end of file
diff --git a/pages/api/endpoint/getawaitingsubmission_api.js b/pages/api/endpoint/getawaitingsubmission_api.js
index 23a14d80..5b90d275 100644
--- a/pages/api/endpoint/getawaitingsubmission_api.js
+++ b/pages/api/endpoint/getawaitingsubmission_api.js
@@ -22,10 +22,11 @@ export default async function ApiProxy(req, res) {
var token = await getToken();
var queryUrl =
- "incidents?$select=description,numberofchildincidents,_accountid_value,_customerid_value,_pinswg_associatedlpa_value,_ownerid_value,pinswg_appealcasetype,statuscode,ticketnumber,title, _primarycontactid_value&$expand=primarycontactid($select=fullname)&$filter=_customerid_value eq " +
+ "incidents?$select=description,numberofchildincidents,_accountid_value,_customerid_value,_pinswg_associatedlpa_value,_ownerid_value,pinswg_appealcasetype,statuscode,ticketnumber,title, _primarycontactid_value,pinswg_appellantlastname,pinswg_appellantfirstname,pinswg_appellantagent,pinswg_agentfirstname,pinswg_agentlastname,pinswg_agentcompanyname&$expand=primarycontactid($select=fullname)&$filter=_customerid_value eq " +
loggedInUserId +
" and servicestage eq 1 and pinswg_appealcasetype ne null&$orderby=createdon desc&$count=true";
+ console.log(WEBAPI_URL + queryUrl + hashAPIPath(queryUrl));
return axios
.get(
WEBAPI_URL + queryUrl + hashAPIPath(queryUrl),
diff --git a/pages/api/endpoint/getawaitingsubmissionproxy_api.js b/pages/api/endpoint/getawaitingsubmissionproxy_api.js
index c8ef9721..69f1237a 100644
--- a/pages/api/endpoint/getawaitingsubmissionproxy_api.js
+++ b/pages/api/endpoint/getawaitingsubmissionproxy_api.js
@@ -22,7 +22,7 @@ export default async function ApiProxy(req, res) {
var token = await getToken();
var queryUrl =
- "incidents?$select=description,numberofchildincidents,_accountid_value,_customerid_value,_pinswg_associatedlpa_value,_ownerid_value,pinswg_appealcasetype,statuscode,ticketnumber,title, _primarycontactid_value&$expand=primarycontactid($select=fullname)&$filter=_customerid_value eq " +
+ "incidents?$select=description,numberofchildincidents,_accountid_value,_customerid_value,_pinswg_associatedlpa_value,_ownerid_value,pinswg_appealcasetype,statuscode,ticketnumber,title, _primarycontactid_value,pinswg_appellantlastname,pinswg_appellantfirstname,pinswg_appellantagent,pinswg_agentfirstname,pinswg_agentlastname,pinswg_agentcompanyname&$expand=primarycontactid($select=fullname)&$filter=_customerid_value eq " +
loggedInUserId +
" and pinswg_appealcasetype ne null&$orderby=createdon desc&$count=true";
diff --git a/pages/newappeal/index.js b/pages/newappeal/index.js
index f9482ff3..1a2ff2b9 100644
--- a/pages/newappeal/index.js
+++ b/pages/newappeal/index.js
@@ -2,13 +2,20 @@ import useTranslation from "next-translate/useTranslation";
import Head from "next/head";
import { useRouter } from "next/router";
import { connect } from "react-redux";
-import { getAppealsTypesForNewAppeal, getLPA } from "../../actions";
+import {
+ getAppealsTypesForNewAppeal,
+ getLPA,
+ getPersonalAccount,
+} from "../../actions";
import Breadcrumbs from "../../components/breadcrumbs";
import CookieBanner from "../../components/cookieBanner";
import Footer from "../../components/footer";
import Header from "../../components/header";
import CreateCase from "../../components/newappeal/createCase";
-import { setLoggedInUserId } from "../../store/accountDetails/action";
+import {
+ setAccountDetails,
+ setLoggedInUserId,
+} from "../../store/accountDetails/action";
import { setAppealType } from "../../store/appealType/action";
import { setLPA } from "../../store/lpa/action";
import { wrapper } from "../../store/store";
@@ -130,11 +137,16 @@ export const getServerSideProps = wrapper.getServerSideProps(
let loggedInUser = cookies.pinsUser;
- const [appealTypeData, lpaData, caseData] = await Promise.all([
+ console.log("has loggedInUser", loggedInUser);
+
+ const [appealTypeData, lpaData, accountDetails] = await Promise.all([
await getAppealsTypesForNewAppeal(),
await getLPA(),
+ await getPersonalAccount(loggedInUser),
]);
+ console.log("wewerwe s s", accountDetails);
+
const providerConfig = await getProviderConfig();
// const lpaData = require("../../data/lpa.json");
// const appealTypeData = require("../../data/appealtypes.json");
@@ -143,6 +155,7 @@ export const getServerSideProps = wrapper.getServerSideProps(
store.dispatch(setAppealType(appealTypeData));
store.dispatch(setLPA(lpaData));
store.dispatch(setLoggedInUserId(loggedInUser));
+ store.dispatch(setAccountDetails(accountDetails));
}
);