From 9aee938e30b6ab7ec8befb45488f99809c3ac606 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Sat, 24 Jan 2026 21:00:30 +0000 Subject: [PATCH] Add status searching page --- public-report/mock.go | 8 +- .../template/mock/district-root.html | 2 +- public-report/template/mock/status.html | 204 ++++++++++++++++++ 3 files changed, 212 insertions(+), 2 deletions(-) create mode 100644 public-report/template/mock/status.html diff --git a/public-report/mock.go b/public-report/mock.go index 83d2805f..d7b10ce0 100644 --- a/public-report/mock.go +++ b/public-report/mock.go @@ -13,6 +13,7 @@ var ( mockNuisanceT = buildTemplate("mock/nuisance", "base") mockNuisanceSubmitCompleteT = buildTemplate("mock/nuisance-submit-complete", "base") mockRootT = buildTemplate("mock/root", "base") + mockStatusT = buildTemplate("mock/status", "base") ) type ContentDistrict struct { @@ -22,6 +23,8 @@ type ContentDistrict struct { type ContentURL struct { Nuisance string NuisanceSubmitComplete string + Status string + Tegola string } type ContentMock struct { District ContentDistrict @@ -32,15 +35,18 @@ type ContentMock struct { func addMockRoutes(r chi.Router) { r.Get("/", renderMock(mockRootT)) + r.Get("/district/{slug}", renderMock(mockDistrictRootT)) r.Get("/nuisance", renderMock(mockNuisanceT)) r.Get("/nuisance-submit-complete", renderMock(mockNuisanceSubmitCompleteT)) - r.Get("/district/{slug}", renderMock(mockDistrictRootT)) + r.Get("/status", renderMock(mockStatusT)) } func makeContentURL() ContentURL { return ContentURL{ Nuisance: makeURLMock("nuisance"), NuisanceSubmitComplete: makeURLMock("nuisance-submit-complete"), + Status: makeURLMock("status"), + Tegola: config.MakeURLTegola("/"), } } diff --git a/public-report/template/mock/district-root.html b/public-report/template/mock/district-root.html index 42ca10a0..8cb54251 100644 --- a/public-report/template/mock/district-root.html +++ b/public-report/template/mock/district-root.html @@ -81,7 +81,7 @@

Follow-up or Check Status

Check on a previous request or view current mosquito activity in your area.

- Get Status + Get Status diff --git a/public-report/template/mock/status.html b/public-report/template/mock/status.html new file mode 100644 index 00000000..2b8dd8f2 --- /dev/null +++ b/public-report/template/mock/status.html @@ -0,0 +1,204 @@ +{{template "base.html" .}} + +{{define "title"}}Status{{end}} +{{define "extraheader"}} + + + + + + + +{{end}} +{{define "content"}} +
+ + + + +
+
+
Reports Map
+
+
+ +
+
+ + +
+
+
Reports Near You
+ 15 Reports Found +
+
+
+ +
+
+ +
+
+{{end}}