diff --git a/api/applicant.json b/api/applicant.json
deleted file mode 100644
index 7f7849fd..00000000
--- a/api/applicant.json
+++ /dev/null
@@ -1,2 +0,0 @@
-{"@odata.context":"https://devcrm2016.llcdt.gov.wales/DVPINS/api/data/v8.2/$metadata#contacts(address1_addressid,address1_addresstypecode,address1_city,address1_country,address1_county,address1_fax,firstname,lastname)",value:[0:{@odata.etag:"W/"509484"",address1_addressid:"6c267cf9-1ba2-4e38-9f48-2b94a341e392",address1_addresstypecode: null ,address1_city: null ,address1_country: null ,address1_county: null ,address1_fax: null ,firstname: null ,lastname:"Trembath",contactid:"9d481bc3-7c64-eb11-aaba-00224800be9c"},1:{@odata.etag:"W/"509501"",address1_addressid:"9a546d64-b7b5-42bf-bafd-b547e718fddd",address1_addresstypecode: null ,address1_city: null ,address1_country: null ,address1_county: null ,address1_fax: null ,firstname: null ,lastname:"Jones",contactid:"1e2e0e6f-7e64-eb11-aaba-00224800be9c"},2:{@odata.etag:"W/"509506"",address1_addressid:"214e5b63-9bc8-478a-90e2-39417d9e096b",address1_addresstypecode: null ,address1_city: null ,address1_country: null ,address1_county: null ,address1_fax: null ,firstname: null ,lastname:"Thomas",contactid:"d1658f77-7e64-eb11-aaba-00224800be9c"},3:{@odata.etag:"W/"694902"",address1_addressid:"6258fd0c-2d18-41dd-b629-123c880f16a1",address1_addresstypecode: null ,address1_city: null ,address1_country: null ,address1_county: null ,address1_fax: null ,firstname:"James",lastname:"Hollowhead",contactid:"755e07ea-82ad-eb11-aac3-00224800be9c"},4:{@odata.etag:"W/"694906"",address1_addressid:"436104d2-5ee0-4494-b0f8-3059f738e9cf",address1_addresstypecode: null ,address1_city: null ,address1_country: null ,address1_county: null ,address1_fax: null ,firstname:"T",lastname:"Gillbert",contactid:"b8022d00-83ad-eb11-aac3-00224800be9c"},5:{@odata.etag:"W/"694910"",address1_addressid:"36e9cccc-ac84-4023-ae92-d6b9556d8ddf",address1_addresstypecode: null ,address1_city: null ,address1_country: null ,address1_county: null ,address1_fax: null ,firstname:"Mike",lastname:"Parker",contactid:"99b3220f-83ad-eb11-aac3-00224800be9c"},6:{@odata.etag:"W/"694914"",address1_addressid:"83169722-1283-4a4c-b346-28f50cd208cd",address1_addresstypecode: null ,address1_city: null ,address1_country: null ,address1_county: null ,address1_fax: null ,firstname:"Lloyd",lastname:"Evans",contactid:"5bee9821-83ad-eb11-aac3-00224800be9c"},7:{@odata.etag:"W/"694918"",address1_addressid:"a164b5d8-f9d2-46d4-b97b-b59327173f0a",address1_addresstypecode: null ,address1_city: null ,address1_country: null ,address1_county: null ,address1_fax: null ,firstname:"Mr",lastname:"Bartlett",contactid:"c2be7d2e-83ad-eb11-aac3-00224800be9c"},8:{@odata.etag:"W/"709237"",address1_addressid:"b75d552e-3896-46a7-bd65-a743f457f119",address1_addresstypecode: null ,address1_city: null ,address1_country: null ,address1_county: null ,address1_fax: null ,firstname:"Zoe",lastname:"Dawson",contactid:"003eef05-29ba-eb11-aac4-00224800be9c"},9:{@odata.etag:"W/"750707"",address1_addressid:"34bbd453-7d23-4c17-806e-1edf2e981cc8",address1_addresstypecode: null ,address1_city: null ,address1_country: null ,address1_county: null ,address1_fax: null ,firstname:"Appellant Contact",lastname:"Gary Trembath",contactid:"985cc5f8-1dd8-eb11-aac5-00224800be9c"},10:{@odata.etag:"W/"750703"",address1_addressid:"20ce70a9-571c-4a81-b410-f521d64d3dcb",address1_addresstypecode: null ,address1_city: null ,address1_country: null ,address1_county: null ,address1_fax: null ,firstname:"Agent Contact",lastname:"Gary Trembath",contactid:"9eb124a5-1ed8-eb11-aac5-00224800be9c"},11:{@odata.etag:"W/"750860"",address1_addressid:"a6a4641c-0875-4d5e-8360-99355eb73ee4",address1_addresstypecode: null ,address1_city: null ,address1_country: null ,address1_county: null ,address
-
\ No newline at end of file
diff --git a/api/lpa.json b/api/lpa.json
deleted file mode 100644
index bd225a4d..00000000
--- a/api/lpa.json
+++ /dev/null
@@ -1 +0,0 @@
-0:{@odata.context:"https://devcrm2016.llcdt.gov.wales/DVPINS/api/data/v8.2/$metadata#accounts(name)",value:[0:{@odata.etag:"W/"547952"",name:"Bridgend CBC",accountid:"56e7ef63-7e64-eb11-aaba-00224800be9c"},1:{@odata.etag:"W/"694923"",name:"Bishop Landaff High School",accountid:"c9389617-82ad-eb11-aac3-00224800be9c"},2:{@odata.etag:"W/"694925"",name:"Stanwell High school",accountid:"24537624-82ad-eb11-aac3-00224800be9c"},3:{@odata.etag:"W/"694927"",name:"Barry Boys High School",accountid:"80d99a34-82ad-eb11-aac3-00224800be9c"},4:{@odata.etag:"W/"694929"",name:"St Sirus High School",accountid:"6d337b5a-82ad-eb11-aac3-00224800be9c"},5:{@odata.etag:"W/"694931"",name:"Fitzalan High School",accountid:"984d0e75-82ad-eb11-aac3-00224800be9c"},6:{@odata.etag:"W/"709453"",name:"Zoe",accountid:"41fead24-29ba-eb11-aac4-00224800be9c"},7:{@odata.etag:"W/"755017"",name:"Blaenau Gwent County Borough Council",accountid:"744c69f4-48da-eb11-aac5-00224800be9c"},8:{@odata.etag:"W/"755020"",name:"Caerphilly County Borough Council",accountid:"243c0009-49da-eb11-aac5-00224800be9c"},9:{@odata.etag:"W/"755026"",name:"Bridgend County Borough Council",accountid:"c35f6f84-49da-eb11-aabd-00224800d1bd"},10:{@odata.etag:"W/"755029"",name:"Cardiff Council",accountid:"c75f6f84-49da-eb11-aabd-00224800d1bd"},11:{@odata.etag:"W/"755032"",name:"Carmarthenshire County Council",accountid:"c95f6f84-49da-eb11-aabd-00224800d1bd"},12:{@odata.etag:"W/"755035"",name:"Ceredigion County Council",accountid:"cb5f6f84-49da-eb11-aabd-00224800d1bd"},13:{@odata.etag:"W/"755038"",name:"Conwy County Borough Council",accountid:"cd5f6f84-49da-eb11-aabd-00224800d1bd"},14:{@odata.etag:"W/"755041"",name:"Denbighshire County Council",accountid:"cf5f6f84-49da-eb11-aabd-00224800d1bd"},15:{@odata.etag:"W/"755044"",name:"Flintshire County Council",accountid:"d15f6f84-49da-eb11-aabd-00224800d1bd"},16:{@odata.etag:"W/"755047"",name:"Gwynedd Council",accountid:"d35f6f84-49da-eb11-aabd-00224800d1bd"},17:{@odata.etag:"W/"755050"",name:"Isle of Anglesey County Council",accountid:"d55f6f84-49da-eb11-aabd-00224800d1bd"},18:{@odata.etag:"W/"755053"",name:"Merthyr Tydfil County Borough Council",accountid:"d75f6f84-49da-eb11-aabd-00224800d1bd"},19:{@odata.etag:"W/"755056"",name:"Monmouthshire County Council",accountid:"d95f6f84-49da-eb11-aabd-00224800d1bd"},20:{@odata.etag:"W/"755059"",name:"Neath Port Talbot County Borough Council",accountid:"db5f6f84-49da-eb11-aabd-00224800d1bd"},21:{@odata.etag:"W/"755062"",name:"Newport City Council",accountid:"dd5f6f84-49da-eb11-aabd-00224800d1bd"},22:{@odata.etag:"W/"755065"",name:"Pembrokeshire County Council",accountid:"df5f6f84-49da-eb11-aabd-00224800d1bd"},23:{@odata.etag:"W/"755068"",name:"Powys County Council",accountid:"e15f6f84-49da-eb11-aabd-00224800d1bd"},24:{@odata.etag:"W/"755071"",name:"Rhondda Cynon Taf County Borough Council",accountid:"e35f6f84-49da-eb11-aabd-00224800d1bd"},25:{@odata.etag:"W/"755074"",name:"Swansea Council",accountid:"e55f6f84-49da-eb11-aabd-00224800d1bd"},26:{@odata.etag:"W/"755077"",name:"Torfaen County Borough Council",accountid:"e75f6f84-49da-eb11-aabd-00224800d1bd"},27:{@odata.etag:"W/"755080"",name:"Vale of Glamorgan Council",accountid:"e95f6f84-49da-eb11-aabd-00224800d1bd"},28:{@odata.etag:"W/"755083"",name:"Wrexham County Borough Council",accountid:"eb5f6f84-49da-eb11-aabd-00224800d1bd"}]}
\ No newline at end of file
diff --git a/components/elements/index.js b/components/elements/index.js
index 227023aa..fc653a3c 100644
--- a/components/elements/index.js
+++ b/components/elements/index.js
@@ -599,7 +599,6 @@ const RenderYesNo = ({
: delete docListObj[
"documentCheckList_" + id
];
- console.log(docListObj);
custom.setDocumentsList(docListObj);
}
}}
@@ -623,27 +622,70 @@ export function YesNofield(props) {
const router = useRouter();
let { t } = useTranslation();
- const { name, label, inline, validation } = props;
+ const {
+ name,
+ label,
+ inline,
+ form,
+ formProps,
+ validation,
+ parentFieldShowOnValue,
+ parentField,
+ } = props;
const yesNo = router.locale == "cy" ? ["Ydw", "Na"] : ["Yes", "No"];
const required = (value) => (value ? undefined : "Required");
+ var showIfHasParentShowValue =
+ parentField != false &&
+ !_.isEmpty(formProps[form]) &&
+ _.has(formProps[form].values, parentField) &&
+ parentFieldShowOnValue.indexOf(
+ formProps[form].values[parentField].toString()
+ ) > -1;
+
+ (showIfHasParentShowValue == parentField) != false &&
+ showIfHasParentShowValue;
+
return (
-
+ <>
+ {parentField != false ? (
+ showIfHasParentShowValue && (
+
+ )
+ ) : (
+
+ )}
+ >
);
}
@@ -792,12 +834,6 @@ export function Radiofield(props) {
(showIfHasParentShowValue == parentField) != false &&
showIfHasParentShowValue;
- // console.log(
- // datafieldname,
- // showIfHasParentShowValue,
- // formProps[form].values[parentField]
- // );
-
return (
<>
{parentField != false ? (
@@ -1209,6 +1245,7 @@ export function FileUploadField(props) {
errorMsg="Is required"
ticketnumber={props.ticketnumber}
documentTypeCode={props.documentTypeCode}
+ hint={props.hint}
/>
>
);
@@ -1340,6 +1377,7 @@ const rejectStyle = {
const RenderFileUpload = (field) => {
const files = field.input.value;
+ let { t } = useTranslation();
const style = useMemo(
() => ({
...baseStyle,
@@ -1435,6 +1473,22 @@ const RenderFileUpload = (field) => {
case "000010":
return "000010";
break;
+ case "000011":
+ return "000011";
+ break;
+ case "000012":
+ return "000012";
+ break;
+ case "000013":
+ return "000013";
+ break;
+ case "000014":
+ return "000014";
+ break;
+ case "000015":
+ return "000015";
+ break;
+
default:
return "000000";
}
@@ -1465,6 +1519,9 @@ const RenderFileUpload = (field) => {
>
{({ getRootProps, getInputProps }) => (
<>
+ {field.hint != false && (
+
{t(field.hint)}
+ )}
diff --git a/components/myportal.js b/components/myportal.js
index 9372e72e..9d0a9fcf 100644
--- a/components/myportal.js
+++ b/components/myportal.js
@@ -1,25 +1,17 @@
+import { signOut } from "next-auth/react";
+import useTranslation from "next-translate/useTranslation";
import Link from "next/link";
import { useRouter } from "next/router";
-import { useContext } from "react";
-import useTranslation from "next-translate/useTranslation";
+import { destroyCookie } from "nookies";
+import TimeOut from "../components/timeout";
+import AwaitingSubmission from "./myportal/awaitingsubmission";
+import Dns from "./myportal/dns";
import MakeNewAppeal from "./myportal/makenewappeal";
import MyCases from "./myportal/mycases";
-import SearchCases from "./myportal/searchcases";
-import AwaitingSubmission from "./myportal/awaitingsubmission";
import MyRepresentations from "./myportal/myrepresentations";
-import WatchedCases from "./myportal/watchedcases";
-import YourAccount from "./myportal/youraccount";
-import { parseCookies, setCookie, destroyCookie } from "nookies";
-import Dns from "./myportal/dns";
-
-import IdleTimer from "react-idle-timer";
-import TimeoutModal from "./timeout/timeoutmodal";
-import { useState } from "react";
-
-import TimeOut from "../components/timeout";
+import SearchCases from "./myportal/searchcases";
import UploadFile from "./myportal/uploadFile";
-
-import { useSession, signIn, signOut } from "next-auth/react";
+import WatchedCases from "./myportal/watchedcases";
const MyPortal = (props) => {
const { showFileUpload } = props;
@@ -28,33 +20,6 @@ const MyPortal = (props) => {
const router = useRouter();
const { locale } = router;
- // const [showModal, setShowModal] = useState(false);
- // const inactiveTimeOut = 1200; // in seconds
- // const reminderTimeout = 60; // in seconds
-
- // let idleTimer = null;
- // let logoutTimer = null;
-
- // let onIdle = () => {
- // togglePopup();
- // logoutTimer = setTimeout(() => {
- // handleLogout();
- // }, 1000 * reminderTimeout * 1);
- // };
-
- // let togglePopup = () => {
- // showModal == true ? setShowModal(false) : setShowModal(true);
- // };
-
- // let handleStayLoggedIn = () => {
- // if (logoutTimer) {
- // clearTimeout(logoutTimer);
- // logoutTimer = null;
- // }
- // idleTimer.reset();
- // togglePopup();
- // };
-
const handleLogout = () => {
console.log("////////////", "\n", "logout", "\n", "//////////");
destroyCookie({}, "pinsUser"),
@@ -63,7 +28,6 @@ const MyPortal = (props) => {
signOut({ callbackUrl: "/logout" });
};
- console.log("showFileUpload :", showFileUpload);
return (
<>
@@ -160,16 +124,6 @@ const MyPortal = (props) => {
- {/* {
- idleTimer = ref;
- }}
- element={document}
- stopOnIdle={true}
- onActive={console.log(" bbis active", idleTimer)}
- onIdle={onIdle}
- timeout={1000 * inactiveTimeOut * 1}
- /> */}
>
);
diff --git a/components/newappeal/buildfield.js b/components/newappeal/buildfield.js
index e8d5e5c7..508807bb 100644
--- a/components/newappeal/buildfield.js
+++ b/components/newappeal/buildfield.js
@@ -1,20 +1,17 @@
-import Link from "next/link";
-import { useRouter } from "next/router";
import useTranslation from "next-translate/useTranslation";
-import xpath from "xpath";
-
+import { useRouter } from "next/router";
import {
- Textfield,
+ CheckBoxfield,
DateFieldPicker,
- YesNofield,
- PickList,
- MultiLinefield,
- NumericField,
- ReadOnlyfield,
DecimalField,
FileUploadField,
- CheckBoxfield,
+ MultiLinefield,
+ NumericField,
+ PickList,
Radiofield,
+ ReadOnlyfield,
+ Textfield,
+ YesNofield,
} from "../elements";
export default function BuildField(props) {
@@ -71,6 +68,10 @@ export default function BuildField(props) {
validation={props.validation}
setDocumentsList={props.setDocumentsList}
documentList={props.documentList}
+ form={props.props.props.form}
+ formProps={props.props.props.props.form}
+ parentField={props.parentField}
+ parentFieldShowOnValue={props.parentFieldShowOnValue}
/>
);
break;
@@ -181,6 +182,7 @@ export default function BuildField(props) {
.ticketnumber
}
documentTypeCode={props.documentTypeCode}
+ hint={props.hint}
/>
);
diff --git a/data/formsxml/adverts.xml b/data/formsxml/adverts.xml
index e6b32ef8..fb793f3b 100644
--- a/data/formsxml/adverts.xml
+++ b/data/formsxml/adverts.xml
@@ -149,11 +149,6 @@
@@ -218,11 +213,6 @@
@@ -271,11 +261,6 @@
@@ -324,11 +309,6 @@
@@ -385,11 +365,6 @@
@@ -454,36 +429,4 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/data/formsxml/callinss77.xml b/data/formsxml/callinss77.xml
index 046af648..61447c0d 100644
--- a/data/formsxml/callinss77.xml
+++ b/data/formsxml/callinss77.xml
@@ -1150,36 +1150,4 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/data/formsxml/commercialappealcas.xml b/data/formsxml/commercialappealcas.xml
index d4bf0870..73a9bf87 100644
--- a/data/formsxml/commercialappealcas.xml
+++ b/data/formsxml/commercialappealcas.xml
@@ -160,11 +160,6 @@
@@ -221,11 +216,6 @@
@@ -290,11 +280,6 @@
@@ -375,11 +360,6 @@
@@ -428,11 +408,6 @@
@@ -465,11 +440,6 @@
@@ -510,36 +480,4 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/data/formsxml/commonland.xml b/data/formsxml/commonland.xml
index bacceeec..a7690ea9 100644
--- a/data/formsxml/commonland.xml
+++ b/data/formsxml/commonland.xml
@@ -1012,36 +1012,4 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/data/formsxml/communityinfrastructurelevys117118119.xml b/data/formsxml/communityinfrastructurelevys117118119.xml
index ae396e93..ec8d6596 100644
--- a/data/formsxml/communityinfrastructurelevys117118119.xml
+++ b/data/formsxml/communityinfrastructurelevys117118119.xml
@@ -1045,36 +1045,4 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/data/formsxml/compulsorypurchaseorders.xml b/data/formsxml/compulsorypurchaseorders.xml
index fca8613d..9d6a2fbd 100644
--- a/data/formsxml/compulsorypurchaseorders.xml
+++ b/data/formsxml/compulsorypurchaseorders.xml
@@ -1012,36 +1012,4 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/data/formsxml/dns.xml b/data/formsxml/dns.xml
index fc56d887..537653c5 100644
--- a/data/formsxml/dns.xml
+++ b/data/formsxml/dns.xml
@@ -1180,36 +1180,4 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/data/formsxml/electricityact.xml b/data/formsxml/electricityact.xml
index 243c5684..40295193 100644
--- a/data/formsxml/electricityact.xml
+++ b/data/formsxml/electricityact.xml
@@ -1093,36 +1093,4 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/data/formsxml/enforcementlistedbuildingconservationap.xml b/data/formsxml/enforcementlistedbuildingconservationap.xml
index 5fdc2697..da7a5271 100644
--- a/data/formsxml/enforcementlistedbuildingconservationap.xml
+++ b/data/formsxml/enforcementlistedbuildingconservationap.xml
@@ -1105,36 +1105,4 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/data/formsxml/enforcementnoticeappeals174.xml b/data/formsxml/enforcementnoticeappeals174.xml
index 59490573..4fa9d6b4 100644
--- a/data/formsxml/enforcementnoticeappeals174.xml
+++ b/data/formsxml/enforcementnoticeappeals174.xml
@@ -15,102 +15,106 @@
|
-
+
|
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+ |
-
+
-
-
-
- true
-
-
- false
-
-
- false
-
-
- false
-
-
- {9AC51863-58C7-49A0-ADCC-AFD9A4C3EE59}
-
-
- false
-
-
-
+
|
|
-
+ |
-
+
-
-
-
- true
-
-
- false
-
-
- false
-
-
- true
-
-
- {0ABD7146-7DE5-EB11-AAC5-00224800BE9C}
-
-
- false
-
-
-
+
|
|
-
+ |
-
+
-
-
-
- true
-
-
- false
-
-
- false
-
-
- true
-
-
- {EF816E54-E5D5-EB11-AAC5-00224800BE9C}
-
-
- false
-
-
-
+
+ |
+ |
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+
+
|
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
- |
-
-
-
-
- |
-
-
- |
-
-
-
-
- |
-
-
- |
-
-
-
-
- |
-
-
- |
-
-
-
-
- |
-
-
- |
-
-
-
-
- |
-
-
- |
-
-
-
-
- |
-
-
- |
-
-
-
-
- |
-
-
- |
-
-
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
-
@@ -883,11 +796,6 @@
@@ -952,11 +860,6 @@
@@ -1037,11 +940,6 @@
@@ -1345,11 +1243,6 @@
@@ -1406,11 +1299,6 @@
@@ -1429,13 +1317,53 @@
-
+ |
-
+
|
|
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+
+
+ |
+
@@ -1443,36 +1371,4 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/data/formsxml/environmentalpermitting.xml b/data/formsxml/environmentalpermitting.xml
index d719ba73..b5317747 100644
--- a/data/formsxml/environmentalpermitting.xml
+++ b/data/formsxml/environmentalpermitting.xml
@@ -1015,36 +1015,4 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/data/formsxml/harbourrevisionorder.xml b/data/formsxml/harbourrevisionorder.xml
index d111d6b2..e7a68227 100644
--- a/data/formsxml/harbourrevisionorder.xml
+++ b/data/formsxml/harbourrevisionorder.xml
@@ -1032,36 +1032,4 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/data/formsxml/hedgeshedgerowstreepreservationreplacem.xml b/data/formsxml/hedgeshedgerowstreepreservationreplacem.xml
index cdd8c5f3..842d8e31 100644
--- a/data/formsxml/hedgeshedgerowstreepreservationreplacem.xml
+++ b/data/formsxml/hedgeshedgerowstreepreservationreplacem.xml
@@ -1012,36 +1012,4 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/data/formsxml/householderappealhas.xml b/data/formsxml/householderappealhas.xml
index bbe63523..ff3f61b1 100644
--- a/data/formsxml/householderappealhas.xml
+++ b/data/formsxml/householderappealhas.xml
@@ -141,11 +141,6 @@
@@ -202,11 +197,6 @@
@@ -271,11 +261,6 @@
@@ -364,11 +349,6 @@
@@ -417,11 +397,6 @@
@@ -454,11 +429,6 @@
@@ -523,36 +493,4 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/data/formsxml/lawfuldevelopmentcertificate.xml b/data/formsxml/lawfuldevelopmentcertificate.xml
index 889a8c39..3d02589a 100644
--- a/data/formsxml/lawfuldevelopmentcertificate.xml
+++ b/data/formsxml/lawfuldevelopmentcertificate.xml
@@ -1048,36 +1048,4 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/data/formsxml/ldp.xml b/data/formsxml/ldp.xml
index cb43c25b..44ab1acc 100644
--- a/data/formsxml/ldp.xml
+++ b/data/formsxml/ldp.xml
@@ -454,36 +454,4 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/data/formsxml/listedbuildingandconservationareaconsen.xml b/data/formsxml/listedbuildingandconservationareaconsen.xml
index 9aad60b9..132dcd65 100644
--- a/data/formsxml/listedbuildingandconservationareaconsen.xml
+++ b/data/formsxml/listedbuildingandconservationareaconsen.xml
@@ -162,11 +162,6 @@
@@ -199,11 +194,6 @@
@@ -268,11 +258,6 @@
@@ -313,11 +298,6 @@
@@ -366,11 +346,6 @@
@@ -427,11 +402,6 @@
@@ -512,36 +482,4 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/data/formsxml/maintenanceoflands217.xml b/data/formsxml/maintenanceoflands217.xml
index 316be01d..2a7833c3 100644
--- a/data/formsxml/maintenanceoflands217.xml
+++ b/data/formsxml/maintenanceoflands217.xml
@@ -1100,36 +1100,4 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/data/formsxml/miscellaneouscasework.xml b/data/formsxml/miscellaneouscasework.xml
index ab15d2ca..a3879cfb 100644
--- a/data/formsxml/miscellaneouscasework.xml
+++ b/data/formsxml/miscellaneouscasework.xml
@@ -1200,36 +1200,4 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/data/formsxml/nonvalidation.xml b/data/formsxml/nonvalidation.xml
index 6103d6aa..c1bbf14c 100644
--- a/data/formsxml/nonvalidation.xml
+++ b/data/formsxml/nonvalidation.xml
@@ -2,111 +2,24 @@
-
+
-
+
|
-
+
|
-
- |
-
-
-
-
-
-
- true
-
-
- false
-
-
- false
-
-
- false
-
-
- {9AC51863-58C7-49A0-ADCC-AFD9A4C3EE59}
-
-
- false
-
-
-
- |
-
-
- |
-
-
-
-
-
-
- true
-
-
- false
-
-
- false
-
-
- true
-
-
- {0ABD7146-7DE5-EB11-AAC5-00224800BE9C}
-
-
- false
-
-
-
- |
-
-
- |
-
-
-
-
-
-
- true
-
-
- false
-
-
- false
-
-
- true
-
-
- {EF816E54-E5D5-EB11-AAC5-00224800BE9C}
-
-
- false
-
-
-
- |
-
@@ -115,7 +28,7 @@
-
+
@@ -126,19 +39,19 @@
-
+ |
-
+
-
+
|
|
-
+ |
-
+
-
+
|
|
@@ -158,7 +71,7 @@
-
+ |
@@ -181,30 +94,6 @@
|
|
-
- |
-
-
-
-
- |
-
-
- |
-
-
-
-
- |
-
-
- |
-
-
-
-
- |
-
@@ -212,99 +101,14 @@
-
-
-
-
-
- |
-
-
-
-
- |
-
-
- |
-
-
-
-
- |
-
-
- |
-
-
-
-
- |
-
-
- |
-
-
-
-
- |
-
-
- |
-
-
-
-
- |
-
-
- |
-
-
-
-
- |
-
-
- |
-
-
-
-
- |
-
-
- |
-
-
-
-
- |
-
-
- |
-
-
-
-
- |
-
-
- |
-
-
-
-
- |
-
-
-
+
-
+
@@ -315,19 +119,67 @@
-
+ |
-
+
-
+
|
|
-
+ |
-
+
-
+
+ |
+ |
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+
+
|
@@ -340,24 +192,14 @@
-
-
- |
-
-
-
-
- |
-
-
-
+
-
+
@@ -368,27 +210,11 @@
-
+ |
-
+
-
- |
- |
-
- |
-
-
-
-
- |
-
-
- |
-
-
-
-
+
|
@@ -398,111 +224,11 @@
-
-
-
-
-
- |
-
-
-
-
- |
-
-
- |
-
-
-
-
- |
-
-
- |
-
-
-
-
- |
-
-
-
@@ -518,11 +244,35 @@
|
-
+
|
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+
+
+ |
+
@@ -530,36 +280,4 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/data/formsxml/planningappeals78.xml b/data/formsxml/planningappeals78.xml
index e2f8ecc4..b584c72b 100644
--- a/data/formsxml/planningappeals78.xml
+++ b/data/formsxml/planningappeals78.xml
@@ -133,11 +133,6 @@
@@ -194,11 +189,6 @@
@@ -263,11 +253,6 @@
@@ -356,11 +341,6 @@
@@ -409,11 +389,6 @@
@@ -478,11 +453,6 @@
@@ -563,36 +533,4 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/data/formsxml/planningconditionss73s79.xml b/data/formsxml/planningconditionss73s79.xml
index c0a0b149..39e87ae4 100644
--- a/data/formsxml/planningconditionss73s79.xml
+++ b/data/formsxml/planningconditionss73s79.xml
@@ -1147,36 +1147,4 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/data/formsxml/planningobligationappeals106.xml b/data/formsxml/planningobligationappeals106.xml
index 89baf284..b2fa3a04 100644
--- a/data/formsxml/planningobligationappeals106.xml
+++ b/data/formsxml/planningobligationappeals106.xml
@@ -1037,36 +1037,4 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/data/formsxml/row.xml b/data/formsxml/row.xml
index 9a2ff3be..a1ed4a90 100644
--- a/data/formsxml/row.xml
+++ b/data/formsxml/row.xml
@@ -1012,36 +1012,4 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/data/formsxml/transportandworkact.xml b/data/formsxml/transportandworkact.xml
index 58c09271..15811aa2 100644
--- a/data/formsxml/transportandworkact.xml
+++ b/data/formsxml/transportandworkact.xml
@@ -1032,36 +1032,4 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/data/formsxml/wayleave.xml b/data/formsxml/wayleave.xml
index 233fa4c7..5988302c 100644
--- a/data/formsxml/wayleave.xml
+++ b/data/formsxml/wayleave.xml
@@ -1020,36 +1020,4 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/pages/api/appealforms/pinswg_dns.js b/pages/api/appealforms/pinswg_dns.js
deleted file mode 100644
index 2bc8c3f3..00000000
--- a/pages/api/appealforms/pinswg_dns.js
+++ /dev/null
@@ -1,20 +0,0 @@
-const ApiResponse = (req, res) => {
- res.statusCode = 200;
- res.json({
- "@odata.context":
- "https://devcrm2016.llcdt.gov.wales/DVPINS/api/data/v8.2/$metadata#systemforms(formid,name,formxml)",
- "@odata.count": 1,
- "value": [
- {
- "@odata.etag": 'W/"741371"',
- "formid": "f004343c-b599-4174-bc96-e4ebc44239b7",
- "name": "Information",
- "formxml":
- '',
- "objecttypecode": "pinswg_dns",
- "type": 2,
- },
- ],
- });
-};
-export default ApiResponse;
diff --git a/pages/api/appealforms/pinswg_harbourrevisionorder.js b/pages/api/appealforms/pinswg_harbourrevisionorder.js
deleted file mode 100644
index acfc2377..00000000
--- a/pages/api/appealforms/pinswg_harbourrevisionorder.js
+++ /dev/null
@@ -1,20 +0,0 @@
-const ApiResponse = (req, res) => {
- res.statusCode = 200;
- res.json({
- "@odata.context":
- "https://devcrm2016.llcdt.gov.wales/DVPINS/api/data/v8.2/$metadata#systemforms(formid,name,formxml)",
- "@odata.count": 1,
- "value": [
- {
- "@odata.etag": 'W/"741574"',
- "formid": "bb043f1b-ad18-41d0-9eaa-f0e561cb3948",
- "name": "Information",
- "formxml":
- '',
- "objecttypecode": "pinswg_harbourrevisionorder",
- "type": 2,
- },
- ],
- });
-};
-export default ApiResponse;
diff --git a/pages/api/appealforms/pinswg_householderappealhas.js b/pages/api/appealforms/pinswg_householderappealhas.js
deleted file mode 100644
index 34e4a28a..00000000
--- a/pages/api/appealforms/pinswg_householderappealhas.js
+++ /dev/null
@@ -1,20 +0,0 @@
-const ApiResponse = (req, res) => {
- res.statusCode = 200;
- res.json({
- "@odata.context":
- "https://devcrm2016.llcdt.gov.wales/DVPINS/api/data/v8.2/$metadata#systemforms(formid,name,formxml)",
- "@odata.count": 1,
- "value": [
- {
- "@odata.etag": 'W/"741656"',
- "formid": "e9ecc810-db6d-4fb4-abb4-a1a45d8cd11c",
- "name": "Information",
- "formxml":
- '',
- "objecttypecode": "pinswg_householderappealhas",
- "type": 2,
- },
- ],
- });
-};
-export default ApiResponse;
diff --git a/pages/api/appealforms/pinswg_planningappeals78.js b/pages/api/appealforms/pinswg_planningappeals78.js
deleted file mode 100644
index 02237549..00000000
--- a/pages/api/appealforms/pinswg_planningappeals78.js
+++ /dev/null
@@ -1,20 +0,0 @@
-const ApiResponse = (req, res) => {
- res.statusCode = 200;
- res.json({
- "@odata.context":
- "https://devcrm2016.llcdt.gov.wales/DVPINS/api/data/v8.2/$metadata#systemforms(formid,name,formxml)",
- "@odata.count": 1,
- "value": [
- {
- "@odata.etag": 'W/"741929"',
- "formid": "d0293a90-3d6a-4a25-bbf3-2b579a0ec134",
- "name": "Information",
- "formxml":
- '',
- "objecttypecode": "pinswg_planningappeals78",
- "type": 2,
- },
- ],
- });
-};
-export default ApiResponse;
diff --git a/pages/api/appealforms/pinswg_planningconditionss73s79.js b/pages/api/appealforms/pinswg_planningconditionss73s79.js
deleted file mode 100644
index e31c3b9a..00000000
--- a/pages/api/appealforms/pinswg_planningconditionss73s79.js
+++ /dev/null
@@ -1,20 +0,0 @@
-const ApiResponse = (req, res) => {
- res.statusCode = 200;
- res.json({
- "@odata.context":
- "https://devcrm2016.llcdt.gov.wales/DVPINS/api/data/v8.2/$metadata#systemforms(formid,name,formxml)",
- "@odata.count": 1,
- "value": [
- {
- "@odata.etag": 'W/"741978"',
- "formid": "dfb64730-0df3-4e48-8c76-7899e72eddc2",
- "name": "Information",
- "formxml":
- '',
- "objecttypecode": "pinswg_planningconditionss73s79",
- "type": 2,
- },
- ],
- });
-};
-export default ApiResponse;
diff --git a/pages/api/appealforms/pinswg_planningobligationappeals106.js b/pages/api/appealforms/pinswg_planningobligationappeals106.js
deleted file mode 100644
index df0c7d51..00000000
--- a/pages/api/appealforms/pinswg_planningobligationappeals106.js
+++ /dev/null
@@ -1,20 +0,0 @@
-const ApiResponse = (req, res) => {
- res.statusCode = 200;
- res.json({
- "@odata.context":
- "https://devcrm2016.llcdt.gov.wales/DVPINS/api/data/v8.2/$metadata#systemforms(formid,name,formxml)",
- "@odata.count": 1,
- "value": [
- {
- "@odata.etag": 'W/"742035"',
- "formid": "61d8a8a7-d1d3-4349-b64a-3b274a55b612",
- "name": "Information",
- "formxml":
- '',
- "objecttypecode": "pinswg_planningobligationappeals106",
- "type": 2,
- },
- ],
- });
-};
-export default ApiResponse;
diff --git a/pages/api/appealforms/pinswg_row.js b/pages/api/appealforms/pinswg_row.js
deleted file mode 100644
index 809c6e61..00000000
--- a/pages/api/appealforms/pinswg_row.js
+++ /dev/null
@@ -1,20 +0,0 @@
-const ApiResponse = (req, res) => {
- res.statusCode = 200;
- res.json({
- "@odata.context":
- "https://devcrm2016.llcdt.gov.wales/DVPINS/api/data/v8.2/$metadata#systemforms(formid,name,formxml)",
- "@odata.count": 1,
- "value": [
- {
- "@odata.etag": 'W/"742078"',
- "formid": "45e17e5d-ba77-4e39-b20e-5a5336d5b1f3",
- "name": "Information",
- "formxml":
- '',
- "objecttypecode": "pinswg_row",
- "type": 2,
- },
- ],
- });
-};
-export default ApiResponse;
diff --git a/pages/api/appealforms/pinswg_transportandworkact.js b/pages/api/appealforms/pinswg_transportandworkact.js
deleted file mode 100644
index f6519030..00000000
--- a/pages/api/appealforms/pinswg_transportandworkact.js
+++ /dev/null
@@ -1,20 +0,0 @@
-const ApiResponse = (req, res) => {
- res.statusCode = 200;
- res.json({
- "@odata.context":
- "https://devcrm2016.llcdt.gov.wales/DVPINS/api/data/v8.2/$metadata#systemforms(formid,name,formxml)",
- "@odata.count": 1,
- "value": [
- {
- "@odata.etag": 'W/"742121"',
- "formid": "f3bd3169-29d3-4c8c-9c14-dbf301220143",
- "name": "Information",
- "formxml":
- '',
- "objecttypecode": "pinswg_transportandworkact",
- "type": 2,
- },
- ],
- });
-};
-export default ApiResponse;
diff --git a/pages/api/incidents_form.js b/pages/api/incidents_form.js
deleted file mode 100644
index adbf6be7..00000000
--- a/pages/api/incidents_form.js
+++ /dev/null
@@ -1,29 +0,0 @@
-const ApiResponse = (req, res) => {
- res.statusCode = 200;
- res.json({
- "@odata.context":
- "https://devcrm2016.llcdt.gov.wales/DVPINS/api/data/v8.2/$metadata#systemforms(formid,name,formxml)",
- "@odata.count": 2,
- "value": [
- {
- "@odata.etag": 'W/"706035"',
- "formid": "4a63c8d1-6c1e-48ec-9db4-3e6c7155334c",
- "name": "Case",
- "formxml":
- '',
- "objecttypecode": "incident",
- "type": 2,
- },
- {
- "@odata.etag": 'W/"462223"',
- "formid": "f658c846-f74c-459b-b591-b97558958106",
- "name": "Information",
- "formxml":
- '',
- "objecttypecode": "incident",
- "type": 2,
- },
- ],
- });
-};
-export default ApiResponse;
diff --git a/pages/api/searchresults.js b/pages/api/searchresults.js
deleted file mode 100644
index caa53307..00000000
--- a/pages/api/searchresults.js
+++ /dev/null
@@ -1,101 +0,0 @@
-const ApiResponse = (req, res) => {
- res.statusCode = 200;
- res.json({
- "@odata.context":
- "https://devcrm2016.llcdt.gov.wales/DVPINS/api/data/v8.2/$metadata#incidents(_accountid_value,_customerid_value,pinswg_appealcasetype,statuscode,ticketnumber,title)",
- "@odata.count": 9,
- "value": [
- {
- "@odata.etag": 'W/"704047"',
- "_accountid_value": null,
- "_customerid_value": "56e7ef63-7e64-eb11-aaba-00224800be9c",
- "pinswg_appealcasetype": 846040000,
- "statuscode": 1,
- "ticketnumber": "CAS-00009-W8N6W4",
- "title": "CAS-00009-W8N6W4",
- "incidentid": "9919eac3-21af-eb11-aac3-00224800be9c",
- },
- {
- "@odata.etag": 'W/"704095"',
- "_accountid_value": null,
- "_customerid_value": "56e7ef63-7e64-eb11-aaba-00224800be9c",
- "pinswg_appealcasetype": 846040011,
- "statuscode": 1,
- "ticketnumber": "CAS-00010-J9W6L5",
- "title": "CAS-00010-J9W6L5",
- "incidentid": "55f4fc74-33af-eb11-aac3-00224800be9c",
- },
- {
- "@odata.etag": 'W/"709250"',
- "_accountid_value": null,
- "_customerid_value": "41fead24-29ba-eb11-aac4-00224800be9c",
- "pinswg_appealcasetype": 846040001,
- "statuscode": 1,
- "ticketnumber": "CAS-00011-K1N0J8",
- "title": "CAS-00011-K1N0J8",
- "incidentid": "6bd04d33-29ba-eb11-aac4-00224800be9c",
- },
- {
- "@odata.etag": 'W/"710463"',
- "_accountid_value": null,
- "_customerid_value": "56e7ef63-7e64-eb11-aaba-00224800be9c",
- "pinswg_appealcasetype": 846040000,
- "statuscode": 1,
- "ticketnumber": "CAS-00012-D9W6S8",
- "title": "CAS-00012-D9W6S8",
- "incidentid": "b9c9cbe4-6abc-eb11-aac4-00224800be9c",
- },
- {
- "@odata.etag": 'W/"746096"',
- "_accountid_value": null,
- "_customerid_value": "80d99a34-82ad-eb11-aac3-00224800be9c",
- "pinswg_appealcasetype": 846040025,
- "statuscode": 1,
- "ticketnumber": "CAS-00013-Z0B5Z9",
- "title": "CAS-00013-Z0B5Z9",
- "incidentid": "34071ec4-54d3-eb11-aac5-00224800be9c",
- },
- {
- "@odata.etag": 'W/"749764"',
- "_accountid_value": null,
- "_customerid_value": "56e7ef63-7e64-eb11-aaba-00224800be9c",
- "pinswg_appealcasetype": 846040021,
- "statuscode": 1,
- "ticketnumber": "CAS-00014-S3L9B4",
- "title": "CAS-00014-S3L9B4",
- "incidentid": "2230700b-ebd7-eb11-aac5-00224800be9c",
- },
- {
- "@odata.etag": 'W/"750875"',
- "_accountid_value": null,
- "_customerid_value": "cfb7b446-a7d8-eb11-aac5-00224800be9c",
- "pinswg_appealcasetype": 846040000,
- "statuscode": 1,
- "ticketnumber": "CAS-00015-L7J9H1",
- "title": "CAS-00015-L7J9H1",
- "incidentid": "d5b7b446-a7d8-eb11-aac5-00224800be9c",
- },
- {
- "@odata.etag": 'W/"755001"',
- "_accountid_value": null,
- "_customerid_value": "cfb7b446-a7d8-eb11-aac5-00224800be9c",
- "pinswg_appealcasetype": 846040004,
- "statuscode": 1,
- "ticketnumber": "CAS-00016-Y9K9Q0",
- "title": "CAS-00016-Y9K9Q0",
- "incidentid": "cc6f93ea-bdd9-eb11-aac5-00224800be9c",
- },
- {
- "@odata.etag": 'W/"755216"',
- "_accountid_value": null,
- "_customerid_value": "243c0009-49da-eb11-aac5-00224800be9c",
- "pinswg_appealcasetype": 846040004,
- "statuscode": 1,
- "ticketnumber": "CAS-00017-B8X7N0",
- "title": "CAS-00017-B8X7N0",
- "incidentid": "73895a1b-68dd-eb11-aac5-00224800be9c",
- },
- ],
- });
-};
-export default ApiResponse;
diff --git a/pages/api/searchresults2.js b/pages/api/searchresults2.js
deleted file mode 100644
index d1c43979..00000000
--- a/pages/api/searchresults2.js
+++ /dev/null
@@ -1,191 +0,0 @@
-const ApiResponse = (req, res) => {
- res.statusCode = 200;
- res.json({
- "@odata.context":
- "https://devcrm2016.llcdt.gov.wales/DVPINS/api/data/v8.2/$metadata#incidents(_accountid_value,_customerid_value,pinswg_appealcasetype,statuscode,ticketnumber,title)",
- "@odata.count": "9",
- "value": [
- {
- "@odata.etag": 'W/"704047"',
- "_accountid_value": null,
- "_customerid_value@OData.Community.Display.V1.FormattedValue":
- "Bridgend CBC",
- "_customerid_value@Microsoft.Dynamics.CRM.associatednavigationproperty":
- "customerid_account",
- "_customerid_value@Microsoft.Dynamics.CRM.lookuplogicalname":
- "account",
- "_customerid_value": "56e7ef63-7e64-eb11-aaba-00224800be9c",
- "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue":
- "Planning Appeal - S78",
- "pinswg_appealcasetype": "846040000",
- "statuscode@OData.Community.Display.V1.FormattedValue":
- "In Progress",
- "statuscode": "1",
- "ticketnumber": "CAS-00009-W8N6W4",
- "title": "CAS-00009-W8N6W4",
- "incidentid": "9919eac3-21af-eb11-aac3-00224800be9c",
- },
- {
- "@odata.etag": 'W/"704095"',
- "_accountid_value": null,
- "_customerid_value@OData.Community.Display.V1.FormattedValue":
- "Bridgend CBC",
- "_customerid_value@Microsoft.Dynamics.CRM.associatednavigationproperty":
- "customerid_account",
- "_customerid_value@Microsoft.Dynamics.CRM.lookuplogicalname":
- "account",
- "_customerid_value": "56e7ef63-7e64-eb11-aaba-00224800be9c",
- "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue":
- "DNS",
- "pinswg_appealcasetype": "846040011",
- "statuscode@OData.Community.Display.V1.FormattedValue":
- "In Progress",
- "statuscode": "1",
- "ticketnumber": "CAS-00010-J9W6L5",
- "title": "CAS-00010-J9W6L5",
- "incidentid": "55f4fc74-33af-eb11-aac3-00224800be9c",
- },
- {
- "@odata.etag": 'W/"709250"',
- "_accountid_value": null,
- "_customerid_value@OData.Community.Display.V1.FormattedValue":
- "Zoe",
- "_customerid_value@Microsoft.Dynamics.CRM.associatednavigationproperty":
- "customerid_account",
- "_customerid_value@Microsoft.Dynamics.CRM.lookuplogicalname":
- "account",
- "_customerid_value": "41fead24-29ba-eb11-aac4-00224800be9c",
- "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue":
- "Planning Conditions - S73 + S79",
- "pinswg_appealcasetype": "846040001",
- "statuscode@OData.Community.Display.V1.FormattedValue":
- "In Progress",
- "statuscode": "1",
- "ticketnumber": "CAS-00011-K1N0J8",
- "title": "CAS-00011-K1N0J8",
- "incidentid": "6bd04d33-29ba-eb11-aac4-00224800be9c",
- },
- {
- "@odata.etag": 'W/"710463"',
- "_accountid_value": null,
- "_customerid_value@OData.Community.Display.V1.FormattedValue":
- "Bridgend CBC",
- "_customerid_value@Microsoft.Dynamics.CRM.associatednavigationproperty":
- "customerid_account",
- "_customerid_value@Microsoft.Dynamics.CRM.lookuplogicalname":
- "account",
- "_customerid_value": "56e7ef63-7e64-eb11-aaba-00224800be9c",
- "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue":
- "Planning Appeal - S78",
- "pinswg_appealcasetype": "846040000",
- "statuscode@OData.Community.Display.V1.FormattedValue":
- "In Progress",
- "statuscode": "1",
- "ticketnumber": "CAS-00012-D9W6S8",
- "title": "CAS-00012-D9W6S8",
- "incidentid": "b9c9cbe4-6abc-eb11-aac4-00224800be9c",
- },
- {
- "@odata.etag": 'W/"74609"',
- "_accountid_value": null,
- "_customerid_value@OData.Community.Display.V1.FormattedValue":
- "Barry Boys High School",
- "_customerid_value@Microsoft.Dynamics.CRM.associatednavigationproperty":
- "customerid_account",
- "_customerid_value@Microsoft.Dynamics.CRM.lookuplogicalname":
- "account",
- "_customerid_value": "80d99a34-82ad-eb11-aac3-00224800be9c",
- "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue":
- "Listed Building and Convention S73 + S79",
- "pinswg_appealcasetype": "846040025",
- "statuscode@OData.Community.Display.V1.FormattedValue":
- "In Progress",
- "statuscode": "1",
- "ticketnumber": "CAS-00013-Z0B5Z9",
- "title": "CAS-00013-Z0B5Z9",
- "incidentid": "34071ec4-54d3-eb11-aac5-00224800be9c",
- },
- {
- "@odata.etag": 'W/"749764"',
- "_accountid_value": null,
- "_customerid_value@OData.Community.Display.V1.FormattedValue":
- "Bridgend CBC",
- "_customerid_value@Microsoft.Dynamics.CRM.associatednavigationproperty":
- "customerid_account",
- "_customerid_value@Microsoft.Dynamics.CRM.lookuplogicalname":
- "account",
- "_customerid_value": "56e7ef63-7e64-eb11-aaba-00224800be9c",
- "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue":
- "Wayleave",
- "pinswg_appealcasetype": "846040021",
- "statuscode@OData.Community.Display.V1.FormattedValue":
- "In Progress",
- "statuscode": "1",
- "ticketnumber": "CAS-00014-S3L9B4",
- "title": "CAS-00014-S3L9B4",
- "incidentid": "2230700b-ebd7-eb11-aac5-00224800be9c",
- },
- {
- "@odata.etag": 'W/"750875"',
- "_accountid_value": null,
- "_customerid_value@OData.Community.Display.V1.FormattedValue":
- "test customer",
- "_customerid_value@Microsoft.Dynamics.CRM.associatednavigationproperty":
- "customerid_contact",
- "_customerid_value@Microsoft.Dynamics.CRM.lookuplogicalname":
- "contact",
- "_customerid_value": "cfb7b446-a7d8-eb11-aac5-00224800be9c",
- "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue":
- "Planning Appeal - S78",
- "pinswg_appealcasetype": "846040000",
- "statuscode@OData.Community.Display.V1.FormattedValue":
- "In Progress",
- "statuscode": "1",
- "ticketnumber": "CAS-00015-L7J9H1",
- "title": "CAS-00015-L7J9H1",
- "incidentid": "d5b7b446-a7d8-eb11-aac5-00224800be9c",
- },
- {
- "@odata.etag": 'W/"755001"',
- "_accountid_value": null,
- "_customerid_value@OData.Community.Display.V1.FormattedValue":
- "test customer",
- "_customerid_value@Microsoft.Dynamics.CRM.associatednavigationproperty":
- "customerid_contact",
- "_customerid_value@Microsoft.Dynamics.CRM.lookuplogicalname":
- "contact",
- "_customerid_value": "cfb7b446-a7d8-eb11-aac5-00224800be9c",
- "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue":
- "Householder Appeal (HAS)",
- "pinswg_appealcasetype": "846040004",
- "statuscode@OData.Community.Display.V1.FormattedValue":
- "In Progress",
- "statuscode": "1",
- "ticketnumber": "CAS-00016-Y9K9Q0",
- "title": "CAS-00016-Y9K9Q0",
- "incidentid": "cc6f93ea-bdd9-eb11-aac5-00224800be9c",
- },
- {
- "@odata.etag": 'W/"755216"',
- "_accountid_value": null,
- "_customerid_value@OData.Community.Display.V1.FormattedValue":
- "Caerphilly County Borough Council",
- "_customerid_value@Microsoft.Dynamics.CRM.associatednavigationproperty":
- "customerid_account",
- "_customerid_value@Microsoft.Dynamics.CRM.lookuplogicalname":
- "account",
- "_customerid_value": "243c0009-49da-eb11-aac5-00224800be9c",
- "pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue":
- "Householder Appeal (HAS)",
- "pinswg_appealcasetype": "846040004",
- "statuscode@OData.Community.Display.V1.FormattedValue":
- "In Progress",
- "statuscode": "1",
- "ticketnumber": "CAS-00017-B8X7N0",
- "title": "CAS-00017-B8X7N0",
- "incidentid": "73895a1b-68dd-eb11-aac5-00224800be9c",
- },
- ],
- });
-};
-export default ApiResponse;
diff --git a/pages/api/viewall.js b/pages/api/viewall.js
deleted file mode 100644
index caa53307..00000000
--- a/pages/api/viewall.js
+++ /dev/null
@@ -1,101 +0,0 @@
-const ApiResponse = (req, res) => {
- res.statusCode = 200;
- res.json({
- "@odata.context":
- "https://devcrm2016.llcdt.gov.wales/DVPINS/api/data/v8.2/$metadata#incidents(_accountid_value,_customerid_value,pinswg_appealcasetype,statuscode,ticketnumber,title)",
- "@odata.count": 9,
- "value": [
- {
- "@odata.etag": 'W/"704047"',
- "_accountid_value": null,
- "_customerid_value": "56e7ef63-7e64-eb11-aaba-00224800be9c",
- "pinswg_appealcasetype": 846040000,
- "statuscode": 1,
- "ticketnumber": "CAS-00009-W8N6W4",
- "title": "CAS-00009-W8N6W4",
- "incidentid": "9919eac3-21af-eb11-aac3-00224800be9c",
- },
- {
- "@odata.etag": 'W/"704095"',
- "_accountid_value": null,
- "_customerid_value": "56e7ef63-7e64-eb11-aaba-00224800be9c",
- "pinswg_appealcasetype": 846040011,
- "statuscode": 1,
- "ticketnumber": "CAS-00010-J9W6L5",
- "title": "CAS-00010-J9W6L5",
- "incidentid": "55f4fc74-33af-eb11-aac3-00224800be9c",
- },
- {
- "@odata.etag": 'W/"709250"',
- "_accountid_value": null,
- "_customerid_value": "41fead24-29ba-eb11-aac4-00224800be9c",
- "pinswg_appealcasetype": 846040001,
- "statuscode": 1,
- "ticketnumber": "CAS-00011-K1N0J8",
- "title": "CAS-00011-K1N0J8",
- "incidentid": "6bd04d33-29ba-eb11-aac4-00224800be9c",
- },
- {
- "@odata.etag": 'W/"710463"',
- "_accountid_value": null,
- "_customerid_value": "56e7ef63-7e64-eb11-aaba-00224800be9c",
- "pinswg_appealcasetype": 846040000,
- "statuscode": 1,
- "ticketnumber": "CAS-00012-D9W6S8",
- "title": "CAS-00012-D9W6S8",
- "incidentid": "b9c9cbe4-6abc-eb11-aac4-00224800be9c",
- },
- {
- "@odata.etag": 'W/"746096"',
- "_accountid_value": null,
- "_customerid_value": "80d99a34-82ad-eb11-aac3-00224800be9c",
- "pinswg_appealcasetype": 846040025,
- "statuscode": 1,
- "ticketnumber": "CAS-00013-Z0B5Z9",
- "title": "CAS-00013-Z0B5Z9",
- "incidentid": "34071ec4-54d3-eb11-aac5-00224800be9c",
- },
- {
- "@odata.etag": 'W/"749764"',
- "_accountid_value": null,
- "_customerid_value": "56e7ef63-7e64-eb11-aaba-00224800be9c",
- "pinswg_appealcasetype": 846040021,
- "statuscode": 1,
- "ticketnumber": "CAS-00014-S3L9B4",
- "title": "CAS-00014-S3L9B4",
- "incidentid": "2230700b-ebd7-eb11-aac5-00224800be9c",
- },
- {
- "@odata.etag": 'W/"750875"',
- "_accountid_value": null,
- "_customerid_value": "cfb7b446-a7d8-eb11-aac5-00224800be9c",
- "pinswg_appealcasetype": 846040000,
- "statuscode": 1,
- "ticketnumber": "CAS-00015-L7J9H1",
- "title": "CAS-00015-L7J9H1",
- "incidentid": "d5b7b446-a7d8-eb11-aac5-00224800be9c",
- },
- {
- "@odata.etag": 'W/"755001"',
- "_accountid_value": null,
- "_customerid_value": "cfb7b446-a7d8-eb11-aac5-00224800be9c",
- "pinswg_appealcasetype": 846040004,
- "statuscode": 1,
- "ticketnumber": "CAS-00016-Y9K9Q0",
- "title": "CAS-00016-Y9K9Q0",
- "incidentid": "cc6f93ea-bdd9-eb11-aac5-00224800be9c",
- },
- {
- "@odata.etag": 'W/"755216"',
- "_accountid_value": null,
- "_customerid_value": "243c0009-49da-eb11-aac5-00224800be9c",
- "pinswg_appealcasetype": 846040004,
- "statuscode": 1,
- "ticketnumber": "CAS-00017-B8X7N0",
- "title": "CAS-00017-B8X7N0",
- "incidentid": "73895a1b-68dd-eb11-aac5-00224800be9c",
- },
- ],
- });
-};
-export default ApiResponse;
diff --git a/pages/myportal/index.js b/pages/myportal/index.js
index e2c3af4e..6c513cbd 100644
--- a/pages/myportal/index.js
+++ b/pages/myportal/index.js
@@ -1,4 +1,5 @@
import _ from "lodash";
+import { getSession, useSession } from "next-auth/react";
import useTranslation from "next-translate/useTranslation";
import Head from "next/head";
import { useRouter } from "next/router";
@@ -37,9 +38,6 @@ import {
setWatchedCases,
setWatchedCasesDetails,
} from "../../store/watchedCases/action";
-import { setCookie } from "nookies";
-
-import { getSession, useSession, signIn, signOut } from "next-auth/react";
const Home = (props) => {
const {
@@ -61,8 +59,6 @@ const Home = (props) => {
const { data: session } = useSession();
- console.log("eeee", process.env.SHOWFILEUPLOAD);
-
return (
diff --git a/store/appealType/action.js b/store/appealType/action.js
index 9b62da2c..eeb937e3 100644
--- a/store/appealType/action.js
+++ b/store/appealType/action.js
@@ -65,7 +65,6 @@ export const setFormComplete = (formComplete) => (dispatch) => {
};
export const setDocumentsList = (documentList) => (dispatch) => {
- console.log("here", documentList);
return dispatch({
type: appealTypeDataActionTypes.SETDOCUMENTLIST,
documentList: documentList,