+8
-2
@@ -1942,12 +1942,18 @@ export const createContainerProxy = (containerName) => {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
export const sendCaseCompleteMessage = async (containerID, caseReference) => {
|
export const sendCaseCompleteMessage = async (
|
||||||
|
containerID,
|
||||||
|
caseReference,
|
||||||
|
inv
|
||||||
|
) => {
|
||||||
var queryUrl =
|
var queryUrl =
|
||||||
"/api/file/createappealcompletemessage_api?container=" +
|
"/api/file/createappealcompletemessage_api?container=" +
|
||||||
containerID +
|
containerID +
|
||||||
"&tempcaseref=" +
|
"&tempcaseref=" +
|
||||||
caseReference;
|
caseReference +
|
||||||
|
"&inv=" +
|
||||||
|
inv;
|
||||||
|
|
||||||
var config = {
|
var config = {
|
||||||
method: "get",
|
method: "get",
|
||||||
|
|||||||
@@ -1029,7 +1029,10 @@ let MakeRepresentation = (props) => {
|
|||||||
if (currentView.representationSubmit == true) {
|
if (currentView.representationSubmit == true) {
|
||||||
console.log("capacity", currentView.representationCapacity);
|
console.log("capacity", currentView.representationCapacity);
|
||||||
console.log("has errors:", props.invalid);
|
console.log("has errors:", props.invalid);
|
||||||
Object.assign(values, { "locale": router.locale });
|
Object.assign(values, {
|
||||||
|
"locale": router.locale,
|
||||||
|
"repComplete": currentView.caseReference.currentReference,
|
||||||
|
});
|
||||||
props.invalid == false &&
|
props.invalid == false &&
|
||||||
updateRepresentation(values, false, false);
|
updateRepresentation(values, false, false);
|
||||||
// values.hasOwnProperty("representationDocuments") &&
|
// values.hasOwnProperty("representationDocuments") &&
|
||||||
|
|||||||
@@ -339,9 +339,12 @@ export const RenderCondtionalRadioList = ({
|
|||||||
className="govuk-input govuk-!-width-one-half"
|
className="govuk-input govuk-!-width-one-half"
|
||||||
id={id + "_details"}
|
id={id + "_details"}
|
||||||
name={id + "_details"}
|
name={id + "_details"}
|
||||||
component="input"
|
component={RenderTextfield}
|
||||||
type="text"
|
type="text"
|
||||||
validate={[required]}
|
validate={[required]}
|
||||||
|
errorMsg={t(
|
||||||
|
"myrepresentations:is-required-label"
|
||||||
|
)}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
+1
-1
@@ -788,6 +788,7 @@ let S78_Questionnaire = (props) => {
|
|||||||
legend={t(
|
legend={t(
|
||||||
"myrepresentations:s78-section-question-26"
|
"myrepresentations:s78-section-question-26"
|
||||||
)}
|
)}
|
||||||
|
hint={t("myrepresentations:s78-footnote-one")}
|
||||||
conditionalLabel={t(
|
conditionalLabel={t(
|
||||||
"myrepresentations:s78-section-question-26-hint"
|
"myrepresentations:s78-section-question-26-hint"
|
||||||
)}
|
)}
|
||||||
@@ -867,7 +868,6 @@ let S78_Questionnaire = (props) => {
|
|||||||
legend={t(
|
legend={t(
|
||||||
"myrepresentations:s78-section-question-29"
|
"myrepresentations:s78-section-question-29"
|
||||||
)}
|
)}
|
||||||
hint={t("myrepresentations:s78-footnote-one")}
|
|
||||||
conditionalLabel={t(
|
conditionalLabel={t(
|
||||||
"myrepresentations:s78-section-question-29-hint"
|
"myrepresentations:s78-section-question-29-hint"
|
||||||
)}
|
)}
|
||||||
|
|||||||
+139
-90
@@ -322,119 +322,169 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
|||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
{_.has(repFormData, "LPAcontactDetails") && (
|
|
||||||
<>
|
|
||||||
<div className="govuk-summary-list__row">
|
|
||||||
<dt className="govuk-summary-list__key">
|
|
||||||
10. LPA contact for site visit, hearing or inquiry
|
|
||||||
arrangements:
|
|
||||||
</dt>
|
|
||||||
|
|
||||||
<dd className="govuk-summary-list__value">
|
<>
|
||||||
|
<div className="govuk-summary-list__row">
|
||||||
|
<dt className="govuk-summary-list__key">
|
||||||
|
10. LPA contact for site visit, hearing or inquiry
|
||||||
|
arrangements:
|
||||||
|
</dt>
|
||||||
|
|
||||||
|
<dd className="govuk-summary-list__value">
|
||||||
|
{_.has(repFormData, "LPAcontactDetails") ? (
|
||||||
<div
|
<div
|
||||||
className="govuk-summary-list-check-ellipsis"
|
className="govuk-summary-list-check-ellipsis"
|
||||||
dangerouslySetInnerHTML={{
|
dangerouslySetInnerHTML={{
|
||||||
__html: repFormData.LPAcontactDetails,
|
__html: repFormData.LPAcontactDetails,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</dd>
|
) : (
|
||||||
|
"Not entered"
|
||||||
|
)}
|
||||||
|
</dd>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__actions">
|
<dd className="govuk-summary-list__actions">
|
||||||
<a
|
<a
|
||||||
className="govuk-link"
|
className="govuk-link"
|
||||||
href="#"
|
href="#"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setRepresentationSubmit(false);
|
setRepresentationSubmit(false);
|
||||||
setShowQuestionnaireSection(1);
|
setShowQuestionnaireSection(1);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{t("common:change-link-label")}
|
{t("common:change-link-label")}
|
||||||
<span className="govuk-visually-hidden">
|
<span className="govuk-visually-hidden">
|
||||||
{" "}
|
{" "}
|
||||||
{/* {FieldsTranslations(
|
{/* {FieldsTranslations(
|
||||||
rows[0].value
|
rows[0].value
|
||||||
)} */}
|
)} */}
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
</dd>
|
</dd>
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
)}
|
|
||||||
{_.has(repFormData, "LPAcaseFileAndReps") && (
|
|
||||||
<>
|
|
||||||
<div className="govuk-summary-list__row">
|
|
||||||
<dt className="govuk-summary-list__key">
|
|
||||||
11. LPA case file and represen- tations
|
|
||||||
</dt>
|
|
||||||
|
|
||||||
<dd className="govuk-summary-list__value">
|
<>
|
||||||
|
<div className="govuk-summary-list__row">
|
||||||
|
<dt className="govuk-summary-list__key">
|
||||||
|
11. LPA case file and represen- tations
|
||||||
|
</dt>
|
||||||
|
|
||||||
|
<dd className="govuk-summary-list__value">
|
||||||
|
{_.has(repFormData, "LPAcaseFileAndReps") ? (
|
||||||
<div
|
<div
|
||||||
className="govuk-summary-list-check-ellipsis"
|
className="govuk-summary-list-check-ellipsis"
|
||||||
dangerouslySetInnerHTML={{
|
dangerouslySetInnerHTML={{
|
||||||
__html: repFormData.LPAcaseFileAndReps,
|
__html: repFormData.LPAcaseFileAndReps,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</dd>
|
) : (
|
||||||
|
"Not entered"
|
||||||
|
)}
|
||||||
|
</dd>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__actions">
|
<dd className="govuk-summary-list__actions">
|
||||||
<a
|
<a
|
||||||
className="govuk-link"
|
className="govuk-link"
|
||||||
href="#"
|
href="#"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setRepresentationSubmit(false);
|
setRepresentationSubmit(false);
|
||||||
setShowQuestionnaireSection(2);
|
setShowQuestionnaireSection(2);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{t("common:change-link-label")}
|
{t("common:change-link-label")}
|
||||||
<span className="govuk-visually-hidden">
|
<span className="govuk-visually-hidden">
|
||||||
{" "}
|
{" "}
|
||||||
{/* {FieldsTranslations(
|
{/* {FieldsTranslations(
|
||||||
rows[0].value
|
rows[0].value
|
||||||
)} */}
|
)} */}
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
</dd>
|
</dd>
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
)}
|
|
||||||
{_.has(repFormData, "LPAldpAndMap") && (
|
|
||||||
<>
|
|
||||||
<div className="govuk-summary-list__row">
|
|
||||||
<dt className="govuk-summary-list__key">
|
|
||||||
12. LPA’s adopted Local Development Plan and
|
|
||||||
Proposals Map
|
|
||||||
</dt>
|
|
||||||
|
|
||||||
<dd className="govuk-summary-list__value">
|
<>
|
||||||
|
<div className="govuk-summary-list__row">
|
||||||
|
<dt className="govuk-summary-list__key">
|
||||||
|
12. LPA’s adopted Local Development Plan and Proposals
|
||||||
|
Map
|
||||||
|
</dt>
|
||||||
|
|
||||||
|
<dd className="govuk-summary-list__value">
|
||||||
|
{_.has(repFormData, "LPAldpAndMap") ? (
|
||||||
<div
|
<div
|
||||||
className="govuk-summary-list-check-ellipsis"
|
className="govuk-summary-list-check-ellipsis"
|
||||||
dangerouslySetInnerHTML={{
|
dangerouslySetInnerHTML={{
|
||||||
__html: repFormData.LPAldpAndMap,
|
__html: repFormData.LPAldpAndMap,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</dd>
|
) : (
|
||||||
|
"Not entered"
|
||||||
|
)}
|
||||||
|
</dd>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__actions">
|
<dd className="govuk-summary-list__actions">
|
||||||
<a
|
<a
|
||||||
className="govuk-link"
|
className="govuk-link"
|
||||||
href="#"
|
href="#"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setRepresentationSubmit(false);
|
setRepresentationSubmit(false);
|
||||||
setShowQuestionnaireSection(2);
|
setShowQuestionnaireSection(2);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{t("common:change-link-label")}
|
{t("common:change-link-label")}
|
||||||
<span className="govuk-visually-hidden">
|
<span className="govuk-visually-hidden">
|
||||||
{" "}
|
{" "}
|
||||||
{/* {FieldsTranslations(
|
{/* {FieldsTranslations(
|
||||||
rows[0].value
|
rows[0].value
|
||||||
)} */}
|
)} */}
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
</dd>
|
</dd>
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
)}
|
|
||||||
|
<>
|
||||||
|
<div className="govuk-summary-list__row">
|
||||||
|
<dt className="govuk-summary-list__key">
|
||||||
|
13. {t("myrepresentations:s78-section-question-13")}
|
||||||
|
</dt>
|
||||||
|
|
||||||
|
<dd className="govuk-summary-list__value">
|
||||||
|
{_.has(repFormData, "LPAlocalGuidance") ? (
|
||||||
|
<div
|
||||||
|
className="govuk-summary-list-check-ellipsis"
|
||||||
|
dangerouslySetInnerHTML={{
|
||||||
|
__html: repFormData.LPAlocalGuidance,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
) : (
|
||||||
|
"Not entered"
|
||||||
|
)}
|
||||||
|
</dd>
|
||||||
|
|
||||||
|
<dd className="govuk-summary-list__actions">
|
||||||
|
<a
|
||||||
|
className="govuk-link"
|
||||||
|
href="#"
|
||||||
|
onClick={() => {
|
||||||
|
setRepresentationSubmit(false);
|
||||||
|
setShowQuestionnaireSection(2);
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{t("common:change-link-label")}
|
||||||
|
<span className="govuk-visually-hidden">
|
||||||
|
{" "}
|
||||||
|
{/* {FieldsTranslations(
|
||||||
|
rows[0].value
|
||||||
|
)} */}
|
||||||
|
</span>
|
||||||
|
</a>
|
||||||
|
</dd>
|
||||||
|
</div>
|
||||||
|
</>
|
||||||
|
|
||||||
{_.has(repFormData, "LPAintentionToSubmitFullStatement") && (
|
{_.has(repFormData, "LPAintentionToSubmitFullStatement") && (
|
||||||
<>
|
<>
|
||||||
<div className="govuk-summary-list__row">
|
<div className="govuk-summary-list__row">
|
||||||
@@ -472,8 +522,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
|||||||
<>
|
<>
|
||||||
<div className="govuk-summary-list__row">
|
<div className="govuk-summary-list__row">
|
||||||
<dt className="govuk-summary-list__key">
|
<dt className="govuk-summary-list__key">
|
||||||
15. Is all or part of the site within an Area of
|
15. {t("myrepresentations:s78-section-question-15")}
|
||||||
Outstanding Natural Beauty?
|
|
||||||
</dt>
|
</dt>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__value">
|
<dd className="govuk-summary-list__value">
|
||||||
@@ -505,7 +554,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
|||||||
<>
|
<>
|
||||||
<div className="govuk-summary-list__row">
|
<div className="govuk-summary-list__row">
|
||||||
<dt className="govuk-summary-list__key">
|
<dt className="govuk-summary-list__key">
|
||||||
16. {t("myrepresentations:s78-section-question-15")}
|
16. {t("myrepresentations:s78-section-question-16")}
|
||||||
</dt>
|
</dt>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__value">
|
<dd className="govuk-summary-list__value">
|
||||||
@@ -1306,7 +1355,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
|||||||
<dt className="govuk-summary-list__key">
|
<dt className="govuk-summary-list__key">
|
||||||
26. A copy of the applicant’s certificate confirming
|
26. A copy of the applicant’s certificate confirming
|
||||||
that they notified persons with an interest in the
|
that they notified persons with an interest in the
|
||||||
land?*
|
land?
|
||||||
</dt>
|
</dt>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__value">
|
<dd className="govuk-summary-list__value">
|
||||||
@@ -1332,7 +1381,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
|||||||
</a>
|
</a>
|
||||||
</dd>
|
</dd>
|
||||||
</div>
|
</div>
|
||||||
{repFormData.copyOfApplicantsCertificate == "Yes" && (
|
{repFormData.copyOfApplicantsCertificate == "No" && (
|
||||||
<div className="govuk-summary-list__row">
|
<div className="govuk-summary-list__row">
|
||||||
<dt className="govuk-summary-list__key">
|
<dt className="govuk-summary-list__key">
|
||||||
Evidence
|
Evidence
|
||||||
@@ -1401,7 +1450,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
|||||||
</a>
|
</a>
|
||||||
</dd>
|
</dd>
|
||||||
</div>
|
</div>
|
||||||
{repFormData.advertismentGiven == "Yes" && (
|
{repFormData.advertismentGiven == "No" && (
|
||||||
<div className="govuk-summary-list__row">
|
<div className="govuk-summary-list__row">
|
||||||
<dt className="govuk-summary-list__key">
|
<dt className="govuk-summary-list__key">
|
||||||
Evidence
|
Evidence
|
||||||
@@ -1470,7 +1519,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
|||||||
</a>
|
</a>
|
||||||
</dd>
|
</dd>
|
||||||
</div>
|
</div>
|
||||||
{repFormData.copyOfLetterOfAppealNotification == "Yes" && (
|
{repFormData.copyOfLetterOfAppealNotification == "No" && (
|
||||||
<div className="govuk-summary-list__row">
|
<div className="govuk-summary-list__row">
|
||||||
<dt className="govuk-summary-list__key">
|
<dt className="govuk-summary-list__key">
|
||||||
Evidence
|
Evidence
|
||||||
|
|||||||
@@ -187,39 +187,44 @@ const TopThree = (props) => {
|
|||||||
<div className="cardModuleDetails">
|
<div className="cardModuleDetails">
|
||||||
<div className="cardModuleReference">
|
<div className="cardModuleReference">
|
||||||
<b>{t("myportal:case-reference")}:</b>
|
<b>{t("myportal:case-reference")}:</b>
|
||||||
<Link
|
{showTopThreeArr[key].hasOwnProperty("repComplete") ? (
|
||||||
// href="#"
|
<b>{showTopThreeArr[key].pinswg_name}</b>
|
||||||
href={{
|
) : (
|
||||||
pathname:
|
<Link
|
||||||
router.locale == "cy"
|
// href="#"
|
||||||
? "/fymhorth/representation"
|
href={{
|
||||||
: "/myportal/representation",
|
pathname:
|
||||||
query: {
|
router.locale == "cy"
|
||||||
case: showTopThreeArr[key].caseRef,
|
? "/fymhorth/representation"
|
||||||
state: "edit",
|
: "/myportal/representation",
|
||||||
created: showTopThreeArr[key].repfile_name,
|
query: {
|
||||||
},
|
case: showTopThreeArr[key].caseRef,
|
||||||
}}
|
state: "edit",
|
||||||
className="govuk-link--no-underline"
|
created:
|
||||||
data-id={index}
|
showTopThreeArr[key].repfile_name,
|
||||||
onClick={() => {
|
},
|
||||||
setCurrentReference({
|
}}
|
||||||
"ticketnumber":
|
className="govuk-link--no-underline"
|
||||||
showTopThreeArr[key].ticketnumber,
|
data-id={index}
|
||||||
"currentReference":
|
onClick={() => {
|
||||||
showTopThreeArr[key].caseRef,
|
setCurrentReference({
|
||||||
"currentType": topThreeType,
|
"ticketnumber":
|
||||||
"incidentid":
|
showTopThreeArr[key].ticketnumber,
|
||||||
showTopThreeArr[key].incidentID,
|
"currentReference":
|
||||||
"appealType":
|
showTopThreeArr[key].caseRef,
|
||||||
showTopThreeArr[key].appealType,
|
"currentType": topThreeType,
|
||||||
"repDetails": showTopThreeArr[key],
|
"incidentid":
|
||||||
});
|
showTopThreeArr[key].incidentID,
|
||||||
isLPA && setRepresentationCapacity("lpa");
|
"appealType":
|
||||||
}}
|
showTopThreeArr[key].appealType,
|
||||||
>
|
"repDetails": showTopThreeArr[key],
|
||||||
{showTopThreeArr[key].pinswg_name}
|
});
|
||||||
</Link>
|
isLPA && setRepresentationCapacity("lpa");
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{showTopThreeArr[key].pinswg_name}
|
||||||
|
</Link>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div className="cardModuleReference">
|
<div className="cardModuleReference">
|
||||||
<b>{t("myportal:representation-type")}:</b>
|
<b>{t("myportal:representation-type")}:</b>
|
||||||
@@ -269,30 +274,41 @@ const TopThree = (props) => {
|
|||||||
"_pinswg_localplanningauthority_value@OData.Community.Display.V1.FormattedValue"
|
"_pinswg_localplanningauthority_value@OData.Community.Display.V1.FormattedValue"
|
||||||
] || ""}
|
] || ""}
|
||||||
</div>
|
</div>
|
||||||
|
{showTopThreeArr[key].hasOwnProperty("repComplete") && (
|
||||||
|
<div className="cardModuleReference">
|
||||||
|
<b>
|
||||||
|
{" "}
|
||||||
|
{t("myportal:submission-processing-label")}
|
||||||
|
.....
|
||||||
|
</b>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div className="">
|
{!showTopThreeArr[key].hasOwnProperty("repComplete") && (
|
||||||
<button
|
<div className="">
|
||||||
title={t("case:do-you-want-to-delete-case-label")}
|
<button
|
||||||
className=" cardModuleRemoveCase govuk-link govuk-link--no-underline govuk-link--inverse "
|
title={t("case:do-you-want-to-delete-case-label")}
|
||||||
onClick={() => {
|
className=" cardModuleRemoveCase govuk-link govuk-link--no-underline govuk-link--inverse "
|
||||||
confirm(
|
onClick={() => {
|
||||||
t("case:do-you-want-to-delete-case-label") +
|
confirm(
|
||||||
showTopThreeArr[key].pinswg_name +
|
t("case:do-you-want-to-delete-case-label") +
|
||||||
"?\n" +
|
showTopThreeArr[key].pinswg_name +
|
||||||
t(
|
"?\n" +
|
||||||
"case:do-you-want-to-delete-case-disclaimer-label"
|
t(
|
||||||
)
|
"case:do-you-want-to-delete-case-disclaimer-label"
|
||||||
) &&
|
)
|
||||||
deleteRepItem(
|
) &&
|
||||||
props.accountDetails.containerID,
|
deleteRepItem(
|
||||||
showTopThreeArr[key].pinswg_name,
|
props.accountDetails.containerID,
|
||||||
showTopThreeArr[key].repfile_name
|
showTopThreeArr[key].pinswg_name,
|
||||||
);
|
showTopThreeArr[key].repfile_name
|
||||||
}}
|
);
|
||||||
>
|
}}
|
||||||
—
|
>
|
||||||
</button>
|
—
|
||||||
</div>
|
</button>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import {
|
|||||||
View,
|
View,
|
||||||
} from "@react-pdf/renderer";
|
} from "@react-pdf/renderer";
|
||||||
import Html from "react-pdf-html";
|
import Html from "react-pdf-html";
|
||||||
import { getFormCollectionByID } from "../../components/utils";
|
import { getFormCollectionByID, bytesToSize } from "../../components/utils";
|
||||||
|
|
||||||
const styles = StyleSheet.create({
|
const styles = StyleSheet.create({
|
||||||
page: {
|
page: {
|
||||||
@@ -1543,7 +1543,11 @@ export const EnforcementQuestionnaire_pdf = ({ docProps }) => {
|
|||||||
styles.questionTextMid
|
styles.questionTextMid
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
{p.name} - {p.size}
|
{p.name} -{" "}
|
||||||
|
{bytesToSize(
|
||||||
|
p.size
|
||||||
|
)}{" "}
|
||||||
|
{"\n"}
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import ReactPDF, {
|
|||||||
} from "@react-pdf/renderer";
|
} from "@react-pdf/renderer";
|
||||||
import { createElement } from "react";
|
import { createElement } from "react";
|
||||||
import Html from "react-pdf-html";
|
import Html from "react-pdf-html";
|
||||||
import { getFormCollectionByID } from "../../components/utils";
|
import { getFormCollectionByID, bytesToSize } from "../../components/utils";
|
||||||
|
|
||||||
import transLookupCY from "../../locales/cy/myrepresentations.json";
|
import transLookupCY from "../../locales/cy/myrepresentations.json";
|
||||||
import transLookupEN from "../../locales/en/myrepresentations.json";
|
import transLookupEN from "../../locales/en/myrepresentations.json";
|
||||||
@@ -377,7 +377,9 @@ export const finalComments_pdf = ({ docProps }) => {
|
|||||||
styles.questionTextMid
|
styles.questionTextMid
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
{p.name} - {p.size}
|
{p.name} -{" "}
|
||||||
|
{bytesToSize(p.size)}{" "}
|
||||||
|
{"\n"}
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import {
|
|||||||
View,
|
View,
|
||||||
} from "@react-pdf/renderer";
|
} from "@react-pdf/renderer";
|
||||||
import Html from "react-pdf-html";
|
import Html from "react-pdf-html";
|
||||||
import { getFormCollectionByID } from "../../components/utils";
|
import { getFormCollectionByID, bytesToSize } from "../../components/utils";
|
||||||
|
|
||||||
import transLookupCY from "../../locales/cy/myrepresentations.json";
|
import transLookupCY from "../../locales/cy/myrepresentations.json";
|
||||||
import transLookupEN from "../../locales/en/myrepresentations.json";
|
import transLookupEN from "../../locales/en/myrepresentations.json";
|
||||||
@@ -1413,7 +1413,11 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
|||||||
styles.questionTextMid
|
styles.questionTextMid
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
{p.name} - {p.size}
|
{p.name} -{" "}
|
||||||
|
{bytesToSize(
|
||||||
|
p.size
|
||||||
|
)}{" "}
|
||||||
|
{"\n"}
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import ReactPDF, {
|
|||||||
} from "@react-pdf/renderer";
|
} from "@react-pdf/renderer";
|
||||||
import { createElement } from "react";
|
import { createElement } from "react";
|
||||||
import Html from "react-pdf-html";
|
import Html from "react-pdf-html";
|
||||||
import { getFormCollectionByID } from "../../components/utils";
|
import { getFormCollectionByID, bytesToSize } from "../../components/utils";
|
||||||
|
|
||||||
import transLookupCY from "../../locales/cy/myrepresentations.json";
|
import transLookupCY from "../../locales/cy/myrepresentations.json";
|
||||||
import transLookupEN from "../../locales/en/myrepresentations.json";
|
import transLookupEN from "../../locales/en/myrepresentations.json";
|
||||||
@@ -312,7 +312,9 @@ export const other_pdf = ({ docProps }) => {
|
|||||||
styles.questionTextMid
|
styles.questionTextMid
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
{p.name} - {p.size}
|
{p.name} -{" "}
|
||||||
|
{bytesToSize(p.size)}{" "}
|
||||||
|
{"\n"}
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import {
|
|||||||
View,
|
View,
|
||||||
} from "@react-pdf/renderer";
|
} from "@react-pdf/renderer";
|
||||||
import Html from "react-pdf-html";
|
import Html from "react-pdf-html";
|
||||||
import { getFormCollectionByID } from "../../components/utils";
|
import { getFormCollectionByID, bytesToSize } from "../../components/utils";
|
||||||
|
|
||||||
import transLookupCY from "../../locales/cy/myrepresentations.json";
|
import transLookupCY from "../../locales/cy/myrepresentations.json";
|
||||||
import transLookupEN from "../../locales/en/myrepresentations.json";
|
import transLookupEN from "../../locales/en/myrepresentations.json";
|
||||||
@@ -371,7 +371,9 @@ export const statement_pdf = ({ docProps }) => {
|
|||||||
styles.questionTextMid
|
styles.questionTextMid
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
{p.name} - {p.size}
|
{p.name} -{" "}
|
||||||
|
{bytesToSize(p.size)}{" "}
|
||||||
|
{"\n"}
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import {
|
|||||||
View,
|
View,
|
||||||
} from "@react-pdf/renderer";
|
} from "@react-pdf/renderer";
|
||||||
import Html from "react-pdf-html";
|
import Html from "react-pdf-html";
|
||||||
import { getFormCollectionByID } from "../../components/utils";
|
import { getFormCollectionByID, bytesToSize } from "../../components/utils";
|
||||||
|
|
||||||
const styles = StyleSheet.create({
|
const styles = StyleSheet.create({
|
||||||
page: {
|
page: {
|
||||||
@@ -289,7 +289,9 @@ export const writtenStatement_pdf = ({ docProps }) => {
|
|||||||
styles.questionTextMid
|
styles.questionTextMid
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
{p.name} - {p.size}
|
{p.name} -{" "}
|
||||||
|
{bytesToSize(p.size)}{" "}
|
||||||
|
{"\n"}
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -77,13 +77,14 @@ export const getSearchDetails = async (searchResultsObj) => {
|
|||||||
let formMeta = getFormCollectionByID(
|
let formMeta = getFormCollectionByID(
|
||||||
searchDetail.pinswg_appealcasetype
|
searchDetail.pinswg_appealcasetype
|
||||||
);
|
);
|
||||||
console.log(
|
// console.log(
|
||||||
"------------------- Details: ",
|
// "------------------- Details: ",
|
||||||
formMeta.LogicalCollectionName,
|
// formMeta.LogicalCollectionName,
|
||||||
searchDetail.title,
|
// searchDetail.title,
|
||||||
formMeta.PrimaryIdAttribute,
|
// formMeta.PrimaryIdAttribute,
|
||||||
searchDetail.incidentid
|
// searchDetail.incidentid,
|
||||||
);
|
// searchDetail.pinswg_appealcasetype
|
||||||
|
// );
|
||||||
|
|
||||||
if (searchDetail.pinswg_appealcasetype == null) {
|
if (searchDetail.pinswg_appealcasetype == null) {
|
||||||
detailsArr.push(
|
detailsArr.push(
|
||||||
|
|||||||
@@ -90,7 +90,7 @@
|
|||||||
"s78-section-question-24d": "Ni chaiff unrhyw waith datblygu ddigwydd hyd nes y bydd cynllun i alluogi darparu seilwaith band eang all drosglwyddo data ar gyfradd gigadid o ffin y safle i’r anheddau/adeiladau a ganiateir drwy hyn wedi cael ei gyflwyno i’r awdurdod cynllunio lleol a’i gytuno ganddo’n ysgrifenedig. Bydd y datblygiad yn cael ei gynnal yn unol â'r manylion cymeradwy. Rheswm: Er mwyn cefnogi’r gwaith o gyflwyno seilwaith cyfathrebu digidol ledled Cymru yn unol â Pholisi 13 Cymru’r Dyfodol.",
|
"s78-section-question-24d": "Ni chaiff unrhyw waith datblygu ddigwydd hyd nes y bydd cynllun i alluogi darparu seilwaith band eang all drosglwyddo data ar gyfradd gigadid o ffin y safle i’r anheddau/adeiladau a ganiateir drwy hyn wedi cael ei gyflwyno i’r awdurdod cynllunio lleol a’i gytuno ganddo’n ysgrifenedig. Bydd y datblygiad yn cael ei gynnal yn unol â'r manylion cymeradwy. Rheswm: Er mwyn cefnogi’r gwaith o gyflwyno seilwaith cyfathrebu digidol ledled Cymru yn unol â Pholisi 13 Cymru’r Dyfodol.",
|
||||||
"s78-section-question-25": "A ydych yn ystyried bod amodau eraill, neu fersiynau diwygiedig o'r amodau safonol uchod, yn angenrheidiol?",
|
"s78-section-question-25": "A ydych yn ystyried bod amodau eraill, neu fersiynau diwygiedig o'r amodau safonol uchod, yn angenrheidiol?",
|
||||||
"s78-section-question-25-hint": "Os Ydych, rhestrwch nhw yma neu mewn dogfen atodedig. Dylech gynnwys rhesymau a pholisïau perthnasol y cynllun datblygu. Os ydych yn bwriadu anfon amodau awgrymedig gyda’ch datganiad 4 wythnos, nodwch hyn yma.",
|
"s78-section-question-25-hint": "Os Ydych, rhestrwch nhw yma neu mewn dogfen atodedig. Dylech gynnwys rhesymau a pholisïau perthnasol y cynllun datblygu. Os ydych yn bwriadu anfon amodau awgrymedig gyda’ch datganiad 4 wythnos, nodwch hyn yma.",
|
||||||
"s78-section-heading-five": "Cyn anfon, ydych chi wedi atodi neu ddarparu dolen we i'r canlynol:",
|
"s78-section-heading-five": "Cyn llenwi'r ffurflen hon, nodwch a ydych am atodi ffeil(iau) ar gyfer y canlynol, ac os na, darparwch ddolen gwe:",
|
||||||
"s78-section-question-26": "Copi o dystysgrif yr ymgeisydd sy'n cadarnhau ei fod wedi hysbysu pobl sydd â buddiant yn y tir?",
|
"s78-section-question-26": "Copi o dystysgrif yr ymgeisydd sy'n cadarnhau ei fod wedi hysbysu pobl sydd â buddiant yn y tir?",
|
||||||
"s78-section-question-26-hint": "Rhowch ddolen we yma os yw ar gael ar-lein. Os Na, rhowch resymau",
|
"s78-section-question-26-hint": "Rhowch ddolen we yma os yw ar gael ar-lein. Os Na, rhowch resymau",
|
||||||
"s78-section-question-27": "Tystiolaeth o unrhyw gyhoeddusrwydd a roddwyd i'r cais, gan gynnwys hysbysiadau safle a hysbyseb leol?",
|
"s78-section-question-27": "Tystiolaeth o unrhyw gyhoeddusrwydd a roddwyd i'r cais, gan gynnwys hysbysiadau safle a hysbyseb leol?",
|
||||||
|
|||||||
@@ -83,14 +83,14 @@
|
|||||||
"s78-section-question-23-hint": "If Yes, specify which and attach any relevant details",
|
"s78-section-question-23-hint": "If Yes, specify which and attach any relevant details",
|
||||||
"s78-section-heading-four": "Suggested conditions",
|
"s78-section-heading-four": "Suggested conditions",
|
||||||
"s78-section-question-24": "Review the following standard conditions and advise whether they would be necessary if permission/consent is granted (not applicable to Advertisement consent proposals)",
|
"s78-section-question-24": "Review the following standard conditions and advise whether they would be necessary if permission/consent is granted (not applicable to Advertisement consent proposals)",
|
||||||
"s78-section-question-24a": "The development shall begin not later than five years from the date of this decision. Reason: To comply with Section 91 of the Town and Country Planning Act 1990 / Section 18 of the Town and Country Planning (Listed Building and Conservation Areas) Act 1990.",
|
"s78-section-question-24a": "a) The development shall begin not later than five years from the date of this decision. Reason: To comply with Section 91 of the Town and Country Planning Act 1990 / Section 18 of the Town and Country Planning (Listed Building and Conservation Areas) Act 1990.",
|
||||||
"s78-section-question-24b": "The development shall be carried out in accordance with the following approved plans and documents: ............................ Reason: To ensure the development is carried out in accordance with the approved documents, plans and drawings submitted with the application.",
|
"s78-section-question-24b": "b) The development shall be carried out in accordance with the following approved plans and documents: ............................ Reason: To ensure the development is carried out in accordance with the approved documents, plans and drawings submitted with the application.",
|
||||||
"s78-section-question-24b-hint": "If Yes, list the approved plans, documents and drawings here or list them in an attached document",
|
"s78-section-question-24b-hint": "If Yes, list the approved plans, documents and drawings here or list them in an attached document",
|
||||||
"s78-section-question-24c": "No development shall take place until a scheme for biodiversity enhancement has been submitted to and agreed in writing by the Local Planning Authority. Development shall be carried out in accordance with the approved details. Reason: In the interests of maintaining and enhancing biodiversity, in accordance with Future Wales Policy 9.",
|
"s78-section-question-24c": "c) No development shall take place until a scheme for biodiversity enhancement has been submitted to and agreed in writing by the Local Planning Authority. Development shall be carried out in accordance with the approved details. Reason: In the interests of maintaining and enhancing biodiversity, in accordance with Future Wales Policy 9.",
|
||||||
"s78-section-question-24d": "No development shall take place until a scheme to enable the provision of gigabit capable broadband infrastructure from the site boundary to the dwellings/buildings hereby permitted has been submitted to and agreed in writing by the Local Planning Authority. Development shall be carried out in accordance with the approved details. Reason: To support the roll-out of digital communications infrastructure across Wales in accordance with Policy 13 of Future Wales.",
|
"s78-section-question-24d": "d) No development shall take place until a scheme to enable the provision of gigabit capable broadband infrastructure from the site boundary to the dwellings/buildings hereby permitted has been submitted to and agreed in writing by the Local Planning Authority. Development shall be carried out in accordance with the approved details. Reason: To support the roll-out of digital communications infrastructure across Wales in accordance with Policy 13 of Future Wales.",
|
||||||
"s78-section-question-25": "Do you consider other conditions, or amended versions of the above standard conditions, to be necessary?",
|
"s78-section-question-25": "Do you consider other conditions, or amended versions of the above standard conditions, to be necessary?",
|
||||||
"s78-section-question-25-hint": "If Yes, list them here or in an attached document. Include reasons and relevant development plan policies. If you intend to send suggested conditions alongside your 4 week statement, state this here.",
|
"s78-section-question-25-hint": "If Yes, list them here or in an attached document. Include reasons and relevant development plan policies. If you intend to send suggested conditions alongside your 4 week statement, state this here.",
|
||||||
"s78-section-heading-five": "Before sending, have you attached or provided a web link to the following:",
|
"s78-section-heading-five": "Before completing this form, indicate if you are going to attach file(s) for the following, if not, provide a web link:",
|
||||||
"s78-section-question-26": "A copy of the applicant’s certificate confirming that they notified persons with an interest in the land?",
|
"s78-section-question-26": "A copy of the applicant’s certificate confirming that they notified persons with an interest in the land?",
|
||||||
"s78-section-question-26-hint": "Insert weblink here if available online. If No, give reasons",
|
"s78-section-question-26-hint": "Insert weblink here if available online. If No, give reasons",
|
||||||
"s78-section-question-27": "Evidence of any publicity given to the application, including site notices and local advertisement?",
|
"s78-section-question-27": "Evidence of any publicity given to the application, including site notices and local advertisement?",
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import {
|
|||||||
createBlob,
|
createBlob,
|
||||||
getCaseBlob,
|
getCaseBlob,
|
||||||
} from "../../../actions/azurestorage";
|
} from "../../../actions/azurestorage";
|
||||||
|
import _ from "lodash";
|
||||||
|
|
||||||
import nextConnect from "next-connect";
|
import nextConnect from "next-connect";
|
||||||
import middleware from "../middleware/middleware";
|
import middleware from "../middleware/middleware";
|
||||||
@@ -53,10 +54,28 @@ ApiProxy.get(async (req, res) => {
|
|||||||
await createBlob(JSON.stringify(blobProgress), containerName, tempCaseRef)
|
await createBlob(JSON.stringify(blobProgress), containerName, tempCaseRef)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
//update case.json with lpa ref and description
|
//update case.json with lpa ref and description
|
||||||
|
|
||||||
|
let combinedAddress =
|
||||||
|
blobProgress.pinswg_siteaddressline1 +
|
||||||
|
(!_.isEmpty(blobProgress.pinswg_siteaddressline2)
|
||||||
|
? ", " + blobProgress.pinswg_siteaddressline2
|
||||||
|
: "") +
|
||||||
|
(!_.isEmpty(blobProgress.pinswg_siteaddresstown)
|
||||||
|
? ", " + blobProgress.pinswg_siteaddresstown
|
||||||
|
: "");
|
||||||
|
|
||||||
|
combinedAddress =
|
||||||
|
combinedAddress +
|
||||||
|
", " +
|
||||||
|
blobProgress.pinswg_siteaddresscounty +
|
||||||
|
", " +
|
||||||
|
blobProgress.pinswg_siteaddresspostcode;
|
||||||
|
|
||||||
Object.assign(caseObj, {
|
Object.assign(caseObj, {
|
||||||
"pinswg_lpareference":
|
"pinswg_lpareference":
|
||||||
blobProgress.pinswg_lpaapplicationreference,
|
blobProgress.pinswg_lpaapplicationreference,
|
||||||
"description": blobProgress.pinswg_developmentdescription,
|
"description": blobProgress.pinswg_developmentdescription,
|
||||||
|
"pinswg_caseaddress": combinedAddress,
|
||||||
});
|
});
|
||||||
|
|
||||||
//send update case.json and then create queue message
|
//send update case.json and then create queue message
|
||||||
|
|||||||
@@ -114,6 +114,8 @@ const CaseHome = (props) => {
|
|||||||
}
|
}
|
||||||
showLoginCheck={true}
|
showLoginCheck={true}
|
||||||
messagesObj={props.messagesObj}
|
messagesObj={props.messagesObj}
|
||||||
|
showFilteredDocs={props.showFilteredDocs}
|
||||||
|
showMaps={props.showMaps}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<Footer
|
<Footer
|
||||||
@@ -358,6 +360,8 @@ export const getServerSideProps = wrapper.getServerSideProps(
|
|||||||
messagesObj: await getCaseMessage(
|
messagesObj: await getCaseMessage(
|
||||||
searchResultsObj.value[0].incidentid
|
searchResultsObj.value[0].incidentid
|
||||||
),
|
),
|
||||||
|
showFilteredDocs: process.env.SHOWFILTERDOCS || false,
|
||||||
|
showMaps: process.env.SHOWMAPS,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user