-
- {!isLPA &&
}
-
- {/* {props.awaitingSubmission.awaitingSubmission[
+ )}
+
+
+
+ {!isLPA &&
}
+
+ {/* {props.awaitingSubmission.awaitingSubmission[
"@odata.count"
] > 0 && (
{
}
/>
)} */}
- {isLPA
- ? ""
- : props.awaitingSubmission
- .awaitingSubmissionFromBlob[
- "@odata.count"
- ] > 0 && (
-
- )}
- {props.myCases.myCases["@odata.count"] > 0 && (
-
- )}
- {props.watchedCases.watchedCases["@odata.count"] >
- 0 && (
-
- )}
- {props.myRepresentations.myRepresentations[
- "@odata.count"
- ] > 0 && (
-
- )}
- {!isLPA && }
+ {isLPA
+ ? ""
+ : props.awaitingSubmission
+ .awaitingSubmissionFromBlob[
+ "@odata.count"
+ ] > 0 && (
+
+ )}
+ {props.myCases.myCases["@odata.count"] > 0 && (
+
+ )}
+ {props.watchedCases.watchedCases["@odata.count"] >
+ 0 && (
+
+ )}
+ {props.myRepresentations.myRepresentations[
+ "@odata.count"
+ ] > 0 && (
+
+ )}
+ {!isLPA && }
- {/* */}
+ {/* */}
+
-
-
-
- >;
+
+
+ >
+ );
};
export default MyPortal;
diff --git a/components/myportal/topthree.js b/components/myportal/topthree.js
index 09b65e7d..adf44ad6 100644
--- a/components/myportal/topthree.js
+++ b/components/myportal/topthree.js
@@ -35,6 +35,7 @@ const TopThree = (props) => {
setWatchedCasesDetails,
setAwaitingSubmission,
setAwaitingSubmissionDetails,
+ showLoginCheck,
} = props;
const router = useRouter();
@@ -193,6 +194,7 @@ const TopThree = (props) => {
"appealType":
showTopThreeArr[key]
.pinswg_appealcasetype,
+ "showLoginCheck": props.showLoginCheck,
});
}}
>
diff --git a/components/myportal/watchedcases.js b/components/myportal/watchedcases.js
index b9b4d6ba..a87bc95e 100644
--- a/components/myportal/watchedcases.js
+++ b/components/myportal/watchedcases.js
@@ -19,10 +19,12 @@ const WatchedCases = (props) => {
{t("myportal:watchedcases-card-title")}
+
werwrew {props.showLoginCheck}
diff --git a/components/pdftemplates/enforcement_pdf.js b/components/pdftemplates/enforcement_pdf.js
index ed49d754..6d0271e3 100644
--- a/components/pdftemplates/enforcement_pdf.js
+++ b/components/pdftemplates/enforcement_pdf.js
@@ -99,6 +99,7 @@ export const EnforcementQuestionnaire_pdf = ({ docProps }) => {
}
let values = docProps;
let appealTypeValue = getFormCollectionByID(values.appealType);
+ console.log("//////////////////////\n docpropseeeee:".docProps);
console.log("sdffhjdhjdjdgkj: ", values.procedureType);
return (
diff --git a/components/pdftemplates/lpaQuestionnaire_pdf.js b/components/pdftemplates/lpaQuestionnaire_pdf.js
index 29504b5c..29162c21 100644
--- a/components/pdftemplates/lpaQuestionnaire_pdf.js
+++ b/components/pdftemplates/lpaQuestionnaire_pdf.js
@@ -113,6 +113,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
return dd + "/" + mm + "/" + yyyy;
}
let values = docProps;
+ console.log("//////////////////////\n docprops:".docProps);
let appealTypeValue = getFormCollectionByID(values.appealType);
console.log("sdffhjdhjdjdgkj: ", values.procedureType);
diff --git a/locales/cy/myrepresentations.json b/locales/cy/myrepresentations.json
index e732b67d..5ed6b507 100644
--- a/locales/cy/myrepresentations.json
+++ b/locales/cy/myrepresentations.json
@@ -40,8 +40,11 @@
"s78-section-question-5": "Pa weithdrefn ydych chi'n ystyried 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-7": "A ydych yn ystyried bod angen i'r Arolygydd fynd ar dir/eiddo preifat cyfagos i weld y safle?",
+ "s78-section-question-7-hint": "Os Oes, rhowch resymau a rhowch gyfeiriad y safle cyfagos. Os oes gennych rai, rhowch fanylion cyswllt y tirfeddiannwr mewn atodiad.",
"s78-section-question-8": "Os oes angen mynediad i dir/adeiladau preifat, a ydych yn fodlon i’r Arolygydd ymweld â’r safle ar sail ‘angen mynediad’, gyda dim ond y tirfeddiannwr neu ei gynrychiolydd yn bresennol?",
+ "s78-section-question-8-hint": "Os Na, rhowch resymau pam yr ydych yn ystyried bod angen Ymweliad Safle Cydymaith",
"s78-section-question-9": "A ydych yn ymwybodol o unrhyw faterion iechyd a diogelwch y byddai angen eu hystyried pan fydd yr Arolygydd yn ymweld â'r safle?",
+ "s78-section-question-9-hint": "Os Oes, disgrifiwch y materion iechyd a diogelwch i'w hystyried",
"s78-section-question-10": "Cyswllt ACLl ar gyfer ymweliad safle, gwrandawiad neu drefniadau ymchwiliad:",
"s78-section-heading-two": "Dogfennau ategol",
"s78-section-question-11": "Ffeil achos yr ACLl a sylwadau",
diff --git a/locales/en/myrepresentations.json b/locales/en/myrepresentations.json
index 474d890f..f5ecba20 100644
--- a/locales/en/myrepresentations.json
+++ b/locales/en/myrepresentations.json
@@ -40,8 +40,11 @@
"s78-section-question-5": "Which procedure do you consider the appeal should follow?",
"s78-section-question-6": "Will the Inspector need to enter the appeal site/property?",
"s78-section-question-7": "Do you consider that the Inspector needs to enter neighbouring private land/property to view the site?",
+ "s78-section-question-7-hint": "If Yes, give reasons and provide the neighbouring site address. If you have them, provide the contact details of the landowner in an attachment.",
"s78-section-question-8": "If access to private land/buildings is required, are you content for the Inspector to visit the site on an ‘access required’ basis, with only the landowner or their representative present?",
+ "s78-section-question-8-hint": "If No, give reasons for why you consider an Accompanied Site Visit to be necessary",
"s78-section-question-9": "Are you aware of any health and safety issues which would need to be considered when the Inspector visits the site?",
+ "s78-section-question-9-hint": "If Yes, describe the health and safety issues to be considered",
"s78-section-question-10": "LPA contact for site visit, hearing or inquiry arrangements:",
"s78-section-heading-two": "Supporting documents",
"s78-section-question-11": "LPA case file and representations",
@@ -112,6 +115,7 @@
"enf-section-question-8": "Are you aware of any health and safety issues which would need to be considered when the Inspector visits the site?",
"enf-section-question-8-hint": "If Yes, describe the health and safety issues to be considered",
"enf-section-question-9": "LPA contact for site visit, hearing or inquiry arrangements:",
+ "enf-section-question-9-hint": "If Yes, describe the health and safety issues to be considered",
"enf-section-heading-two": "Deemed Application Fee",
"enf-section-question-10": "Has the local planning authority received the correct fee payable in relation to this appeal for the deemed planning application/ground (a) to be considered?",
"enf-section-question-11": "Is the appeal fee exempt?",
diff --git a/pages/api/file/generatepdf.js b/pages/api/file/generatepdf.js
index 15acce1f..4f79998e 100644
--- a/pages/api/file/generatepdf.js
+++ b/pages/api/file/generatepdf.js
@@ -106,7 +106,7 @@ import { other_pdf } from "../../../components/pdftemplates/other_pdf";
export default function handler(req, res) {
var checkHash = req.query.hash;
- let reqBodyobj = JSON.parse(req.body);
+ let reqBodyobj = req.body; //JSON.parse(req.body);
console.log(
"//////////////////////\nreqBodyobj" +
diff --git a/pages/case/index.js b/pages/case/index.js
index 86e8071d..11459ae1 100644
--- a/pages/case/index.js
+++ b/pages/case/index.js
@@ -89,6 +89,7 @@ const mapStateToProps = (state) => {
watchedCases: state.watchedCases,
myRepresentations: state.myRepresentations,
awaitingSubmission: state.awaitingSubmission,
+ showLoginCheck: process.env.SHOWLOGIN || false,
};
};
diff --git a/pages/myportal/case.js b/pages/myportal/case.js
index 88be283a..dabd1c2a 100644
--- a/pages/myportal/case.js
+++ b/pages/myportal/case.js
@@ -81,7 +81,9 @@ const Home = (props) => {
props.searchResultsObj.representationsObj
}
showRepresentations={showRepresentations}
- showLoginCheck={props.currentView.showLogin}
+ showLoginCheck={
+ props.currentView.caseReference.showLogin
+ }
/>
diff --git a/pages/myportal/index.js b/pages/myportal/index.js
index a30baf5a..acba23ea 100644
--- a/pages/myportal/index.js
+++ b/pages/myportal/index.js
@@ -56,6 +56,7 @@ const Home = (props) => {
awaitingSubmission,
accountDetails,
showFileUpload,
+ showLoginCheck,
} = props;
let { t, lang } = useTranslation();
@@ -146,6 +147,7 @@ const Home = (props) => {
accountDetails={accountDetails}
showFileUpload={showFileUpload}
containerID={accountDetails.containerID}
+ showLoginCheck={showLoginCheck}
/>