From 463d03f798c26be3e799e95d6a291cb0c4f3dfcd Mon Sep 17 00:00:00 2001 From: rdbsolutions Date: Mon, 13 Jan 2025 17:04:19 +0000 Subject: [PATCH] questionnaire defect 54 - plus tidying up --- .../pdftemplates/lpaQuestionnaire_pdf.js | 203 ++++++++++++------ 1 file changed, 139 insertions(+), 64 deletions(-) diff --git a/components/pdftemplates/lpaQuestionnaire_pdf.js b/components/pdftemplates/lpaQuestionnaire_pdf.js index b0b76f73..6c9de0f5 100644 --- a/components/pdftemplates/lpaQuestionnaire_pdf.js +++ b/components/pdftemplates/lpaQuestionnaire_pdf.js @@ -41,7 +41,7 @@ const styles = StyleSheet.create({ logoImage: { width: "200pt" }, questionBullet: { width: "5%", fontSize: 12 }, questionText: { width: "30%", fontSize: 12 }, - questionTextMid: { width: "80%", fontSize: 12 }, + questionTextMid: { width: "75%", fontSize: 12, marginRight: 10 }, questionTextWide: { width: "95%", fontSize: 12, marginBottom: 5 }, questionAnswer: { color: "#757575", @@ -277,6 +277,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => { flexDirection: "column", marginBottom: 10, }} + wrap={false} > { flexDirection: "column", marginBottom: 10, }} + wrap={false} > { flexDirection: "column", marginBottom: 10, }} + wrap={false} > { flexDirection: "column", marginBottom: 10, }} + wrap={false} > { flexDirection: "column", marginBottom: 10, }} + wrap={false} > { + ] - 11. - - {getTrans( - docProps.locale, - "s78-section-question-11" - )} - - + + + 11. + + + {getTrans( + docProps.locale, + "s78-section-question-11" + )} + + + {CleanHTML(values.LPAcaseFileAndReps)} - 12. - - {getTrans( - docProps.locale, - "s78-section-question-12" - )} - - + + + 12. + + + {getTrans( + docProps.locale, + "s78-section-question-12" + )} + + + {CleanHTML(values.LPAldpAndMap)} - 13. - - {getTrans( - docProps.locale, - "s78-section-question-13" - )} - - + + + 13. + + + {getTrans( + docProps.locale, + "s78-section-question-13" + )} + + + {CleanHTML(values.LPAlocalGuidance)} @@ -603,6 +639,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => { flexDirection: "column", marginBottom: 10, }} + wrap={false} > { flexDirection: "column", marginBottom: 10, }} + wrap={false} > { flexDirection: "column", marginBottom: 10, }} + wrap={false} > { flexDirection: "column", marginBottom: 10, }} + wrap={false} > { flexDirection: "column", marginBottom: 10, }} + wrap={false} > { flexDirection: "column", marginBottom: 10, }} + wrap={false} > { flexDirection: "column", marginBottom: 10, }} + wrap={false} > { flexDirection: "column", marginBottom: 10, }} + wrap={false} > { flexDirection: "column", marginBottom: 10, }} + wrap={false} > { marginTop: 10, fontFamily: "Helvetica-Bold", }} + wrap={false} > {getTrans( docProps.locale, - "s78-section-heading-five" + "s78-section-heading-five-sub" )} @@ -1040,6 +1086,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => { flexDirection: "column", marginBottom: 10, }} + wrap={false} > { {values.copyOfApplicantsCertificate} - - - {CleanHTML( - values.copyOfApplicantsCertificateEvidence - )} - - + {values.hasOwnProperty( + "copyOfApplicantsCertificateEvidence" + ) && ( + + + {CleanHTML( + values.copyOfApplicantsCertificateEvidence + )} + + + )} { {values.advertismentGiven} - - - - {CleanHTML( - values.advertismentGivenEvidence - )} - - + {values.hasOwnProperty( + "advertismentGivenEvidence" + ) && ( + + + {CleanHTML( + values.advertismentGivenEvidence + )} + + + )} { } - - - {CleanHTML( - values.copyOfLetterOfAppealNotificationEvidence - )} - - + {values.hasOwnProperty( + "copyOfLetterOfAppealNotificationEvidence" + ) && ( + + + {CleanHTML( + values.copyOfLetterOfAppealNotificationEvidence + )} + + + )} { flexDirection: "column", marginBottom: 10, }} + wrap={false} > { flexDirection: "column", marginBottom: 10, }} + wrap={false} > { flexDirection: "column", marginBottom: 10, }} + wrap={false} > { flexDirection: "column", marginBottom: 10, }} + wrap={false} > { - - - {getTrans( - docProps.locale, - "lpa-list-supporting-documents-list" - )} - + + + + {getTrans( + docProps.locale, + "lpa-list-supporting-documents-list" + )} + + @@ -1446,7 +1521,7 @@ export const lpaQuestionnaire_pdf = ({ docProps }) => { > {p.name} -{" "} {bytesToSize( - p.size + p.contentLength )}{" "} {"\n"}