From db75826e59939bb93e3c115f8f61eeefa47b96fe Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Sat, 24 Jan 2026 19:32:19 +0000 Subject: [PATCH] Add link to new nuisance mock --- public-report/mock.go | 22 +- .../template/mock/district-root.html | 4 +- public-report/template/mock/nuisance.html | 500 ++++++++++++++++++ 3 files changed, 521 insertions(+), 5 deletions(-) create mode 100644 public-report/template/mock/nuisance.html diff --git a/public-report/mock.go b/public-report/mock.go index fb4d0017..d9746194 100644 --- a/public-report/mock.go +++ b/public-report/mock.go @@ -9,23 +9,38 @@ import ( ) var ( - mockRootT = buildTemplate("mock/root", "base") mockDistrictRootT = buildTemplate("mock/district-root", "base") + mockNuisanceT = buildTemplate("mock/nuisance", "base") + mockRootT = buildTemplate("mock/root", "base") ) type ContentDistrict struct { - LogoURL string Name string + URLLogo string +} +type ContentURL struct { + Nuisance string } type ContentMock struct { District ContentDistrict + URL ContentURL } func addMockRoutes(r chi.Router) { r.Get("/", renderMock(mockRootT)) + r.Get("/nuisance", renderMock(mockNuisanceT)) r.Get("/district/{slug}", renderMock(mockDistrictRootT)) } +func makeContentURL() ContentURL { + return ContentURL{ + Nuisance: makeURLMock("nuisance"), + } +} + +func makeURLMock(p string) string { + return config.MakeURLReport("/mock/%s", p) +} func renderMock(t *htmlpage.BuiltTemplate) func(http.ResponseWriter, *http.Request) { return func(w http.ResponseWriter, r *http.Request) { slug := chi.URLParam(r, "slug") @@ -34,9 +49,10 @@ func renderMock(t *htmlpage.BuiltTemplate) func(http.ResponseWriter, *http.Reque t, ContentMock{ District: ContentDistrict{ - LogoURL: config.MakeURLNidus("/api/district/%s/logo", slug), Name: "Delta MCD", + URLLogo: config.MakeURLNidus("/api/district/%s/logo", slug), }, + URL: makeContentURL(), }, ) } diff --git a/public-report/template/mock/district-root.html b/public-report/template/mock/district-root.html index 14009aa0..68a0b33e 100644 --- a/public-report/template/mock/district-root.html +++ b/public-report/template/mock/district-root.html @@ -36,7 +36,7 @@

Report Mosquitoes for {{.District.Name}}

- +

This is the reporting page for mosquito problems in your area.

Reports submitted here are reviewed by {{.District.Name}}, which helps identify and address mosquito problems in your community.

@@ -57,7 +57,7 @@

Report Mosquito Nuisance

Report areas with high adult mosquito activity causing discomfort or concern.

- Report Problem + Report Problem diff --git a/public-report/template/mock/nuisance.html b/public-report/template/mock/nuisance.html new file mode 100644 index 00000000..14643efb --- /dev/null +++ b/public-report/template/mock/nuisance.html @@ -0,0 +1,500 @@ +{{template "base.html" .}} + +{{define "title"}}Nuisance{{end}} +{{define "extraheader"}} + + +{{end}} +{{define "content"}} +
+ +
+
+

Report Mosquito Nuisance

+

Help us identify mosquito activity in your area

+
+
+ + +
+
+ +
+
+ + +
+ +
+
+ +

Mosquito Activity Information

+ optional +
+

The time when mosquitoes are active can help us identify the species and likely breeding sources.

+ + +
+
+ +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
+
+ + +
+
+ + +
+ + +
+ + +
+
+
Minor
+ Occasional mosquito +
+
+
Moderate
+ Regular presence +
+
+
Severe
+ Many mosquitoes +
+
+
+ Current selection: 3/5 +
+
+
+ + +
+
+ + +
+
+
+ + +
+
+ +

Potential Mosquito Sources

+ optional +
+

Have you noticed any of these common mosquito breeding sources in your area?

+ +
+
+
Did you know?
+

Mosquitoes can breed in as little as a bottle cap of water! Eliminating standing water is the most effective way to reduce mosquito populations.

+
+
+ +
+ +
+
+
+
+ +
+
Stagnant Water
+

Green pools, ponds, fountains, or birdbaths that aren't maintained

+
+ + +
+
+
+
+ + +
+
+
+
+ +
+
Containers
+

Buckets, planters, toys, tires, or any items that collect rainwater

+
+ + +
+
+
+
+ + +
+
+
+
+ +
+
Roof & Gutters
+

Clogged gutters, flat roofs, or AC units that collect water

+
+ + +
+
+
+
+
+ + + +
+
+ + +
+
+
+ + +
+
+ +

Inspection Request

+
+

Would you like our technicians to inspect for potential mosquito sources?

+ +
+
+
+
Property Inspection
+

Request a technician to inspect your property for mosquito sources. We'll contact you to schedule a convenient time.

+
+ + +
+
+
+ +
+
+
Neighborhood Inspection
+

Request a general inspection of your neighborhood. We'll survey the area for potential mosquito breeding sources.

+
+ + +
+
+
+
+ + + +
+ + +
+
+ +

Location & Contact Information

+
+ +
+
+ + +
+
+ +
+
+ + +
+
+ + +
+
+ + +
We'll use this to send you a confirmation and follow-up information.
+
+
+
+ +
+
+ +

Additional Information

+ optional +
+ +
+
+ + +
+
+
+ + +
+
+
+

Thank you for reporting this mosquito issue.

+

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

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