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 [savingStatus, setSavingStatus] = useState(false);
|
||||
const [finaliseAppealProcess, setFinaliseAppealProcess] = useState(false);
|
||||
|
||||
//const [questionnaireCount, setQuestionnaireCount] = useState(0);
|
||||
|
||||
const { data: session } = useSession();
|
||||
@@ -347,14 +349,14 @@ let MakeRepresentation = (props) => {
|
||||
currentView.caseReference.appealType != 846040015 &&
|
||||
currentView.caseReference.appealType != 846040016 &&
|
||||
todaysDate >= startDate &&
|
||||
todaysDate <= questionnaireDate &&
|
||||
todaysDate <= finalCommentsDate &&
|
||||
buildArr.push("Questionnaire");
|
||||
|
||||
isLPA &&
|
||||
isDNS &&
|
||||
currentView.caseReference.appealType != 846040019 &&
|
||||
todaysDate >= startDate &&
|
||||
todaysDate <= questionnaireDate &&
|
||||
todaysDate <= finalCommentsDate &&
|
||||
buildArr.push("Local Impact Report");
|
||||
|
||||
!isDNS &&
|
||||
@@ -879,7 +881,6 @@ let MakeRepresentation = (props) => {
|
||||
};
|
||||
|
||||
const onHandleSubmit = (values) => {
|
||||
window.scrollTo({ top: 0, behavior: "smooth" });
|
||||
values = setRepFileName(values);
|
||||
|
||||
//console.log("onHandleSubmit form values - ", JSON.stringify(values));
|
||||
@@ -1014,6 +1015,7 @@ let MakeRepresentation = (props) => {
|
||||
setRepresentationSubmit(true);
|
||||
}
|
||||
}
|
||||
window.scrollTo({ top: 0, behavior: "smooth" });
|
||||
} else {
|
||||
if (currentView.representationSubmit == true) {
|
||||
console.log("capacity", currentView.representationCapacity);
|
||||
@@ -1034,18 +1036,22 @@ let MakeRepresentation = (props) => {
|
||||
// Object.assign(values, {
|
||||
// "filesList": buildFileArray,
|
||||
// })),
|
||||
console.log(
|
||||
"====================== rep lpa payload:\n",
|
||||
JSON.stringify(values)
|
||||
);
|
||||
// console.log(
|
||||
// "====================== rep lpa payload:\n",
|
||||
// JSON.stringify(values)
|
||||
// );
|
||||
setFinaliseAppealProcess(true);
|
||||
generateRepPDF(
|
||||
values,
|
||||
props.props.accountDetails.containerID,
|
||||
currentView.caseReference.currentReference
|
||||
);
|
||||
uploadRepresentationFiles(values);
|
||||
setRepresentationSubmit(true);
|
||||
setRepresentationSubmitConfirmation(true);
|
||||
).then((data) => {
|
||||
console.log(data);
|
||||
data.status == "success" &&
|
||||
(uploadRepresentationFiles(values),
|
||||
setRepresentationSubmit(true),
|
||||
setRepresentationSubmitConfirmation(true));
|
||||
});
|
||||
} else {
|
||||
console.log("not updated");
|
||||
}
|
||||
@@ -1148,6 +1154,8 @@ let MakeRepresentation = (props) => {
|
||||
showQuestionnaireSection={showQuestionnaireSection}
|
||||
props={props}
|
||||
questionnaireCount={questionnaireCount}
|
||||
finaliseAppealProcess={finaliseAppealProcess}
|
||||
setFinaliseAppealProcess={setFinaliseAppealProcess}
|
||||
/>
|
||||
) : (
|
||||
<>
|
||||
|
||||
@@ -29,6 +29,7 @@ const RepCompleteSubmit = (props) => {
|
||||
setShowQuestionnaireSection,
|
||||
showQuestionnaireSection,
|
||||
questionnaireCount,
|
||||
finaliseAppealProcess,
|
||||
} = props;
|
||||
const { acceptedFiles, getRootProps, getInputProps } = useDropzone();
|
||||
const files = acceptedFiles.map((file) => (
|
||||
@@ -473,72 +474,83 @@ const RepCompleteSubmit = (props) => {
|
||||
)}
|
||||
</p>
|
||||
|
||||
<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>
|
||||
{finaliseAppealProcess ? (
|
||||
<div className="">
|
||||
<h3 className="govuk-heading-m govuk-!-margin-top-9">
|
||||
Finalising your representation
|
||||
submission
|
||||
</h3>
|
||||
<p className="govuk-body">
|
||||
Currenly uploading files and finalising
|
||||
your representation submission
|
||||
</p>
|
||||
<p className="govuk-body textloading">
|
||||
Please wait
|
||||
</p>
|
||||
</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
|
||||
name="representationType"
|
||||
component={RenderPickList}
|
||||
datafieldname="representationType"
|
||||
optionsArr={appellantApplicantRepresentationArr}
|
||||
/> */}
|
||||
</div>
|
||||
</div>
|
||||
<div className="govuk-grid-row">
|
||||
<div className="govuk-button-group">
|
||||
<button
|
||||
disabled={confirmSections ? false : true}
|
||||
type="submit"
|
||||
className="govuk-button"
|
||||
data-module="govuk-button"
|
||||
onClick={() => {
|
||||
// setRepresentationSubmitConfirmation(
|
||||
// true
|
||||
// );
|
||||
setRepresentationSubmit(true);
|
||||
}}
|
||||
>
|
||||
{t("common:continue-button")}
|
||||
</button>
|
||||
{/* <a
|
||||
onClick={() => {
|
||||
setRepresentationSubmit(false);
|
||||
}}
|
||||
className="govuk-button"
|
||||
>
|
||||
{t("common:continue-button")}
|
||||
</a> */}
|
||||
|
||||
<a
|
||||
onClick={() => setSubmitBack()}
|
||||
className="govuk-link"
|
||||
>
|
||||
{t("case:summary-back-button-label")}
|
||||
</a>
|
||||
</div>
|
||||
<div className="govuk-grid-row">
|
||||
<div className="govuk-button-group">
|
||||
<button
|
||||
disabled={
|
||||
confirmSections
|
||||
? false
|
||||
: true
|
||||
}
|
||||
type="submit"
|
||||
className="govuk-button"
|
||||
data-module="govuk-button"
|
||||
onClick={() => {
|
||||
// setRepresentationSubmitConfirmation(
|
||||
// true
|
||||
// );
|
||||
setRepresentationSubmit(
|
||||
true
|
||||
);
|
||||
}}
|
||||
>
|
||||
{t("common:continue-button")}
|
||||
</button>
|
||||
<a
|
||||
onClick={() => setSubmitBack()}
|
||||
className="govuk-link"
|
||||
>
|
||||
{t(
|
||||
"case:summary-back-button-label"
|
||||
)}
|
||||
</a>
|
||||
</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">
|
||||
{t(
|
||||
"myrepresentations:enf-section-heading-seven"
|
||||
"myrepresentations:s78-section-heading-five-sub"
|
||||
)}
|
||||
</span>
|
||||
</a>
|
||||
|
||||
+15
-7
@@ -126,9 +126,10 @@ let Enforcement_Questionnaire = (props) => {
|
||||
</div>
|
||||
<div className="govuk-form-group">
|
||||
<Field
|
||||
label={t(
|
||||
"myrepresentations:enf-section-question-4"
|
||||
)}
|
||||
label={
|
||||
"4." +
|
||||
t("myrepresentations:enf-section-question-4")
|
||||
}
|
||||
name="procedureType"
|
||||
optionsArr={[
|
||||
"Written representations",
|
||||
@@ -853,7 +854,7 @@ let Enforcement_Questionnaire = (props) => {
|
||||
{t("myrepresentations:enf-section-heading-six")}
|
||||
</h3>
|
||||
<div className="govuk-form-group govuk-body-m">
|
||||
31 .{t("myrepresentations:enf-section-question-31")}
|
||||
31. {t("myrepresentations:enf-section-question-31")}
|
||||
</div>
|
||||
|
||||
<div className="govuk-form-group">
|
||||
@@ -946,8 +947,11 @@ let Enforcement_Questionnaire = (props) => {
|
||||
aria-describedby="commentBox-hint"
|
||||
>
|
||||
<h3 className="govuk-heading-s ">
|
||||
{t("myrepresentations:enf-section-heading-seven")}
|
||||
{t("myrepresentations:s78-section-heading-five-sub")}
|
||||
</h3>
|
||||
<p className="govuk-body">
|
||||
{t("myrepresentations:s78-section-heading-five")}
|
||||
</p>
|
||||
|
||||
<div className="govuk-form-group">
|
||||
<Field
|
||||
@@ -1079,6 +1083,9 @@ let Enforcement_Questionnaire = (props) => {
|
||||
conditionalLabel={t(
|
||||
"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(
|
||||
"myrepresentations:questionnaire-yes"
|
||||
)}
|
||||
@@ -1244,6 +1251,7 @@ let Enforcement_Questionnaire = (props) => {
|
||||
label={t(
|
||||
"myrepresentations:enf-section-question-onbehalf"
|
||||
)}
|
||||
disabled={true}
|
||||
validate={[required]}
|
||||
/>
|
||||
</div>
|
||||
@@ -1253,9 +1261,9 @@ let Enforcement_Questionnaire = (props) => {
|
||||
label={t("myrepresentations:enf-section-question-date")}
|
||||
component={RenderDatePicker}
|
||||
validate={[required]}
|
||||
errorMsg={t("newappeal:select-a-date-label")}
|
||||
errorMsg={t("myrepresentations:select-a-date-label")}
|
||||
dateStart="0"
|
||||
dateEnd="1-y"
|
||||
dateEnd="0"
|
||||
/>
|
||||
</fieldset>
|
||||
)}
|
||||
|
||||
+1
-1
@@ -1079,7 +1079,7 @@ let S78_Questionnaire = (props) => {
|
||||
validate={[required]}
|
||||
dateStart="0"
|
||||
dateEnd="0"
|
||||
errorMsg={t("myrepresentations:is-required-label")}
|
||||
errorMsg={t("myrepresentations:select-a-date-label")}
|
||||
locale={locale}
|
||||
/>
|
||||
</fieldset>
|
||||
|
||||
+186
-57
@@ -27,7 +27,7 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
||||
<>
|
||||
<div className="govuk-summary-list__row">
|
||||
<dt className="govuk-summary-list__key">
|
||||
5. Which procedure do you consider the appeal
|
||||
4. Which procedure do you consider the appeal
|
||||
should follow?
|
||||
</dt>
|
||||
|
||||
@@ -69,7 +69,7 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
||||
</dd>
|
||||
|
||||
<dd className="govuk-summary-list__actions">
|
||||
<a
|
||||
{/* <a
|
||||
className="govuk-link"
|
||||
href="#"
|
||||
onClick={() => {
|
||||
@@ -80,11 +80,11 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
||||
{t("common:change-link-label")}
|
||||
<span className="govuk-visually-hidden">
|
||||
{" "}
|
||||
{/* {FieldsTranslations(
|
||||
{FieldsTranslations(
|
||||
rows[0].value
|
||||
)} */}
|
||||
)}
|
||||
</span>
|
||||
</a>
|
||||
</a> */}
|
||||
</dd>
|
||||
</div>
|
||||
)}
|
||||
@@ -159,19 +159,20 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
||||
"Yes" && (
|
||||
<div className="govuk-summary-list__row">
|
||||
<dt className="govuk-summary-list__key">
|
||||
{t(
|
||||
"case:representation-onbehalfof-details"
|
||||
)}
|
||||
Evidence
|
||||
</dt>
|
||||
|
||||
<dd className="govuk-summary-list__value">
|
||||
{
|
||||
repFormData.enterNeighbouringLandToViewSiteEvidence
|
||||
}
|
||||
<div
|
||||
className="govuk-summary-list-check-ellipsis"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: repFormData.enterNeighbouringLandToViewSiteEvidence,
|
||||
}}
|
||||
/>
|
||||
</dd>
|
||||
|
||||
<dd className="govuk-summary-list__actions">
|
||||
<a
|
||||
{/* <a
|
||||
className="govuk-link"
|
||||
href="#"
|
||||
onClick={() => {
|
||||
@@ -182,11 +183,11 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
||||
{t("common:change-link-label")}
|
||||
<span className="govuk-visually-hidden">
|
||||
{" "}
|
||||
{/* {FieldsTranslations(
|
||||
{FieldsTranslations(
|
||||
rows[0].value
|
||||
)} */}
|
||||
)}
|
||||
</span>
|
||||
</a>
|
||||
</a> */}
|
||||
</dd>
|
||||
</div>
|
||||
)}
|
||||
@@ -236,9 +237,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
||||
</dt>
|
||||
|
||||
<dd className="govuk-summary-list__value">
|
||||
{
|
||||
repFormData.enterNeighbouringLandAccessRequired
|
||||
}
|
||||
<div
|
||||
className="govuk-summary-list-check-ellipsis"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: repFormData.enterNeighbouringLandAccessRequiredEvidence,
|
||||
}}
|
||||
/>
|
||||
</dd>
|
||||
|
||||
<dd className="govuk-summary-list__actions">
|
||||
@@ -302,7 +306,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
||||
</dt>
|
||||
|
||||
<dd className="govuk-summary-list__value">
|
||||
{repFormData.healthAndSafetyIssuesEvidence}
|
||||
<div
|
||||
className="govuk-summary-list-check-ellipsis"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: repFormData.healthAndSafetyIssuesEvidence,
|
||||
}}
|
||||
/>
|
||||
</dd>
|
||||
|
||||
<dd className="govuk-summary-list__actions">
|
||||
@@ -484,7 +493,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
||||
</dt>
|
||||
|
||||
<dd className="govuk-summary-list__value">
|
||||
{repFormData.previousGrantedCertsEvidence}
|
||||
<div
|
||||
className="govuk-summary-list-check-ellipsis"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: repFormData.previousGrantedCertsEvidence,
|
||||
}}
|
||||
/>
|
||||
</dd>
|
||||
|
||||
<dd className="govuk-summary-list__actions">
|
||||
@@ -549,7 +563,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
||||
</dt>
|
||||
|
||||
<dd className="govuk-summary-list__value">
|
||||
{repFormData.stopNoticeServedEvidence}
|
||||
<div
|
||||
className="govuk-summary-list-check-ellipsis"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: repFormData.stopNoticeServedEvidence,
|
||||
}}
|
||||
/>
|
||||
</dd>
|
||||
|
||||
<dd className="govuk-summary-list__actions">
|
||||
@@ -614,7 +633,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
||||
</dt>
|
||||
|
||||
<dd className="govuk-summary-list__value">
|
||||
{repFormData.stopNoticeServedEvidence}
|
||||
<div
|
||||
className="govuk-summary-list-check-ellipsis"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: repFormData.relatedCasesEvidence,
|
||||
}}
|
||||
/>
|
||||
</dd>
|
||||
|
||||
<dd className="govuk-summary-list__actions">
|
||||
@@ -679,7 +703,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
||||
</dt>
|
||||
|
||||
<dd className="govuk-summary-list__value">
|
||||
{repFormData.previousEnforcementEvidence}
|
||||
<div
|
||||
className="govuk-summary-list-check-ellipsis"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: repFormData.previousEnforcementEvidence,
|
||||
}}
|
||||
/>
|
||||
</dd>
|
||||
|
||||
<dd className="govuk-summary-list__actions">
|
||||
@@ -744,7 +773,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
||||
</dt>
|
||||
|
||||
<dd className="govuk-summary-list__value">
|
||||
{repFormData.subjectArticle4Evidence}
|
||||
<div
|
||||
className="govuk-summary-list-check-ellipsis"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: repFormData.subjectArticle4Evidence,
|
||||
}}
|
||||
/>
|
||||
</dd>
|
||||
|
||||
<dd className="govuk-summary-list__actions">
|
||||
@@ -809,7 +843,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
||||
</dt>
|
||||
|
||||
<dd className="govuk-summary-list__value">
|
||||
{repFormData.previousPDRRestrictionEvidence}
|
||||
<div
|
||||
className="govuk-summary-list-check-ellipsis"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: repFormData.previousPDRRestrictionEvidence,
|
||||
}}
|
||||
/>
|
||||
</dd>
|
||||
|
||||
<dd className="govuk-summary-list__actions">
|
||||
@@ -851,7 +890,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
||||
</dt>
|
||||
|
||||
<dd className="govuk-summary-list__value">
|
||||
{repFormData.LPAldpAndMap}
|
||||
<div
|
||||
className="govuk-summary-list-check-ellipsis"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: repFormData.LPAldpAndMap,
|
||||
}}
|
||||
/>
|
||||
</dd>
|
||||
|
||||
<dd className="govuk-summary-list__actions">
|
||||
@@ -886,7 +930,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
||||
</dt>
|
||||
|
||||
<dd className="govuk-summary-list__value">
|
||||
{repFormData.LPAlocalGuidance}
|
||||
<div
|
||||
className="govuk-summary-list-check-ellipsis"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: repFormData.LPAlocalGuidance,
|
||||
}}
|
||||
/>
|
||||
</dd>
|
||||
|
||||
<dd className="govuk-summary-list__actions">
|
||||
@@ -1026,7 +1075,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
||||
</dt>
|
||||
|
||||
<dd className="govuk-summary-list__value">
|
||||
{repFormData.ROWEvidence}
|
||||
<div
|
||||
className="govuk-summary-list-check-ellipsis"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: repFormData.ROWEvidence,
|
||||
}}
|
||||
/>
|
||||
</dd>
|
||||
|
||||
<dd className="govuk-summary-list__actions">
|
||||
@@ -1091,7 +1145,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
||||
</dt>
|
||||
|
||||
<dd className="govuk-summary-list__value">
|
||||
{repFormData.conservationAreaEvidence}
|
||||
<div
|
||||
className="govuk-summary-list-check-ellipsis"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: repFormData.conservationAreaEvidence,
|
||||
}}
|
||||
/>
|
||||
</dd>
|
||||
|
||||
<dd className="govuk-summary-list__actions">
|
||||
@@ -1156,7 +1215,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
||||
</dt>
|
||||
|
||||
<dd className="govuk-summary-list__value">
|
||||
{repFormData.affectListedBuildingEvidence}
|
||||
<div
|
||||
className="govuk-summary-list-check-ellipsis"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: repFormData.affectListedBuildingEvidence,
|
||||
}}
|
||||
/>
|
||||
</dd>
|
||||
|
||||
<dd className="govuk-summary-list__actions">
|
||||
@@ -1221,7 +1285,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
||||
</dt>
|
||||
|
||||
<dd className="govuk-summary-list__value">
|
||||
{repFormData.TPOEvidence}
|
||||
<div
|
||||
className="govuk-summary-list-check-ellipsis"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: repFormData.TPOEvidence,
|
||||
}}
|
||||
/>
|
||||
</dd>
|
||||
|
||||
<dd className="govuk-summary-list__actions">
|
||||
@@ -1286,7 +1355,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
||||
</dt>
|
||||
|
||||
<dd className="govuk-summary-list__value">
|
||||
{repFormData.natureConservationSiteEvidence}
|
||||
<div
|
||||
className="govuk-summary-list-check-ellipsis"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: repFormData.natureConservationSiteEvidence,
|
||||
}}
|
||||
/>
|
||||
</dd>
|
||||
|
||||
<dd className="govuk-summary-list__actions">
|
||||
@@ -1351,7 +1425,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
||||
</dt>
|
||||
|
||||
<dd className="govuk-summary-list__value">
|
||||
{repFormData.protectedSpeciesEvidence}
|
||||
<div
|
||||
className="govuk-summary-list-check-ellipsis"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: repFormData.protectedSpeciesEvidence,
|
||||
}}
|
||||
/>
|
||||
</dd>
|
||||
|
||||
<dd className="govuk-summary-list__actions">
|
||||
@@ -1451,7 +1530,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
||||
</dt>
|
||||
|
||||
<dd className="govuk-summary-list__value">
|
||||
{repFormData.floodingIssueEvidence}
|
||||
<div
|
||||
className="govuk-summary-list-check-ellipsis"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: repFormData.floodingIssueEvidence,
|
||||
}}
|
||||
/>
|
||||
</dd>
|
||||
|
||||
<dd className="govuk-summary-list__actions">
|
||||
@@ -1516,9 +1600,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
||||
</dt>
|
||||
|
||||
<dd className="govuk-summary-list__value">
|
||||
{
|
||||
repFormData.governmentDepartmentCommentsEvidence
|
||||
}
|
||||
<div
|
||||
className="govuk-summary-list-check-ellipsis"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: repFormData.governmentDepartmentCommentsEvidence,
|
||||
}}
|
||||
/>
|
||||
</dd>
|
||||
|
||||
<dd className="govuk-summary-list__actions">
|
||||
@@ -1631,9 +1718,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
||||
</dt>
|
||||
|
||||
<dd className="govuk-summary-list__value">
|
||||
{
|
||||
repFormData.developmentCarriedOutInAccordanceEvidence
|
||||
}
|
||||
<div
|
||||
className="govuk-summary-list-check-ellipsis"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: repFormData.developmentCarriedOutInAccordanceEvidence,
|
||||
}}
|
||||
/>
|
||||
</dd>
|
||||
|
||||
<dd className="govuk-summary-list__actions">
|
||||
@@ -1802,9 +1892,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
||||
</dt>
|
||||
|
||||
<dd className="govuk-summary-list__value">
|
||||
{
|
||||
repFormData.developmentAnyOtherConditionsEvidence
|
||||
}
|
||||
<div
|
||||
className="govuk-summary-list-check-ellipsis"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: repFormData.developmentAnyOtherConditionsEvidence,
|
||||
}}
|
||||
/>
|
||||
</dd>
|
||||
|
||||
<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: */}
|
||||
<h3 className="govuk-heading-s govuk-!-margin-top-9">
|
||||
{t("myrepresentations:enf-section-heading-seven")}
|
||||
{t("myrepresentations:s78-section-heading-five-sub")}
|
||||
</h3>
|
||||
{_.has(repFormData, "copyOfEnforcementNotice") && (
|
||||
<>
|
||||
@@ -1873,7 +1966,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
||||
</dt>
|
||||
|
||||
<dd className="govuk-summary-list__value">
|
||||
{repFormData.copyOfEnforcementNoticeEvidence}
|
||||
<div
|
||||
className="govuk-summary-list-check-ellipsis"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: repFormData.copyOfEnforcementNoticeEvidence,
|
||||
}}
|
||||
/>
|
||||
</dd>
|
||||
|
||||
<dd className="govuk-summary-list__actions">
|
||||
@@ -1936,7 +2034,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
||||
</dt>
|
||||
|
||||
<dd className="govuk-summary-list__value">
|
||||
{repFormData.enforcementNoticePlanEvidence}
|
||||
<div
|
||||
className="govuk-summary-list-check-ellipsis"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: repFormData.enforcementNoticePlanEvidence,
|
||||
}}
|
||||
/>
|
||||
</dd>
|
||||
|
||||
<dd className="govuk-summary-list__actions">
|
||||
@@ -1999,9 +2102,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
||||
</dt>
|
||||
|
||||
<dd className="govuk-summary-list__value">
|
||||
{
|
||||
repFormData.listOfNotifiedOfEnforcementEvidence
|
||||
}
|
||||
<div
|
||||
className="govuk-summary-list-check-ellipsis"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: repFormData.listOfNotifiedOfEnforcementEvidence,
|
||||
}}
|
||||
/>
|
||||
</dd>
|
||||
|
||||
<dd className="govuk-summary-list__actions">
|
||||
@@ -2064,9 +2170,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
||||
</dt>
|
||||
|
||||
<dd className="govuk-summary-list__value">
|
||||
{
|
||||
repFormData.copyOfLetterOfAppealNotificationEvidence
|
||||
}
|
||||
<div
|
||||
className="govuk-summary-list-check-ellipsis"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: repFormData.copyOfLetterOfAppealNotificationEvidence,
|
||||
}}
|
||||
/>
|
||||
</dd>
|
||||
|
||||
<dd className="govuk-summary-list__actions">
|
||||
@@ -2129,7 +2238,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
||||
</dt>
|
||||
|
||||
<dd className="govuk-summary-list__value">
|
||||
{repFormData.lpaEIAOSEvidence}
|
||||
<div
|
||||
className="govuk-summary-list-check-ellipsis"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: repFormData.lpaEIAOSEvidence,
|
||||
}}
|
||||
/>
|
||||
</dd>
|
||||
|
||||
<dd className="govuk-summary-list__actions">
|
||||
@@ -2192,7 +2306,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
||||
</dt>
|
||||
|
||||
<dd className="govuk-summary-list__value">
|
||||
{repFormData.detailsOfOtherAppeals}
|
||||
<div
|
||||
className="govuk-summary-list-check-ellipsis"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: repFormData.detailsOfOtherAppealsEvidence,
|
||||
}}
|
||||
/>
|
||||
</dd>
|
||||
|
||||
<dd className="govuk-summary-list__actions">
|
||||
@@ -2255,7 +2374,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
||||
</dt>
|
||||
|
||||
<dd className="govuk-summary-list__value">
|
||||
{repFormData.detailsOfPreviousAppealsEvidence}
|
||||
<div
|
||||
className="govuk-summary-list-check-ellipsis"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: repFormData.detailsOfPreviousAppealsEvidence,
|
||||
}}
|
||||
/>
|
||||
</dd>
|
||||
|
||||
<dd className="govuk-summary-list__actions">
|
||||
@@ -2284,7 +2408,7 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
||||
<>
|
||||
<div className="govuk-summary-list__row">
|
||||
<dt className="govuk-summary-list__key">
|
||||
33. Any other relevant information that we should
|
||||
40. Any other relevant information that we should
|
||||
know about?
|
||||
</dt>
|
||||
|
||||
@@ -2318,7 +2442,12 @@ let RepLPAQuestionnaireCheck_enforcement = (props) => {
|
||||
</dt>
|
||||
|
||||
<dd className="govuk-summary-list__value">
|
||||
{repFormData.otherRelevantInformationEvidence}
|
||||
<div
|
||||
className="govuk-summary-list-check-ellipsis"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: repFormData.otherRelevantInformationEvidence,
|
||||
}}
|
||||
/>
|
||||
</dd>
|
||||
|
||||
<dd className="govuk-summary-list__actions">
|
||||
|
||||
+8
-8
@@ -61,7 +61,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
</dd>
|
||||
|
||||
<dd className="govuk-summary-list__actions">
|
||||
<a
|
||||
{/* <a
|
||||
className="govuk-link"
|
||||
href="#"
|
||||
onClick={() => {
|
||||
@@ -71,11 +71,11 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
{t("common:change-link-label")}
|
||||
<span className="govuk-visually-hidden">
|
||||
{" "}
|
||||
{/* {FieldsTranslations(
|
||||
{FieldsTranslations(
|
||||
rows[0].value
|
||||
)} */}
|
||||
)}
|
||||
</span>
|
||||
</a>
|
||||
</a> */}
|
||||
</dd>
|
||||
</div>
|
||||
)}
|
||||
@@ -161,7 +161,7 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
</dd>
|
||||
|
||||
<dd className="govuk-summary-list__actions">
|
||||
<a
|
||||
{/* <a
|
||||
className="govuk-link"
|
||||
href="#"
|
||||
onClick={() => {
|
||||
@@ -172,11 +172,11 @@ let RepLPAQuestionnaireCheck_s78 = (props) => {
|
||||
{t("common:change-link-label")}
|
||||
<span className="govuk-visually-hidden">
|
||||
{" "}
|
||||
{/* {FieldsTranslations(
|
||||
{FieldsTranslations(
|
||||
rows[0].value
|
||||
)} */}
|
||||
)}
|
||||
</span>
|
||||
</a>
|
||||
</a> */}
|
||||
</dd>
|
||||
</div>
|
||||
)}
|
||||
|
||||
@@ -726,7 +726,6 @@ export const EnforcementQuestionnaire_pdf = ({ docProps }) => {
|
||||
</View>
|
||||
<View style={styles.sectionContainer}>
|
||||
<View
|
||||
wrap={false}
|
||||
style={{
|
||||
flexDirection: "column",
|
||||
marginBottom: 10,
|
||||
@@ -754,7 +753,6 @@ export const EnforcementQuestionnaire_pdf = ({ docProps }) => {
|
||||
</View>
|
||||
</View>
|
||||
<View
|
||||
wrap={false}
|
||||
style={{
|
||||
flexDirection: "column",
|
||||
marginBottom: 10,
|
||||
@@ -1428,7 +1426,7 @@ export const EnforcementQuestionnaire_pdf = ({ docProps }) => {
|
||||
<Text style={styles.questionTextMid}>
|
||||
The LPA’s Environmental Impact
|
||||
Assessment Screening Opinion and
|
||||
‘Regulation 45 Notice’*, if applicable?
|
||||
‘Regulation 45 Notice’, if applicable?
|
||||
</Text>
|
||||
<Text style={styles.questionAnswerMid}>
|
||||
{values.lpaEIAOS}
|
||||
|
||||
@@ -1,20 +1,17 @@
|
||||
import ReactPDF, {
|
||||
import {
|
||||
Document,
|
||||
Image,
|
||||
Page,
|
||||
StyleSheet,
|
||||
Text,
|
||||
View,
|
||||
Image,
|
||||
StyleSheet,
|
||||
PDFViewer,
|
||||
Font,
|
||||
} from "@react-pdf/renderer";
|
||||
import { createElement } from "react";
|
||||
import Html from "react-pdf-html";
|
||||
import { getFormCollectionByID, bytesToSize } from "../../components/utils";
|
||||
|
||||
import transLookupCY from "../../locales/cy/myrepresentations.json";
|
||||
import transLookupEN from "../../locales/en/myrepresentations.json";
|
||||
import { JSONPath as jsonpath } from "jsonpath-plus";
|
||||
|
||||
const getTrans = (locale, key) => {
|
||||
let jsonQuery = `$.${key}`;
|
||||
@@ -56,6 +53,28 @@ const styles = StyleSheet.create({
|
||||
paddingLeft: 10,
|
||||
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: {
|
||||
color: "#757575",
|
||||
width: "20%",
|
||||
@@ -242,7 +261,7 @@ export const finalComments_pdf = ({ docProps }) => {
|
||||
<Html style={styles.richArea}>
|
||||
{CleanHTML(
|
||||
values.conditional_representationCapacity_Comments
|
||||
)}
|
||||
) || "N/A"}
|
||||
</Html>
|
||||
</Text>
|
||||
</View>
|
||||
@@ -443,7 +462,7 @@ export const finalComments_pdf = ({ docProps }) => {
|
||||
}}
|
||||
>
|
||||
<Text
|
||||
style={{ width: "40%", fontSize: 12 }}
|
||||
style={{ width: "15%", fontSize: 12 }}
|
||||
>
|
||||
{getTrans(
|
||||
docProps.locale,
|
||||
@@ -451,7 +470,18 @@ export const finalComments_pdf = ({ docProps }) => {
|
||||
)}
|
||||
:
|
||||
</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}
|
||||
</Text>
|
||||
</View>
|
||||
@@ -462,14 +492,20 @@ export const finalComments_pdf = ({ docProps }) => {
|
||||
alignItems: "center",
|
||||
}}
|
||||
>
|
||||
<Text style={styles.questionText}>
|
||||
<Text
|
||||
style={{
|
||||
width: "40",
|
||||
fontSize: 12,
|
||||
marginLeft: 10,
|
||||
}}
|
||||
>
|
||||
{getTrans(
|
||||
docProps.locale,
|
||||
"statement-date-label"
|
||||
)}
|
||||
:
|
||||
</Text>
|
||||
<Text style={styles.questionAnswer}>
|
||||
<Text style={styles.questionAnswerSmaller}>
|
||||
{signedDate}
|
||||
</Text>
|
||||
</View>
|
||||
@@ -482,6 +518,7 @@ export const finalComments_pdf = ({ docProps }) => {
|
||||
style={{
|
||||
flexDirection: "row",
|
||||
marginBottom: 10,
|
||||
alignItems: "center",
|
||||
}}
|
||||
>
|
||||
<Text
|
||||
@@ -501,6 +538,28 @@ export const finalComments_pdf = ({ docProps }) => {
|
||||
: ""}
|
||||
</Text>
|
||||
</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 />
|
||||
)}
|
||||
|
||||
@@ -310,7 +310,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
||||
flexDirection: "column",
|
||||
marginBottom: 10,
|
||||
}}
|
||||
wrap={false}
|
||||
// wrap={false}
|
||||
>
|
||||
<View
|
||||
wrap={false}
|
||||
@@ -367,7 +367,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
||||
flexDirection: "column",
|
||||
marginBottom: 10,
|
||||
}}
|
||||
wrap={false}
|
||||
// wrap={false}
|
||||
>
|
||||
<View
|
||||
style={{
|
||||
@@ -406,7 +406,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
||||
flexDirection: "column",
|
||||
marginBottom: 10,
|
||||
}}
|
||||
wrap={false}
|
||||
// wrap={false}
|
||||
>
|
||||
<View
|
||||
style={{
|
||||
@@ -444,7 +444,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
||||
flexDirection: "column",
|
||||
marginBottom: 10,
|
||||
}}
|
||||
wrap={false}
|
||||
// wrap={false}
|
||||
>
|
||||
<View
|
||||
style={{
|
||||
@@ -480,7 +480,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
||||
flexDirection: "column",
|
||||
marginBottom: 10,
|
||||
}}
|
||||
wrap={false}
|
||||
// wrap={false}
|
||||
>
|
||||
<View
|
||||
style={{
|
||||
@@ -527,7 +527,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
||||
flexDirection: "column",
|
||||
marginBottom: 10,
|
||||
}}
|
||||
wrap={false}
|
||||
// wrap={false}
|
||||
>
|
||||
<View
|
||||
wrap={false}
|
||||
@@ -557,7 +557,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
||||
flexDirection: "column",
|
||||
marginBottom: 10,
|
||||
}}
|
||||
wrap={false}
|
||||
// wrap={false}
|
||||
>
|
||||
<View
|
||||
style={{
|
||||
@@ -668,7 +668,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
||||
flexDirection: "column",
|
||||
marginBottom: 10,
|
||||
}}
|
||||
wrap={false}
|
||||
// wrap={false}
|
||||
>
|
||||
<View
|
||||
style={{
|
||||
@@ -702,7 +702,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
||||
flexDirection: "column",
|
||||
marginBottom: 10,
|
||||
}}
|
||||
wrap={false}
|
||||
// wrap={false}
|
||||
>
|
||||
<View
|
||||
style={{
|
||||
@@ -738,7 +738,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
||||
flexDirection: "column",
|
||||
marginBottom: 10,
|
||||
}}
|
||||
wrap={false}
|
||||
// wrap={false}
|
||||
>
|
||||
<View
|
||||
style={{
|
||||
@@ -774,7 +774,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
||||
flexDirection: "column",
|
||||
marginBottom: 10,
|
||||
}}
|
||||
wrap={false}
|
||||
// wrap={false}
|
||||
>
|
||||
<View
|
||||
style={{
|
||||
@@ -808,7 +808,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
||||
flexDirection: "column",
|
||||
marginBottom: 10,
|
||||
}}
|
||||
wrap={false}
|
||||
// wrap={false}
|
||||
>
|
||||
<View
|
||||
style={{
|
||||
@@ -844,7 +844,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
||||
flexDirection: "column",
|
||||
marginBottom: 10,
|
||||
}}
|
||||
wrap={false}
|
||||
// wrap={false}
|
||||
>
|
||||
<View
|
||||
style={{
|
||||
@@ -898,7 +898,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
||||
flexDirection: "column",
|
||||
marginBottom: 10,
|
||||
}}
|
||||
wrap={false}
|
||||
// wrap={false}
|
||||
>
|
||||
<View
|
||||
style={{
|
||||
@@ -987,7 +987,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
||||
flexDirection: "column",
|
||||
marginBottom: 10,
|
||||
}}
|
||||
wrap={false}
|
||||
// wrap={false}
|
||||
>
|
||||
<View
|
||||
style={{
|
||||
@@ -1060,7 +1060,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
||||
flexDirection: "column",
|
||||
marginBottom: 10,
|
||||
}}
|
||||
wrap={false}
|
||||
// wrap={false}
|
||||
>
|
||||
<View
|
||||
style={{
|
||||
@@ -1115,7 +1115,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
||||
flexDirection: "column",
|
||||
marginBottom: 10,
|
||||
}}
|
||||
wrap={false}
|
||||
// wrap={false}
|
||||
>
|
||||
<View
|
||||
style={{
|
||||
@@ -1153,7 +1153,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
||||
flexDirection: "column",
|
||||
marginBottom: 10,
|
||||
}}
|
||||
wrap={false}
|
||||
// wrap={false}
|
||||
>
|
||||
<View
|
||||
style={{
|
||||
@@ -1191,7 +1191,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
||||
flexDirection: "column",
|
||||
marginBottom: 10,
|
||||
}}
|
||||
wrap={false}
|
||||
// wrap={false}
|
||||
>
|
||||
<View
|
||||
style={{
|
||||
@@ -1231,7 +1231,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
||||
flexDirection: "column",
|
||||
marginBottom: 10,
|
||||
}}
|
||||
wrap={false}
|
||||
// wrap={false}
|
||||
>
|
||||
<View
|
||||
style={{
|
||||
@@ -1265,7 +1265,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
||||
flexDirection: "column",
|
||||
marginBottom: 10,
|
||||
}}
|
||||
wrap={false}
|
||||
// wrap={false}
|
||||
>
|
||||
<View
|
||||
style={{
|
||||
@@ -1304,7 +1304,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
||||
flexDirection: "column",
|
||||
marginBottom: 10,
|
||||
}}
|
||||
wrap={false}
|
||||
// wrap={false}
|
||||
>
|
||||
<View
|
||||
style={{
|
||||
@@ -1340,7 +1340,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
||||
flexDirection: "column",
|
||||
marginBottom: 10,
|
||||
}}
|
||||
wrap={false}
|
||||
// wrap={false}
|
||||
>
|
||||
<View
|
||||
style={{
|
||||
@@ -1376,7 +1376,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => {
|
||||
flexDirection: "column",
|
||||
marginBottom: 10,
|
||||
}}
|
||||
wrap={false}
|
||||
// wrap={false}
|
||||
>
|
||||
<View
|
||||
style={{
|
||||
|
||||
@@ -53,6 +53,28 @@ const styles = StyleSheet.create({
|
||||
paddingLeft: 10,
|
||||
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: {
|
||||
color: "#757575",
|
||||
width: "20%",
|
||||
@@ -239,7 +261,7 @@ export const statement_pdf = ({ docProps }) => {
|
||||
<Html style={styles.richArea}>
|
||||
{CleanHTML(
|
||||
values.conditional_representationCapacity_Comments
|
||||
)}
|
||||
) || "N/A"}
|
||||
</Html>
|
||||
</Text>
|
||||
</View>
|
||||
@@ -440,7 +462,7 @@ export const statement_pdf = ({ docProps }) => {
|
||||
}}
|
||||
>
|
||||
<Text
|
||||
style={{ width: "40%", fontSize: 12 }}
|
||||
style={{ width: "15%", fontSize: 12 }}
|
||||
>
|
||||
{getTrans(
|
||||
docProps.locale,
|
||||
@@ -448,7 +470,18 @@ export const statement_pdf = ({ docProps }) => {
|
||||
)}
|
||||
:
|
||||
</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}
|
||||
</Text>
|
||||
</View>
|
||||
@@ -459,14 +492,20 @@ export const statement_pdf = ({ docProps }) => {
|
||||
alignItems: "center",
|
||||
}}
|
||||
>
|
||||
<Text style={styles.questionText}>
|
||||
<Text
|
||||
style={{
|
||||
width: "40",
|
||||
fontSize: 12,
|
||||
marginLeft: 10,
|
||||
}}
|
||||
>
|
||||
{getTrans(
|
||||
docProps.locale,
|
||||
"statement-date-label"
|
||||
)}
|
||||
:
|
||||
</Text>
|
||||
<Text style={styles.questionAnswer}>
|
||||
<Text style={styles.questionAnswerSmaller}>
|
||||
{signedDate}
|
||||
</Text>
|
||||
</View>
|
||||
@@ -479,6 +518,7 @@ export const statement_pdf = ({ docProps }) => {
|
||||
style={{
|
||||
flexDirection: "row",
|
||||
marginBottom: 10,
|
||||
alignItems: "center",
|
||||
}}
|
||||
>
|
||||
<Text
|
||||
@@ -498,6 +538,28 @@ export const statement_pdf = ({ docProps }) => {
|
||||
: ""}
|
||||
</Text>
|
||||
</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 />
|
||||
)}
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
"summary-start-date-label": "Dyddiad Dechrau",
|
||||
"summary-questionnaire-due-date-label": "Holiadur 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-interested-party-date-label": "Sylwadau Parti â Buddiant i ddod",
|
||||
"summary-applicant-final-comments-date-label": "Sylwadau Terfynol yr Apelydd/ACLl i ddod",
|
||||
|
||||
@@ -225,5 +225,6 @@
|
||||
"representation-type": "Math o sylw",
|
||||
"select-an-option-label": "Dewiswch opsiwn",
|
||||
"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-questionnaire-due-date-label": "Questionnaire 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-interested-party-date-label": "Interested Party 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-11": "Is the appeal fee exempt?",
|
||||
"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-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?",
|
||||
@@ -181,13 +181,13 @@
|
||||
"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-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-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-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-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-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",
|
||||
@@ -225,5 +225,6 @@
|
||||
"representation-type": "Representation type",
|
||||
"select-an-option-label": "Select an option",
|
||||
"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 CryptoJS from "crypto-js";
|
||||
import _ from "lodash";
|
||||
import { azureHeadersPagedCustom, getToken } from "../../../actions";
|
||||
import {
|
||||
azureHeadersPagedCustom,
|
||||
getToken,
|
||||
consoleLogger,
|
||||
} from "../../../actions";
|
||||
|
||||
const WORDKEY = process.env.HASHKEY;
|
||||
|
||||
|
||||
@@ -153,16 +153,16 @@ export default async function handler(req, res) {
|
||||
? cleanFilesList(reqBodyobj)
|
||||
: reqBodyobj;
|
||||
|
||||
console.log(
|
||||
"//////////////////////\nreqBodyobj" +
|
||||
req +
|
||||
"\n//////////////////////\n"
|
||||
);
|
||||
console.log(
|
||||
"//////////////////////\nreqBodyobj" +
|
||||
JSON.stringify(req.body) +
|
||||
"\n//////////////////////\n"
|
||||
);
|
||||
// console.log(
|
||||
// "//////////////////////\nreqBodyobj" +
|
||||
// req +
|
||||
// "\n//////////////////////\n"
|
||||
// );
|
||||
// console.log(
|
||||
// "//////////////////////\nreqBodyobj" +
|
||||
// JSON.stringify(req.body) +
|
||||
// "\n//////////////////////\n"
|
||||
// );
|
||||
|
||||
var containerID = reqBodyobj.containerID;
|
||||
var casefolderID = reqBodyobj.casefolderID;
|
||||
|
||||
Reference in New Issue
Block a user