From 4518de323b17e1576e0ef009634cf26ab5cb4873 Mon Sep 17 00:00:00 2001 From: Peter York Date: Thu, 26 Sep 2024 11:49:47 +0100 Subject: [PATCH] Initial pass at printable report --- src/routes/planning/report/+page.svelte | 10 +++++ .../planning/report/printable/+page@.svelte | 38 +++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 src/routes/planning/report/printable/+page@.svelte diff --git a/src/routes/planning/report/+page.svelte b/src/routes/planning/report/+page.svelte index c0d4c251adc..5ca92962838 100644 --- a/src/routes/planning/report/+page.svelte +++ b/src/routes/planning/report/+page.svelte @@ -1,9 +1,19 @@
+
+ Export to PDF +

This button will open a new tab where you should right-click, "print", and print/export to PDF.

+
Application details diff --git a/src/routes/planning/report/printable/+page@.svelte b/src/routes/planning/report/printable/+page@.svelte new file mode 100644 index 00000000000..29fe6115da8 --- /dev/null +++ b/src/routes/planning/report/printable/+page@.svelte @@ -0,0 +1,38 @@ + + +
+ + + {#each [["Site address", $state.summary.siteAddress], ["Local authority reference", $state.summary.localAuthorityReference], ["ATE reference", $state.summary.ateReference], ["Local planning authority", $state.summary.localPlanningAuthority], ["Local highway authority", $state.summary.localHighwayAuthority], ["Completed by", $state.summary.completedBy], ["Date", $state.summary.date], ["Application type", $state.summary.applicationType], ["Summary of proposal", $state.summary.proposalSummary]] as [key, value]} + + + + + {/each} +
+ Application details +
{key}{value}
+ + + + + + + + + + {#each criteria as criterion, idx} + + + + + + + {/each} +
+ Assessment report +
CriterionRatingAppraiser CommentsRelevant Policy & Guidance
{idx + 1}. {criterion}{$state.ratings[idx]}{$state.appraiserComments[idx]}{$state.localGuidance[idx]}
+