From 3075814e81aa184764e905e92c98330b5e41c8b4 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Sat, 24 Jan 2026 20:40:28 +0000 Subject: [PATCH] Add initial nuisance report submit complete --- public-report/mock.go | 16 ++- .../mock/nuisance-submit-complete.html | 130 ++++++++++++++++++ public-report/template/mock/nuisance.html | 4 +- 3 files changed, 143 insertions(+), 7 deletions(-) create mode 100644 public-report/template/mock/nuisance-submit-complete.html diff --git a/public-report/mock.go b/public-report/mock.go index a4e6aa2f..02aa98aa 100644 --- a/public-report/mock.go +++ b/public-report/mock.go @@ -9,9 +9,10 @@ import ( ) var ( - mockDistrictRootT = buildTemplate("mock/district-root", "base") - mockNuisanceT = buildTemplate("mock/nuisance", "base") - mockRootT = buildTemplate("mock/root", "base") + mockDistrictRootT = buildTemplate("mock/district-root", "base") + mockNuisanceT = buildTemplate("mock/nuisance", "base") + mockNuisanceSubmitCompleteT = buildTemplate("mock/nuisance-submit-complete", "base") + mockRootT = buildTemplate("mock/root", "base") ) type ContentDistrict struct { @@ -19,23 +20,27 @@ type ContentDistrict struct { URLLogo string } type ContentURL struct { - Nuisance string + Nuisance string + NuisanceSubmitComplete string } type ContentMock struct { District ContentDistrict MapboxToken string + ReportID string URL ContentURL } func addMockRoutes(r chi.Router) { r.Get("/", renderMock(mockRootT)) r.Get("/nuisance", renderMock(mockNuisanceT)) + r.Get("/nuisance-submit-complete", renderMock(mockNuisanceSubmitCompleteT)) r.Get("/district/{slug}", renderMock(mockDistrictRootT)) } func makeContentURL() ContentURL { return ContentURL{ - Nuisance: makeURLMock("nuisance"), + Nuisance: makeURLMock("nuisance"), + NuisanceSubmitComplete: makeURLMock("nuisance-submit-complete"), } } @@ -54,6 +59,7 @@ func renderMock(t *htmlpage.BuiltTemplate) func(http.ResponseWriter, *http.Reque URLLogo: config.MakeURLNidus("/api/district/%s/logo", slug), }, MapboxToken: config.MapboxToken, + ReportID: "abcd-1234-5678", URL: makeContentURL(), }, ) diff --git a/public-report/template/mock/nuisance-submit-complete.html b/public-report/template/mock/nuisance-submit-complete.html new file mode 100644 index 00000000..333059d6 --- /dev/null +++ b/public-report/template/mock/nuisance-submit-complete.html @@ -0,0 +1,130 @@ +{{template "base.html" .}} + +{{define "title"}}Quick Report Complete{{end}} +{{define "extraheader"}} + + +{{end}} +{{define "content"}} +
+
+
+ +
+
+

+ + + + Report Successfully Submitted +

+
+
+
+

Thank you for helping us control mosquito populations in your area!

+
+ Your Report ID: + {{.ReportID|publicReportID}} +
+

Please save this ID for your reference.

+ {{ if not (eq .District nil) }} +

Your report has been assigned to

+

{{ .District.Name }}

+ + {{ end }} +
+ +
+ + +
+

+ + + + Check Your Report Status +

+

You can check the status of your report at any time using your Report ID.

+ + Check Status + +
+ +
+ + +
+

+ + + + Get Updates +

+

Provide your contact information to receive updates about your report.

+ +
+ + +
+ +
+ + + + + + +
+
+ +
+ +
+ + + + + + + +
+
+ +
+ + +
+ You must consent to receive notifications. +
+
+ + +
+
+
+
+ + + +
+
+
+{{end}} diff --git a/public-report/template/mock/nuisance.html b/public-report/template/mock/nuisance.html index 0729e830..ed22a714 100644 --- a/public-report/template/mock/nuisance.html +++ b/public-report/template/mock/nuisance.html @@ -502,9 +502,9 @@ document.addEventListener('DOMContentLoaded', function() {

After submission, you'll receive a confirmation with a report ID and further information.

- +