Merged PR 1366: Upload and pdf formatting and Enf
Related work items: #12956
This commit is contained in:
@@ -34,6 +34,8 @@ let MakeRepresentation = (props) => {
|
|||||||
|
|
||||||
const [clearRepForm, setClearRepForm] = useState(false);
|
const [clearRepForm, setClearRepForm] = useState(false);
|
||||||
const [savingStatus, setSavingStatus] = useState(false);
|
const [savingStatus, setSavingStatus] = useState(false);
|
||||||
|
const [finaliseAppealProcess, setFinaliseAppealProcess] = useState(false);
|
||||||
|
|
||||||
//const [questionnaireCount, setQuestionnaireCount] = useState(0);
|
//const [questionnaireCount, setQuestionnaireCount] = useState(0);
|
||||||
|
|
||||||
const { data: session } = useSession();
|
const { data: session } = useSession();
|
||||||
@@ -347,14 +349,14 @@ let MakeRepresentation = (props) => {
|
|||||||
currentView.caseReference.appealType != 846040015 &&
|
currentView.caseReference.appealType != 846040015 &&
|
||||||
currentView.caseReference.appealType != 846040016 &&
|
currentView.caseReference.appealType != 846040016 &&
|
||||||
todaysDate >= startDate &&
|
todaysDate >= startDate &&
|
||||||
todaysDate <= questionnaireDate &&
|
todaysDate <= finalCommentsDate &&
|
||||||
buildArr.push("Questionnaire");
|
buildArr.push("Questionnaire");
|
||||||
|
|
||||||
isLPA &&
|
isLPA &&
|
||||||
isDNS &&
|
isDNS &&
|
||||||
currentView.caseReference.appealType != 846040019 &&
|
currentView.caseReference.appealType != 846040019 &&
|
||||||
todaysDate >= startDate &&
|
todaysDate >= startDate &&
|
||||||
todaysDate <= questionnaireDate &&
|
todaysDate <= finalCommentsDate &&
|
||||||
buildArr.push("Local Impact Report");
|
buildArr.push("Local Impact Report");
|
||||||
|
|
||||||
!isDNS &&
|
!isDNS &&
|
||||||
@@ -879,7 +881,6 @@ let MakeRepresentation = (props) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const onHandleSubmit = (values) => {
|
const onHandleSubmit = (values) => {
|
||||||
window.scrollTo({ top: 0, behavior: "smooth" });
|
|
||||||
values = setRepFileName(values);
|
values = setRepFileName(values);
|
||||||
|
|
||||||
//console.log("onHandleSubmit form values - ", JSON.stringify(values));
|
//console.log("onHandleSubmit form values - ", JSON.stringify(values));
|
||||||
@@ -1014,6 +1015,7 @@ let MakeRepresentation = (props) => {
|
|||||||
setRepresentationSubmit(true);
|
setRepresentationSubmit(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
window.scrollTo({ top: 0, behavior: "smooth" });
|
||||||
} else {
|
} else {
|
||||||
if (currentView.representationSubmit == true) {
|
if (currentView.representationSubmit == true) {
|
||||||
console.log("capacity", currentView.representationCapacity);
|
console.log("capacity", currentView.representationCapacity);
|
||||||
@@ -1034,18 +1036,22 @@ let MakeRepresentation = (props) => {
|
|||||||
// Object.assign(values, {
|
// Object.assign(values, {
|
||||||
// "filesList": buildFileArray,
|
// "filesList": buildFileArray,
|
||||||
// })),
|
// })),
|
||||||
console.log(
|
// console.log(
|
||||||
"====================== rep lpa payload:\n",
|
// "====================== rep lpa payload:\n",
|
||||||
JSON.stringify(values)
|
// JSON.stringify(values)
|
||||||
);
|
// );
|
||||||
|
setFinaliseAppealProcess(true);
|
||||||
generateRepPDF(
|
generateRepPDF(
|
||||||
values,
|
values,
|
||||||
props.props.accountDetails.containerID,
|
props.props.accountDetails.containerID,
|
||||||
currentView.caseReference.currentReference
|
currentView.caseReference.currentReference
|
||||||
);
|
).then((data) => {
|
||||||
uploadRepresentationFiles(values);
|
console.log(data);
|
||||||
setRepresentationSubmit(true);
|
data.status == "success" &&
|
||||||
setRepresentationSubmitConfirmation(true);
|
(uploadRepresentationFiles(values),
|
||||||
|
setRepresentationSubmit(true),
|
||||||
|
setRepresentationSubmitConfirmation(true));
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
console.log("not updated");
|
console.log("not updated");
|
||||||
}
|
}
|
||||||
@@ -1148,6 +1154,8 @@ let MakeRepresentation = (props) => {
|
|||||||
showQuestionnaireSection={showQuestionnaireSection}
|
showQuestionnaireSection={showQuestionnaireSection}
|
||||||
props={props}
|
props={props}
|
||||||
questionnaireCount={questionnaireCount}
|
questionnaireCount={questionnaireCount}
|
||||||
|
finaliseAppealProcess={finaliseAppealProcess}
|
||||||
|
setFinaliseAppealProcess={setFinaliseAppealProcess}
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ const RepCompleteSubmit = (props) => {
|
|||||||
setShowQuestionnaireSection,
|
setShowQuestionnaireSection,
|
||||||
showQuestionnaireSection,
|
showQuestionnaireSection,
|
||||||
questionnaireCount,
|
questionnaireCount,
|
||||||
|
finaliseAppealProcess,
|
||||||
} = props;
|
} = props;
|
||||||
const { acceptedFiles, getRootProps, getInputProps } = useDropzone();
|
const { acceptedFiles, getRootProps, getInputProps } = useDropzone();
|
||||||
const files = acceptedFiles.map((file) => (
|
const files = acceptedFiles.map((file) => (
|
||||||
@@ -473,72 +474,83 @@ const RepCompleteSubmit = (props) => {
|
|||||||
)}
|
)}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div className="govuk-form-group">
|
{finaliseAppealProcess ? (
|
||||||
<div className="govuk-checkboxes govuk-checkboxes--small">
|
<div className="">
|
||||||
<div className="govuk-checkboxes__item">
|
<h3 className="govuk-heading-m govuk-!-margin-top-9">
|
||||||
<input
|
Finalising your representation
|
||||||
name="pinswg_checkconfirmation"
|
submission
|
||||||
id="pinswg_checkconfirmation"
|
</h3>
|
||||||
type="checkbox"
|
<p className="govuk-body">
|
||||||
className="govuk-checkboxes__input"
|
Currenly uploading files and finalising
|
||||||
value=""
|
your representation submission
|
||||||
onChange={(e) => {
|
</p>
|
||||||
setConfirmSections(
|
<p className="govuk-body textloading">
|
||||||
!confirmSections
|
Please wait
|
||||||
);
|
</p>
|
||||||
}}
|
|
||||||
/>
|
|
||||||
<label
|
|
||||||
className="govuk-label govuk-checkboxes__label"
|
|
||||||
htmlFor="pinswg_checkconfirmation"
|
|
||||||
>
|
|
||||||
{t(
|
|
||||||
"myrepresentations:rep-check-tandc-para-four"
|
|
||||||
)}
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
) : (
|
||||||
|
<>
|
||||||
|
<div className="govuk-form-group">
|
||||||
|
<div className="govuk-checkboxes govuk-checkboxes--small">
|
||||||
|
<div className="govuk-checkboxes__item">
|
||||||
|
<input
|
||||||
|
name="pinswg_checkconfirmation"
|
||||||
|
id="pinswg_checkconfirmation"
|
||||||
|
type="checkbox"
|
||||||
|
className="govuk-checkboxes__input"
|
||||||
|
value=""
|
||||||
|
onChange={(e) => {
|
||||||
|
setConfirmSections(
|
||||||
|
!confirmSections
|
||||||
|
);
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
<label
|
||||||
|
className="govuk-label govuk-checkboxes__label"
|
||||||
|
htmlFor="pinswg_checkconfirmation"
|
||||||
|
>
|
||||||
|
{t(
|
||||||
|
"myrepresentations:rep-check-tandc-para-four"
|
||||||
|
)}
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
{/* <Field
|
<div className="govuk-grid-row">
|
||||||
name="representationType"
|
<div className="govuk-button-group">
|
||||||
component={RenderPickList}
|
<button
|
||||||
datafieldname="representationType"
|
disabled={
|
||||||
optionsArr={appellantApplicantRepresentationArr}
|
confirmSections
|
||||||
/> */}
|
? false
|
||||||
</div>
|
: true
|
||||||
</div>
|
}
|
||||||
<div className="govuk-grid-row">
|
type="submit"
|
||||||
<div className="govuk-button-group">
|
className="govuk-button"
|
||||||
<button
|
data-module="govuk-button"
|
||||||
disabled={confirmSections ? false : true}
|
onClick={() => {
|
||||||
type="submit"
|
// setRepresentationSubmitConfirmation(
|
||||||
className="govuk-button"
|
// true
|
||||||
data-module="govuk-button"
|
// );
|
||||||
onClick={() => {
|
setRepresentationSubmit(
|
||||||
// setRepresentationSubmitConfirmation(
|
true
|
||||||
// true
|
);
|
||||||
// );
|
}}
|
||||||
setRepresentationSubmit(true);
|
>
|
||||||
}}
|
{t("common:continue-button")}
|
||||||
>
|
</button>
|
||||||
{t("common:continue-button")}
|
<a
|
||||||
</button>
|
onClick={() => setSubmitBack()}
|
||||||
{/* <a
|
className="govuk-link"
|
||||||
onClick={() => {
|
>
|
||||||
setRepresentationSubmit(false);
|
{t(
|
||||||
}}
|
"case:summary-back-button-label"
|
||||||
className="govuk-button"
|
)}
|
||||||
>
|
</a>
|
||||||
{t("common:continue-button")}
|
</div>
|
||||||
</a> */}
|
</div>
|
||||||
|
</>
|
||||||
<a
|
)}
|
||||||
onClick={() => setSubmitBack()}
|
|
||||||
className="govuk-link"
|
|
||||||
>
|
|
||||||
{t("case:summary-back-button-label")}
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
+1
-1
@@ -455,7 +455,7 @@ const RepresentationProgress_enforcement = (props) => {
|
|||||||
>
|
>
|
||||||
<span className="js-step-title-text govuk-!-font-size-16">
|
<span className="js-step-title-text govuk-!-font-size-16">
|
||||||
{t(
|
{t(
|
||||||
"myrepresentations:enf-section-heading-seven"
|
"myrepresentations:s78-section-heading-five-sub"
|
||||||
)}
|
)}
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
+15
-7
@@ -126,9 +126,10 @@ let Enforcement_Questionnaire = (props) => {
|
|||||||
</div>
|
</div>
|
||||||
<div className="govuk-form-group">
|
<div className="govuk-form-group">
|
||||||
<Field
|
<Field
|
||||||
label={t(
|
label={
|
||||||
"myrepresentations:enf-section-question-4"
|
"4." +
|
||||||
)}
|
t("myrepresentations:enf-section-question-4")
|
||||||
|
}
|
||||||
name="procedureType"
|
name="procedureType"
|
||||||
optionsArr={[
|
optionsArr={[
|
||||||
"Written representations",
|
"Written representations",
|
||||||
@@ -853,7 +854,7 @@ let Enforcement_Questionnaire = (props) => {
|
|||||||
{t("myrepresentations:enf-section-heading-six")}
|
{t("myrepresentations:enf-section-heading-six")}
|
||||||
</h3>
|
</h3>
|
||||||
<div className="govuk-form-group govuk-body-m">
|
<div className="govuk-form-group govuk-body-m">
|
||||||
31 .{t("myrepresentations:enf-section-question-31")}
|
31. {t("myrepresentations:enf-section-question-31")}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="govuk-form-group">
|
<div className="govuk-form-group">
|
||||||
@@ -946,8 +947,11 @@ let Enforcement_Questionnaire = (props) => {
|
|||||||
aria-describedby="commentBox-hint"
|
aria-describedby="commentBox-hint"
|
||||||
>
|
>
|
||||||
<h3 className="govuk-heading-s ">
|
<h3 className="govuk-heading-s ">
|
||||||
{t("myrepresentations:enf-section-heading-seven")}
|
{t("myrepresentations:s78-section-heading-five-sub")}
|
||||||
</h3>
|
</h3>
|
||||||
|
<p className="govuk-body">
|
||||||
|
{t("myrepresentations:s78-section-heading-five")}
|
||||||
|
</p>
|
||||||
|
|
||||||
<div className="govuk-form-group">
|
<div className="govuk-form-group">
|
||||||
<Field
|
<Field
|
||||||
@@ -1079,6 +1083,9 @@ let Enforcement_Questionnaire = (props) => {
|
|||||||
conditionalLabel={t(
|
conditionalLabel={t(
|
||||||
"myrepresentations:enf-section-question-37-hint"
|
"myrepresentations:enf-section-question-37-hint"
|
||||||
)}
|
)}
|
||||||
|
hint={
|
||||||
|
"Regulation 45 of the Town and Country Planning (Environmental Impact Assessment) (Wales) Regulations 2017 (as amended)."
|
||||||
|
}
|
||||||
optionSelect={t(
|
optionSelect={t(
|
||||||
"myrepresentations:questionnaire-yes"
|
"myrepresentations:questionnaire-yes"
|
||||||
)}
|
)}
|
||||||
@@ -1244,6 +1251,7 @@ let Enforcement_Questionnaire = (props) => {
|
|||||||
label={t(
|
label={t(
|
||||||
"myrepresentations:enf-section-question-onbehalf"
|
"myrepresentations:enf-section-question-onbehalf"
|
||||||
)}
|
)}
|
||||||
|
disabled={true}
|
||||||
validate={[required]}
|
validate={[required]}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@@ -1253,9 +1261,9 @@ let Enforcement_Questionnaire = (props) => {
|
|||||||
label={t("myrepresentations:enf-section-question-date")}
|
label={t("myrepresentations:enf-section-question-date")}
|
||||||
component={RenderDatePicker}
|
component={RenderDatePicker}
|
||||||
validate={[required]}
|
validate={[required]}
|
||||||
errorMsg={t("newappeal:select-a-date-label")}
|
errorMsg={t("myrepresentations:select-a-date-label")}
|
||||||
dateStart="0"
|
dateStart="0"
|
||||||
dateEnd="1-y"
|
dateEnd="0"
|
||||||
/>
|
/>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
)}
|
)}
|
||||||
|
|||||||
+1
-1
@@ -1079,7 +1079,7 @@ let S78_Questionnaire = (props) => {
|
|||||||
validate={[required]}
|
validate={[required]}
|
||||||
dateStart="0"
|
dateStart="0"
|
||||||
dateEnd="0"
|
dateEnd="0"
|
||||||
errorMsg={t("myrepresentations:is-required-label")}
|
errorMsg={t("myrepresentations:select-a-date-label")}
|
||||||
locale={locale}
|
locale={locale}
|
||||||
/>
|
/>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|||||||
+186
-57
@@ -27,7 +27,7 @@ let RepLPAQuestionnaireCheck_enforcement = (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">
|
||||||
5. Which procedure do you consider the appeal
|
4. Which procedure do you consider the appeal
|
||||||
should follow?
|
should follow?
|
||||||
</dt>
|
</dt>
|
||||||
|
|
||||||
@@ -69,7 +69,7 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
|||||||
</dd>
|
</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={() => {
|
||||||
@@ -80,11 +80,11 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
|||||||
{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>
|
||||||
)}
|
)}
|
||||||
@@ -159,19 +159,20 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
|||||||
"Yes" && (
|
"Yes" && (
|
||||||
<div className="govuk-summary-list__row">
|
<div className="govuk-summary-list__row">
|
||||||
<dt className="govuk-summary-list__key">
|
<dt className="govuk-summary-list__key">
|
||||||
{t(
|
Evidence
|
||||||
"case:representation-onbehalfof-details"
|
|
||||||
)}
|
|
||||||
</dt>
|
</dt>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__value">
|
<dd className="govuk-summary-list__value">
|
||||||
{
|
<div
|
||||||
repFormData.enterNeighbouringLandToViewSiteEvidence
|
className="govuk-summary-list-check-ellipsis"
|
||||||
}
|
dangerouslySetInnerHTML={{
|
||||||
|
__html: repFormData.enterNeighbouringLandToViewSiteEvidence,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</dd>
|
</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={() => {
|
||||||
@@ -182,11 +183,11 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
|||||||
{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>
|
||||||
)}
|
)}
|
||||||
@@ -236,9 +237,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
|||||||
</dt>
|
</dt>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__value">
|
<dd className="govuk-summary-list__value">
|
||||||
{
|
<div
|
||||||
repFormData.enterNeighbouringLandAccessRequired
|
className="govuk-summary-list-check-ellipsis"
|
||||||
}
|
dangerouslySetInnerHTML={{
|
||||||
|
__html: repFormData.enterNeighbouringLandAccessRequiredEvidence,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__actions">
|
<dd className="govuk-summary-list__actions">
|
||||||
@@ -302,7 +306,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
|||||||
</dt>
|
</dt>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__value">
|
<dd className="govuk-summary-list__value">
|
||||||
{repFormData.healthAndSafetyIssuesEvidence}
|
<div
|
||||||
|
className="govuk-summary-list-check-ellipsis"
|
||||||
|
dangerouslySetInnerHTML={{
|
||||||
|
__html: repFormData.healthAndSafetyIssuesEvidence,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__actions">
|
<dd className="govuk-summary-list__actions">
|
||||||
@@ -484,7 +493,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
|||||||
</dt>
|
</dt>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__value">
|
<dd className="govuk-summary-list__value">
|
||||||
{repFormData.previousGrantedCertsEvidence}
|
<div
|
||||||
|
className="govuk-summary-list-check-ellipsis"
|
||||||
|
dangerouslySetInnerHTML={{
|
||||||
|
__html: repFormData.previousGrantedCertsEvidence,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__actions">
|
<dd className="govuk-summary-list__actions">
|
||||||
@@ -549,7 +563,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
|||||||
</dt>
|
</dt>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__value">
|
<dd className="govuk-summary-list__value">
|
||||||
{repFormData.stopNoticeServedEvidence}
|
<div
|
||||||
|
className="govuk-summary-list-check-ellipsis"
|
||||||
|
dangerouslySetInnerHTML={{
|
||||||
|
__html: repFormData.stopNoticeServedEvidence,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__actions">
|
<dd className="govuk-summary-list__actions">
|
||||||
@@ -614,7 +633,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
|||||||
</dt>
|
</dt>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__value">
|
<dd className="govuk-summary-list__value">
|
||||||
{repFormData.stopNoticeServedEvidence}
|
<div
|
||||||
|
className="govuk-summary-list-check-ellipsis"
|
||||||
|
dangerouslySetInnerHTML={{
|
||||||
|
__html: repFormData.relatedCasesEvidence,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__actions">
|
<dd className="govuk-summary-list__actions">
|
||||||
@@ -679,7 +703,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
|||||||
</dt>
|
</dt>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__value">
|
<dd className="govuk-summary-list__value">
|
||||||
{repFormData.previousEnforcementEvidence}
|
<div
|
||||||
|
className="govuk-summary-list-check-ellipsis"
|
||||||
|
dangerouslySetInnerHTML={{
|
||||||
|
__html: repFormData.previousEnforcementEvidence,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__actions">
|
<dd className="govuk-summary-list__actions">
|
||||||
@@ -744,7 +773,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
|||||||
</dt>
|
</dt>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__value">
|
<dd className="govuk-summary-list__value">
|
||||||
{repFormData.subjectArticle4Evidence}
|
<div
|
||||||
|
className="govuk-summary-list-check-ellipsis"
|
||||||
|
dangerouslySetInnerHTML={{
|
||||||
|
__html: repFormData.subjectArticle4Evidence,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__actions">
|
<dd className="govuk-summary-list__actions">
|
||||||
@@ -809,7 +843,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
|||||||
</dt>
|
</dt>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__value">
|
<dd className="govuk-summary-list__value">
|
||||||
{repFormData.previousPDRRestrictionEvidence}
|
<div
|
||||||
|
className="govuk-summary-list-check-ellipsis"
|
||||||
|
dangerouslySetInnerHTML={{
|
||||||
|
__html: repFormData.previousPDRRestrictionEvidence,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__actions">
|
<dd className="govuk-summary-list__actions">
|
||||||
@@ -851,7 +890,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
|||||||
</dt>
|
</dt>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__value">
|
<dd className="govuk-summary-list__value">
|
||||||
{repFormData.LPAldpAndMap}
|
<div
|
||||||
|
className="govuk-summary-list-check-ellipsis"
|
||||||
|
dangerouslySetInnerHTML={{
|
||||||
|
__html: repFormData.LPAldpAndMap,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__actions">
|
<dd className="govuk-summary-list__actions">
|
||||||
@@ -886,7 +930,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
|||||||
</dt>
|
</dt>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__value">
|
<dd className="govuk-summary-list__value">
|
||||||
{repFormData.LPAlocalGuidance}
|
<div
|
||||||
|
className="govuk-summary-list-check-ellipsis"
|
||||||
|
dangerouslySetInnerHTML={{
|
||||||
|
__html: repFormData.LPAlocalGuidance,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__actions">
|
<dd className="govuk-summary-list__actions">
|
||||||
@@ -1026,7 +1075,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
|||||||
</dt>
|
</dt>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__value">
|
<dd className="govuk-summary-list__value">
|
||||||
{repFormData.ROWEvidence}
|
<div
|
||||||
|
className="govuk-summary-list-check-ellipsis"
|
||||||
|
dangerouslySetInnerHTML={{
|
||||||
|
__html: repFormData.ROWEvidence,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__actions">
|
<dd className="govuk-summary-list__actions">
|
||||||
@@ -1091,7 +1145,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
|||||||
</dt>
|
</dt>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__value">
|
<dd className="govuk-summary-list__value">
|
||||||
{repFormData.conservationAreaEvidence}
|
<div
|
||||||
|
className="govuk-summary-list-check-ellipsis"
|
||||||
|
dangerouslySetInnerHTML={{
|
||||||
|
__html: repFormData.conservationAreaEvidence,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__actions">
|
<dd className="govuk-summary-list__actions">
|
||||||
@@ -1156,7 +1215,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
|||||||
</dt>
|
</dt>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__value">
|
<dd className="govuk-summary-list__value">
|
||||||
{repFormData.affectListedBuildingEvidence}
|
<div
|
||||||
|
className="govuk-summary-list-check-ellipsis"
|
||||||
|
dangerouslySetInnerHTML={{
|
||||||
|
__html: repFormData.affectListedBuildingEvidence,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__actions">
|
<dd className="govuk-summary-list__actions">
|
||||||
@@ -1221,7 +1285,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
|||||||
</dt>
|
</dt>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__value">
|
<dd className="govuk-summary-list__value">
|
||||||
{repFormData.TPOEvidence}
|
<div
|
||||||
|
className="govuk-summary-list-check-ellipsis"
|
||||||
|
dangerouslySetInnerHTML={{
|
||||||
|
__html: repFormData.TPOEvidence,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__actions">
|
<dd className="govuk-summary-list__actions">
|
||||||
@@ -1286,7 +1355,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
|||||||
</dt>
|
</dt>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__value">
|
<dd className="govuk-summary-list__value">
|
||||||
{repFormData.natureConservationSiteEvidence}
|
<div
|
||||||
|
className="govuk-summary-list-check-ellipsis"
|
||||||
|
dangerouslySetInnerHTML={{
|
||||||
|
__html: repFormData.natureConservationSiteEvidence,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__actions">
|
<dd className="govuk-summary-list__actions">
|
||||||
@@ -1351,7 +1425,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
|||||||
</dt>
|
</dt>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__value">
|
<dd className="govuk-summary-list__value">
|
||||||
{repFormData.protectedSpeciesEvidence}
|
<div
|
||||||
|
className="govuk-summary-list-check-ellipsis"
|
||||||
|
dangerouslySetInnerHTML={{
|
||||||
|
__html: repFormData.protectedSpeciesEvidence,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__actions">
|
<dd className="govuk-summary-list__actions">
|
||||||
@@ -1451,7 +1530,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
|||||||
</dt>
|
</dt>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__value">
|
<dd className="govuk-summary-list__value">
|
||||||
{repFormData.floodingIssueEvidence}
|
<div
|
||||||
|
className="govuk-summary-list-check-ellipsis"
|
||||||
|
dangerouslySetInnerHTML={{
|
||||||
|
__html: repFormData.floodingIssueEvidence,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__actions">
|
<dd className="govuk-summary-list__actions">
|
||||||
@@ -1516,9 +1600,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
|||||||
</dt>
|
</dt>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__value">
|
<dd className="govuk-summary-list__value">
|
||||||
{
|
<div
|
||||||
repFormData.governmentDepartmentCommentsEvidence
|
className="govuk-summary-list-check-ellipsis"
|
||||||
}
|
dangerouslySetInnerHTML={{
|
||||||
|
__html: repFormData.governmentDepartmentCommentsEvidence,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__actions">
|
<dd className="govuk-summary-list__actions">
|
||||||
@@ -1631,9 +1718,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
|||||||
</dt>
|
</dt>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__value">
|
<dd className="govuk-summary-list__value">
|
||||||
{
|
<div
|
||||||
repFormData.developmentCarriedOutInAccordanceEvidence
|
className="govuk-summary-list-check-ellipsis"
|
||||||
}
|
dangerouslySetInnerHTML={{
|
||||||
|
__html: repFormData.developmentCarriedOutInAccordanceEvidence,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__actions">
|
<dd className="govuk-summary-list__actions">
|
||||||
@@ -1802,9 +1892,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
|||||||
</dt>
|
</dt>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__value">
|
<dd className="govuk-summary-list__value">
|
||||||
{
|
<div
|
||||||
repFormData.developmentAnyOtherConditionsEvidence
|
className="govuk-summary-list-check-ellipsis"
|
||||||
}
|
dangerouslySetInnerHTML={{
|
||||||
|
__html: repFormData.developmentAnyOtherConditionsEvidence,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__actions">
|
<dd className="govuk-summary-list__actions">
|
||||||
@@ -1833,7 +1926,7 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
|||||||
|
|
||||||
{/* Section 7 Before sending, have you attached or provided a web link to: */}
|
{/* Section 7 Before sending, have you attached or provided a web link to: */}
|
||||||
<h3 className="govuk-heading-s govuk-!-margin-top-9">
|
<h3 className="govuk-heading-s govuk-!-margin-top-9">
|
||||||
{t("myrepresentations:enf-section-heading-seven")}
|
{t("myrepresentations:s78-section-heading-five-sub")}
|
||||||
</h3>
|
</h3>
|
||||||
{_.has(repFormData, "copyOfEnforcementNotice") && (
|
{_.has(repFormData, "copyOfEnforcementNotice") && (
|
||||||
<>
|
<>
|
||||||
@@ -1873,7 +1966,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
|||||||
</dt>
|
</dt>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__value">
|
<dd className="govuk-summary-list__value">
|
||||||
{repFormData.copyOfEnforcementNoticeEvidence}
|
<div
|
||||||
|
className="govuk-summary-list-check-ellipsis"
|
||||||
|
dangerouslySetInnerHTML={{
|
||||||
|
__html: repFormData.copyOfEnforcementNoticeEvidence,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__actions">
|
<dd className="govuk-summary-list__actions">
|
||||||
@@ -1936,7 +2034,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
|||||||
</dt>
|
</dt>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__value">
|
<dd className="govuk-summary-list__value">
|
||||||
{repFormData.enforcementNoticePlanEvidence}
|
<div
|
||||||
|
className="govuk-summary-list-check-ellipsis"
|
||||||
|
dangerouslySetInnerHTML={{
|
||||||
|
__html: repFormData.enforcementNoticePlanEvidence,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__actions">
|
<dd className="govuk-summary-list__actions">
|
||||||
@@ -1999,9 +2102,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
|||||||
</dt>
|
</dt>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__value">
|
<dd className="govuk-summary-list__value">
|
||||||
{
|
<div
|
||||||
repFormData.listOfNotifiedOfEnforcementEvidence
|
className="govuk-summary-list-check-ellipsis"
|
||||||
}
|
dangerouslySetInnerHTML={{
|
||||||
|
__html: repFormData.listOfNotifiedOfEnforcementEvidence,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__actions">
|
<dd className="govuk-summary-list__actions">
|
||||||
@@ -2064,9 +2170,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
|||||||
</dt>
|
</dt>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__value">
|
<dd className="govuk-summary-list__value">
|
||||||
{
|
<div
|
||||||
repFormData.copyOfLetterOfAppealNotificationEvidence
|
className="govuk-summary-list-check-ellipsis"
|
||||||
}
|
dangerouslySetInnerHTML={{
|
||||||
|
__html: repFormData.copyOfLetterOfAppealNotificationEvidence,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__actions">
|
<dd className="govuk-summary-list__actions">
|
||||||
@@ -2129,7 +2238,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
|||||||
</dt>
|
</dt>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__value">
|
<dd className="govuk-summary-list__value">
|
||||||
{repFormData.lpaEIAOSEvidence}
|
<div
|
||||||
|
className="govuk-summary-list-check-ellipsis"
|
||||||
|
dangerouslySetInnerHTML={{
|
||||||
|
__html: repFormData.lpaEIAOSEvidence,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__actions">
|
<dd className="govuk-summary-list__actions">
|
||||||
@@ -2192,7 +2306,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
|||||||
</dt>
|
</dt>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__value">
|
<dd className="govuk-summary-list__value">
|
||||||
{repFormData.detailsOfOtherAppeals}
|
<div
|
||||||
|
className="govuk-summary-list-check-ellipsis"
|
||||||
|
dangerouslySetInnerHTML={{
|
||||||
|
__html: repFormData.detailsOfOtherAppealsEvidence,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__actions">
|
<dd className="govuk-summary-list__actions">
|
||||||
@@ -2255,7 +2374,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
|||||||
</dt>
|
</dt>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__value">
|
<dd className="govuk-summary-list__value">
|
||||||
{repFormData.detailsOfPreviousAppealsEvidence}
|
<div
|
||||||
|
className="govuk-summary-list-check-ellipsis"
|
||||||
|
dangerouslySetInnerHTML={{
|
||||||
|
__html: repFormData.detailsOfPreviousAppealsEvidence,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__actions">
|
<dd className="govuk-summary-list__actions">
|
||||||
@@ -2284,7 +2408,7 @@ let RepLPAQuestionnaireCheck_enforcement = (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">
|
||||||
33. Any other relevant information that we should
|
40. Any other relevant information that we should
|
||||||
know about?
|
know about?
|
||||||
</dt>
|
</dt>
|
||||||
|
|
||||||
@@ -2318,7 +2442,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
|||||||
</dt>
|
</dt>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__value">
|
<dd className="govuk-summary-list__value">
|
||||||
{repFormData.otherRelevantInformationEvidence}
|
<div
|
||||||
|
className="govuk-summary-list-check-ellipsis"
|
||||||
|
dangerouslySetInnerHTML={{
|
||||||
|
__html: repFormData.otherRelevantInformationEvidence,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
<dd className="govuk-summary-list__actions">
|
<dd className="govuk-summary-list__actions">
|
||||||
|
|||||||
+8
-8
@@ -61,7 +61,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
|||||||
</dd>
|
</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={() => {
|
||||||
@@ -71,11 +71,11 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
|||||||
{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>
|
||||||
)}
|
)}
|
||||||
@@ -161,7 +161,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
|||||||
</dd>
|
</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={() => {
|
||||||
@@ -172,11 +172,11 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
|||||||
{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>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -726,7 +726,6 @@ export const EnforcementQuestionnaire_pdf = ({ docProps }) => {
|
|||||||
</View>
|
</View>
|
||||||
<View style={styles.sectionContainer}>
|
<View style={styles.sectionContainer}>
|
||||||
<View
|
<View
|
||||||
wrap={false}
|
|
||||||
style={{
|
style={{
|
||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
@@ -754,7 +753,6 @@ export const EnforcementQuestionnaire_pdf = ({ docProps }) => {
|
|||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
<View
|
<View
|
||||||
wrap={false}
|
|
||||||
style={{
|
style={{
|
||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
@@ -1428,7 +1426,7 @@ export const EnforcementQuestionnaire_pdf = ({ docProps }) => {
|
|||||||
<Text style={styles.questionTextMid}>
|
<Text style={styles.questionTextMid}>
|
||||||
The LPA’s Environmental Impact
|
The LPA’s Environmental Impact
|
||||||
Assessment Screening Opinion and
|
Assessment Screening Opinion and
|
||||||
‘Regulation 45 Notice’*, if applicable?
|
‘Regulation 45 Notice’, if applicable?
|
||||||
</Text>
|
</Text>
|
||||||
<Text style={styles.questionAnswerMid}>
|
<Text style={styles.questionAnswerMid}>
|
||||||
{values.lpaEIAOS}
|
{values.lpaEIAOS}
|
||||||
|
|||||||
@@ -1,20 +1,17 @@
|
|||||||
import ReactPDF, {
|
import {
|
||||||
Document,
|
Document,
|
||||||
|
Image,
|
||||||
Page,
|
Page,
|
||||||
|
StyleSheet,
|
||||||
Text,
|
Text,
|
||||||
View,
|
View,
|
||||||
Image,
|
|
||||||
StyleSheet,
|
|
||||||
PDFViewer,
|
|
||||||
Font,
|
Font,
|
||||||
} from "@react-pdf/renderer";
|
} from "@react-pdf/renderer";
|
||||||
import { createElement } from "react";
|
|
||||||
import Html from "react-pdf-html";
|
import Html from "react-pdf-html";
|
||||||
import { getFormCollectionByID, bytesToSize } 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";
|
||||||
import { JSONPath as jsonpath } from "jsonpath-plus";
|
|
||||||
|
|
||||||
const getTrans = (locale, key) => {
|
const getTrans = (locale, key) => {
|
||||||
let jsonQuery = `$.${key}`;
|
let jsonQuery = `$.${key}`;
|
||||||
@@ -56,6 +53,28 @@ const styles = StyleSheet.create({
|
|||||||
paddingLeft: 10,
|
paddingLeft: 10,
|
||||||
backgroundColor: "white",
|
backgroundColor: "white",
|
||||||
},
|
},
|
||||||
|
questionAnswerSmall: {
|
||||||
|
color: "#757575",
|
||||||
|
width: "300",
|
||||||
|
fontSize: 12,
|
||||||
|
padding: 5,
|
||||||
|
border: 1,
|
||||||
|
borderColor: "#eee",
|
||||||
|
paddingLeft: 10,
|
||||||
|
paddingRight: 10,
|
||||||
|
backgroundColor: "white",
|
||||||
|
marginRight: 10,
|
||||||
|
},
|
||||||
|
questionAnswerSmaller: {
|
||||||
|
color: "#757575",
|
||||||
|
width: "90",
|
||||||
|
fontSize: 12,
|
||||||
|
padding: 5,
|
||||||
|
border: 1,
|
||||||
|
borderColor: "#eee",
|
||||||
|
paddingLeft: 10,
|
||||||
|
backgroundColor: "white",
|
||||||
|
},
|
||||||
questionAnswerMid: {
|
questionAnswerMid: {
|
||||||
color: "#757575",
|
color: "#757575",
|
||||||
width: "20%",
|
width: "20%",
|
||||||
@@ -242,7 +261,7 @@ export const finalComments_pdf = ({ docProps }) => {
|
|||||||
<Html style={styles.richArea}>
|
<Html style={styles.richArea}>
|
||||||
{CleanHTML(
|
{CleanHTML(
|
||||||
values.conditional_representationCapacity_Comments
|
values.conditional_representationCapacity_Comments
|
||||||
)}
|
) || "N/A"}
|
||||||
</Html>
|
</Html>
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
@@ -443,7 +462,7 @@ export const finalComments_pdf = ({ docProps }) => {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Text
|
<Text
|
||||||
style={{ width: "40%", fontSize: 12 }}
|
style={{ width: "15%", fontSize: 12 }}
|
||||||
>
|
>
|
||||||
{getTrans(
|
{getTrans(
|
||||||
docProps.locale,
|
docProps.locale,
|
||||||
@@ -451,7 +470,18 @@ export const finalComments_pdf = ({ docProps }) => {
|
|||||||
)}
|
)}
|
||||||
:
|
:
|
||||||
</Text>
|
</Text>
|
||||||
<Text style={styles.questionAnswer}>
|
<Text
|
||||||
|
style={{
|
||||||
|
color: "#757575",
|
||||||
|
width: "310",
|
||||||
|
fontSize: 12,
|
||||||
|
padding: 5,
|
||||||
|
border: 1,
|
||||||
|
borderColor: "#eee",
|
||||||
|
backgroundColor: "white",
|
||||||
|
paddingRight: 10,
|
||||||
|
}}
|
||||||
|
>
|
||||||
{values.firstname} {values.lastname}
|
{values.firstname} {values.lastname}
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
@@ -462,14 +492,20 @@ export const finalComments_pdf = ({ docProps }) => {
|
|||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Text style={styles.questionText}>
|
<Text
|
||||||
|
style={{
|
||||||
|
width: "40",
|
||||||
|
fontSize: 12,
|
||||||
|
marginLeft: 10,
|
||||||
|
}}
|
||||||
|
>
|
||||||
{getTrans(
|
{getTrans(
|
||||||
docProps.locale,
|
docProps.locale,
|
||||||
"statement-date-label"
|
"statement-date-label"
|
||||||
)}
|
)}
|
||||||
:
|
:
|
||||||
</Text>
|
</Text>
|
||||||
<Text style={styles.questionAnswer}>
|
<Text style={styles.questionAnswerSmaller}>
|
||||||
{signedDate}
|
{signedDate}
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
@@ -482,6 +518,7 @@ export const finalComments_pdf = ({ docProps }) => {
|
|||||||
style={{
|
style={{
|
||||||
flexDirection: "row",
|
flexDirection: "row",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
|
alignItems: "center",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Text
|
<Text
|
||||||
@@ -501,6 +538,28 @@ export const finalComments_pdf = ({ docProps }) => {
|
|||||||
: ""}
|
: ""}
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
|
) : values.hasOwnProperty("onBehalfOfLPA") ? (
|
||||||
|
<View
|
||||||
|
wrap={false}
|
||||||
|
style={{
|
||||||
|
flexDirection: "row",
|
||||||
|
marginBottom: 10,
|
||||||
|
alignItems: "center",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<Text
|
||||||
|
style={{ width: "18%", fontSize: 12 }}
|
||||||
|
>
|
||||||
|
{getTrans(
|
||||||
|
docProps.locale,
|
||||||
|
"statement-onbehalf-label"
|
||||||
|
)}
|
||||||
|
:
|
||||||
|
</Text>
|
||||||
|
<Text style={styles.questionAnswerWide}>
|
||||||
|
{values.onBehalfOfLPA}
|
||||||
|
</Text>
|
||||||
|
</View>
|
||||||
) : (
|
) : (
|
||||||
<View />
|
<View />
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -310,7 +310,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
|||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
}}
|
}}
|
||||||
wrap={false}
|
// wrap={false}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
wrap={false}
|
wrap={false}
|
||||||
@@ -367,7 +367,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
|||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
}}
|
}}
|
||||||
wrap={false}
|
// wrap={false}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
@@ -406,7 +406,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
|||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
}}
|
}}
|
||||||
wrap={false}
|
// wrap={false}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
@@ -444,7 +444,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
|||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
}}
|
}}
|
||||||
wrap={false}
|
// wrap={false}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
@@ -480,7 +480,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
|||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
}}
|
}}
|
||||||
wrap={false}
|
// wrap={false}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
@@ -527,7 +527,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
|||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
}}
|
}}
|
||||||
wrap={false}
|
// wrap={false}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
wrap={false}
|
wrap={false}
|
||||||
@@ -557,7 +557,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
|||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
}}
|
}}
|
||||||
wrap={false}
|
// wrap={false}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
@@ -668,7 +668,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
|||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
}}
|
}}
|
||||||
wrap={false}
|
// wrap={false}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
@@ -702,7 +702,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
|||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
}}
|
}}
|
||||||
wrap={false}
|
// wrap={false}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
@@ -738,7 +738,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
|||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
}}
|
}}
|
||||||
wrap={false}
|
// wrap={false}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
@@ -774,7 +774,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
|||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
}}
|
}}
|
||||||
wrap={false}
|
// wrap={false}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
@@ -808,7 +808,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
|||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
}}
|
}}
|
||||||
wrap={false}
|
// wrap={false}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
@@ -844,7 +844,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
|||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
}}
|
}}
|
||||||
wrap={false}
|
// wrap={false}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
@@ -898,7 +898,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
|||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
}}
|
}}
|
||||||
wrap={false}
|
// wrap={false}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
@@ -987,7 +987,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
|||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
}}
|
}}
|
||||||
wrap={false}
|
// wrap={false}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
@@ -1060,7 +1060,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
|||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
}}
|
}}
|
||||||
wrap={false}
|
// wrap={false}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
@@ -1115,7 +1115,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
|||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
}}
|
}}
|
||||||
wrap={false}
|
// wrap={false}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
@@ -1153,7 +1153,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
|||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
}}
|
}}
|
||||||
wrap={false}
|
// wrap={false}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
@@ -1191,7 +1191,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
|||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
}}
|
}}
|
||||||
wrap={false}
|
// wrap={false}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
@@ -1231,7 +1231,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
|||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
}}
|
}}
|
||||||
wrap={false}
|
// wrap={false}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
@@ -1265,7 +1265,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
|||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
}}
|
}}
|
||||||
wrap={false}
|
// wrap={false}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
@@ -1304,7 +1304,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
|||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
}}
|
}}
|
||||||
wrap={false}
|
// wrap={false}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
@@ -1340,7 +1340,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
|||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
}}
|
}}
|
||||||
wrap={false}
|
// wrap={false}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
@@ -1376,7 +1376,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
|||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
}}
|
}}
|
||||||
wrap={false}
|
// wrap={false}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
|
|||||||
@@ -53,6 +53,28 @@ const styles = StyleSheet.create({
|
|||||||
paddingLeft: 10,
|
paddingLeft: 10,
|
||||||
backgroundColor: "white",
|
backgroundColor: "white",
|
||||||
},
|
},
|
||||||
|
questionAnswerSmall: {
|
||||||
|
color: "#757575",
|
||||||
|
width: "300",
|
||||||
|
fontSize: 12,
|
||||||
|
padding: 5,
|
||||||
|
border: 1,
|
||||||
|
borderColor: "#eee",
|
||||||
|
paddingLeft: 10,
|
||||||
|
paddingRight: 10,
|
||||||
|
backgroundColor: "white",
|
||||||
|
marginRight: 10,
|
||||||
|
},
|
||||||
|
questionAnswerSmaller: {
|
||||||
|
color: "#757575",
|
||||||
|
width: "90",
|
||||||
|
fontSize: 12,
|
||||||
|
padding: 5,
|
||||||
|
border: 1,
|
||||||
|
borderColor: "#eee",
|
||||||
|
paddingLeft: 10,
|
||||||
|
backgroundColor: "white",
|
||||||
|
},
|
||||||
questionAnswerMid: {
|
questionAnswerMid: {
|
||||||
color: "#757575",
|
color: "#757575",
|
||||||
width: "20%",
|
width: "20%",
|
||||||
@@ -239,7 +261,7 @@ export const statement_pdf = ({ docProps }) => {
|
|||||||
<Html style={styles.richArea}>
|
<Html style={styles.richArea}>
|
||||||
{CleanHTML(
|
{CleanHTML(
|
||||||
values.conditional_representationCapacity_Comments
|
values.conditional_representationCapacity_Comments
|
||||||
)}
|
) || "N/A"}
|
||||||
</Html>
|
</Html>
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
@@ -440,7 +462,7 @@ export const statement_pdf = ({ docProps }) => {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Text
|
<Text
|
||||||
style={{ width: "40%", fontSize: 12 }}
|
style={{ width: "15%", fontSize: 12 }}
|
||||||
>
|
>
|
||||||
{getTrans(
|
{getTrans(
|
||||||
docProps.locale,
|
docProps.locale,
|
||||||
@@ -448,7 +470,18 @@ export const statement_pdf = ({ docProps }) => {
|
|||||||
)}
|
)}
|
||||||
:
|
:
|
||||||
</Text>
|
</Text>
|
||||||
<Text style={styles.questionAnswer}>
|
<Text
|
||||||
|
style={{
|
||||||
|
color: "#757575",
|
||||||
|
width: "310",
|
||||||
|
fontSize: 12,
|
||||||
|
padding: 5,
|
||||||
|
border: 1,
|
||||||
|
borderColor: "#eee",
|
||||||
|
backgroundColor: "white",
|
||||||
|
paddingRight: 10,
|
||||||
|
}}
|
||||||
|
>
|
||||||
{values.firstname} {values.lastname}
|
{values.firstname} {values.lastname}
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
@@ -459,14 +492,20 @@ export const statement_pdf = ({ docProps }) => {
|
|||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Text style={styles.questionText}>
|
<Text
|
||||||
|
style={{
|
||||||
|
width: "40",
|
||||||
|
fontSize: 12,
|
||||||
|
marginLeft: 10,
|
||||||
|
}}
|
||||||
|
>
|
||||||
{getTrans(
|
{getTrans(
|
||||||
docProps.locale,
|
docProps.locale,
|
||||||
"statement-date-label"
|
"statement-date-label"
|
||||||
)}
|
)}
|
||||||
:
|
:
|
||||||
</Text>
|
</Text>
|
||||||
<Text style={styles.questionAnswer}>
|
<Text style={styles.questionAnswerSmaller}>
|
||||||
{signedDate}
|
{signedDate}
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
@@ -479,6 +518,7 @@ export const statement_pdf = ({ docProps }) => {
|
|||||||
style={{
|
style={{
|
||||||
flexDirection: "row",
|
flexDirection: "row",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
|
alignItems: "center",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Text
|
<Text
|
||||||
@@ -498,6 +538,28 @@ export const statement_pdf = ({ docProps }) => {
|
|||||||
: ""}
|
: ""}
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
|
) : values.hasOwnProperty("onBehalfOfLPA") ? (
|
||||||
|
<View
|
||||||
|
wrap={false}
|
||||||
|
style={{
|
||||||
|
flexDirection: "row",
|
||||||
|
marginBottom: 10,
|
||||||
|
alignItems: "center",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<Text
|
||||||
|
style={{ width: "18%", fontSize: 12 }}
|
||||||
|
>
|
||||||
|
{getTrans(
|
||||||
|
docProps.locale,
|
||||||
|
"statement-onbehalf-label"
|
||||||
|
)}
|
||||||
|
:
|
||||||
|
</Text>
|
||||||
|
<Text style={styles.questionAnswerWide}>
|
||||||
|
{values.onBehalfOfLPA}
|
||||||
|
</Text>
|
||||||
|
</View>
|
||||||
) : (
|
) : (
|
||||||
<View />
|
<View />
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
"summary-start-date-label": "Dyddiad Dechrau",
|
"summary-start-date-label": "Dyddiad Dechrau",
|
||||||
"summary-questionnaire-due-date-label": "Holiadur i ddod",
|
"summary-questionnaire-due-date-label": "Holiadur i ddod",
|
||||||
"summary-statement-due-date-label": "Datganiad(au) i ddod",
|
"summary-statement-due-date-label": "Datganiad(au) i ddod",
|
||||||
"summary-statement-interested-party-due-date-label": "Datganiad a Sylwadau Partïon â Buddiant i ddod",
|
"summary-statement-interested-party-due-date-label": "Datganiad a Sylwadau Partïon â Diddordeb yn ddyledus",
|
||||||
"summary-date-exported-to-iss-label": "Dyddiad allgludo i ISS",
|
"summary-date-exported-to-iss-label": "Dyddiad allgludo i ISS",
|
||||||
"summary-interested-party-date-label": "Sylwadau Parti â Buddiant i ddod",
|
"summary-interested-party-date-label": "Sylwadau Parti â Buddiant i ddod",
|
||||||
"summary-applicant-final-comments-date-label": "Sylwadau Terfynol yr Apelydd/ACLl i ddod",
|
"summary-applicant-final-comments-date-label": "Sylwadau Terfynol yr Apelydd/ACLl i ddod",
|
||||||
|
|||||||
@@ -225,5 +225,6 @@
|
|||||||
"representation-type": "Math o sylw",
|
"representation-type": "Math o sylw",
|
||||||
"select-an-option-label": "Dewiswch opsiwn",
|
"select-an-option-label": "Dewiswch opsiwn",
|
||||||
"previously-added-files": "Ffeiliau wedi'u llwytho i fyny",
|
"previously-added-files": "Ffeiliau wedi'u llwytho i fyny",
|
||||||
"is-required-label": "Yn ofynnol"
|
"is-required-label": "Yn ofynnol",
|
||||||
|
"select-a-date-label": "Dewiswch ddyddiad"
|
||||||
}
|
}
|
||||||
@@ -35,7 +35,7 @@
|
|||||||
"summary-start-date-label": "Start Date",
|
"summary-start-date-label": "Start Date",
|
||||||
"summary-questionnaire-due-date-label": "Questionnaire due",
|
"summary-questionnaire-due-date-label": "Questionnaire due",
|
||||||
"summary-statement-due-date-label": "Statement(s) due",
|
"summary-statement-due-date-label": "Statement(s) due",
|
||||||
"summary-statement-interested-party-due-date-label": "Statement and Interested Party Reps due",
|
"summary-statement-interested-party-due-date-label": "Statement and Interested Party Representations due",
|
||||||
"summary-date-exported-to-iss-label": "Date exported to ISS",
|
"summary-date-exported-to-iss-label": "Date exported to ISS",
|
||||||
"summary-interested-party-date-label": "Interested Party Comments due",
|
"summary-interested-party-date-label": "Interested Party Comments due",
|
||||||
"summary-applicant-final-comments-date-label": "Appellant/LPA Final Comments due",
|
"summary-applicant-final-comments-date-label": "Appellant/LPA Final Comments due",
|
||||||
|
|||||||
@@ -132,7 +132,7 @@
|
|||||||
"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-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?",
|
"enf-section-question-11": "Is the appeal fee exempt?",
|
||||||
"enf-section-question-11-hint": "If Yes, please explain",
|
"enf-section-question-11-hint": "If Yes, please explain",
|
||||||
"enf-section-heading-three": "Planning History and Current Statuss",
|
"enf-section-heading-three": "Planning History and Current Status",
|
||||||
"enf-section-question-12": "Have any planning permissions or lawful development certificates been granted previously in respect of the development or on the site?",
|
"enf-section-question-12": "Have any planning permissions or lawful development certificates been granted previously in respect of the development or on the site?",
|
||||||
"enf-section-question-12-hint": "If Yes, please submit any documents necessary for its interpretation and list here. E.g. Decision Notice, Relevant Plans, etc.",
|
"enf-section-question-12-hint": "If Yes, please submit any documents necessary for its interpretation and list here. E.g. Decision Notice, Relevant Plans, etc.",
|
||||||
"enf-section-question-13": "Has a Stop Notice been served in addition to the Enforcement Notice?",
|
"enf-section-question-13": "Has a Stop Notice been served in addition to the Enforcement Notice?",
|
||||||
@@ -181,13 +181,13 @@
|
|||||||
"enf-section-heading-seven": "Before sending, have you attached or provided a web link to the following:",
|
"enf-section-heading-seven": "Before sending, have you attached or provided a web link to the following:",
|
||||||
"enf-section-question-33": "A true copy of the enforcement notice?",
|
"enf-section-question-33": "A true copy of the enforcement notice?",
|
||||||
"enf-section-question-33-hint": "Insert weblink here if available online. If Not, give reasons",
|
"enf-section-question-33-hint": "Insert weblink here if available online. If Not, give reasons",
|
||||||
"enf-section-question-34": "The enforcement notice plan.",
|
"enf-section-question-34": "The enforcement notice plan?",
|
||||||
"enf-section-question-34-hint": "Insert weblink here if available online. If Not, give reasons",
|
"enf-section-question-34-hint": "Insert weblink here if available online. If Not, give reasons",
|
||||||
"enf-section-question-35": "A list of those served with the enforcement notice.",
|
"enf-section-question-35": "A list of those served with the enforcement notice?",
|
||||||
"enf-section-question-35-hint": "Insert weblink here if available online. If Not, give reasons",
|
"enf-section-question-35-hint": "Insert weblink here if available online. If Not, give reasons",
|
||||||
"enf-section-question-36": "A copy of the letter with which you notified people of the appeal AND a list of the people you notified?",
|
"enf-section-question-36": "A copy of the letter with which you notified people of the appeal AND a list of the people you notified?",
|
||||||
"enf-section-question-36-hint": "Insert weblink here if available online. If Not, give reasons",
|
"enf-section-question-36-hint": "Insert weblink here if available online. If Not, give reasons",
|
||||||
"enf-section-question-37": "The LPA’s Environmental Impact Assessment Screening Opinion and ‘Regulation 45 Notice’*, if applicable?",
|
"enf-section-question-37": "The LPA’s Environmental Impact Assessment Screening Opinion and ‘Regulation 45 Notice’, if applicable?",
|
||||||
"enf-section-question-37-hint": "Insert weblink here if available online. If Not, give reasons",
|
"enf-section-question-37-hint": "Insert weblink here if available online. If Not, give reasons",
|
||||||
"enf-section-question-38": "Details of other appeals or applications relating to the site, or a nearby site, which are still being considered by PEDW or the Welsh Ministers?",
|
"enf-section-question-38": "Details of other appeals or applications relating to the site, or a nearby site, which are still being considered by PEDW or the Welsh Ministers?",
|
||||||
"enf-section-question-38-hint": "If Yes, provide reference numbers and, if applicable, attach or insert links to relevant documents",
|
"enf-section-question-38-hint": "If Yes, provide reference numbers and, if applicable, attach or insert links to relevant documents",
|
||||||
@@ -225,5 +225,6 @@
|
|||||||
"representation-type": "Representation type",
|
"representation-type": "Representation type",
|
||||||
"select-an-option-label": "Select an option",
|
"select-an-option-label": "Select an option",
|
||||||
"previously-added-files": "Uploaded files",
|
"previously-added-files": "Uploaded files",
|
||||||
"is-required-label": "Is required"
|
"is-required-label": "Is required",
|
||||||
|
"select-a-date-label": "Select a date"
|
||||||
}
|
}
|
||||||
@@ -45,7 +45,11 @@
|
|||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
import CryptoJS from "crypto-js";
|
import CryptoJS from "crypto-js";
|
||||||
import _ from "lodash";
|
import _ from "lodash";
|
||||||
import { azureHeadersPagedCustom, getToken } from "../../../actions";
|
import {
|
||||||
|
azureHeadersPagedCustom,
|
||||||
|
getToken,
|
||||||
|
consoleLogger,
|
||||||
|
} from "../../../actions";
|
||||||
|
|
||||||
const WORDKEY = process.env.HASHKEY;
|
const WORDKEY = process.env.HASHKEY;
|
||||||
|
|
||||||
|
|||||||
@@ -153,16 +153,16 @@ export default async function handler(req, res) {
|
|||||||
? cleanFilesList(reqBodyobj)
|
? cleanFilesList(reqBodyobj)
|
||||||
: reqBodyobj;
|
: reqBodyobj;
|
||||||
|
|
||||||
console.log(
|
// console.log(
|
||||||
"//////////////////////\nreqBodyobj" +
|
// "//////////////////////\nreqBodyobj" +
|
||||||
req +
|
// req +
|
||||||
"\n//////////////////////\n"
|
// "\n//////////////////////\n"
|
||||||
);
|
// );
|
||||||
console.log(
|
// console.log(
|
||||||
"//////////////////////\nreqBodyobj" +
|
// "//////////////////////\nreqBodyobj" +
|
||||||
JSON.stringify(req.body) +
|
// JSON.stringify(req.body) +
|
||||||
"\n//////////////////////\n"
|
// "\n//////////////////////\n"
|
||||||
);
|
// );
|
||||||
|
|
||||||
var containerID = reqBodyobj.containerID;
|
var containerID = reqBodyobj.containerID;
|
||||||
var casefolderID = reqBodyobj.casefolderID;
|
var casefolderID = reqBodyobj.casefolderID;
|
||||||
|
|||||||
Reference in New Issue
Block a user