From 42bcdb8af8969c9f4ad58bbd9239a958b8baa352 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Fri, 3 Apr 2026 03:26:52 +0000 Subject: [PATCH] Add mock for concern page --- .../rmo/district-compliance-address.html | 2 +- .../rmo/district-compliance-concern.html | 198 ++++++++++++++++++ rmo/compliance.go | 16 ++ rmo/routes.go | 1 + 4 files changed, 216 insertions(+), 1 deletion(-) create mode 100644 html/template/rmo/district-compliance-concern.html diff --git a/html/template/rmo/district-compliance-address.html b/html/template/rmo/district-compliance-address.html index b84a7a76..08a2df49 100644 --- a/html/template/rmo/district-compliance-address.html +++ b/html/template/rmo/district-compliance-address.html @@ -104,7 +104,7 @@
Back - Continue + Continue
diff --git a/html/template/rmo/district-compliance-concern.html b/html/template/rmo/district-compliance-concern.html new file mode 100644 index 00000000..1e67615c --- /dev/null +++ b/html/template/rmo/district-compliance-concern.html @@ -0,0 +1,198 @@ +{{ template "rmo/layout/base.html" . }} + +{{ define "title" }}District Concerns{{ end }} +{{ define "extraheader" }} + +{{ end }} +{{ define "content" }} +
+ +
+
+ {{ .District.Name }} logo +

{{ .District.Name }}

+
+
+ {{ .District.OfficePhone }} +
+
+ + +
+
+ Step 3 of 10 +
+
+
+
+
+ + +
+

+ District observations indicate a possible mosquito problem at this + property +

+ +

+ Our inspector documented the following conditions during their visit. + Tap any image to view details. +

+ + +
+ + +
+
+
+ + +
Photo 1 +
+
Tap to view
+
+
+
+
+ + +
Photo 2 +
+
Tap to view
+
+
+
+ +
+
+
+ + +
Photo 3 +
+
Tap to view
+
+
+
+
+ + +
Photo 4 +
+
Tap to view
+
+
+
+
+ + +
+ +
+
+ + + Inspector #1 | 2 days ago + +
+

some fake comments here

+
+
+ + + + + +
+
+{{ end }} diff --git a/rmo/compliance.go b/rmo/compliance.go index d121e8ee..9f48235a 100644 --- a/rmo/compliance.go +++ b/rmo/compliance.go @@ -37,3 +37,19 @@ func getDistrictComplianceAddress(w http.ResponseWriter, r *http.Request) { }, ) } + +func getDistrictComplianceConcern(w http.ResponseWriter, r *http.Request) { + district, err := districtBySlug(r) + if err != nil { + respondError(w, "Failed to lookup organization", err, http.StatusBadRequest) + return + } + html.RenderOrError( + w, + "rmo/district-compliance-concern.html", + ContentNuisance{ + District: newContentDistrict(district), + URL: makeContentURL(nil), + }, + ) +} diff --git a/rmo/routes.go b/rmo/routes.go index fadb33a4..79707df9 100644 --- a/rmo/routes.go +++ b/rmo/routes.go @@ -18,6 +18,7 @@ func Router(r *mux.Router) { r.HandleFunc("/district/{slug}", getRootDistrict).Methods("GET") r.HandleFunc("/district/{slug}/compliance", getDistrictCompliance).Methods("GET") r.HandleFunc("/district/{slug}/compliance/address", getDistrictComplianceAddress).Methods("GET") + r.HandleFunc("/district/{slug}/compliance/concern", getDistrictComplianceConcern).Methods("GET") r.HandleFunc("/district/{slug}/nuisance", getNuisanceDistrict).Methods("GET") //r.HandleFunc("/district/{slug}/nuisance-submit-complete", renderMock(mockNuisanceSubmitCompleteT)).Methods("GET") //r.HandleFunc("/district/{slug}/status", renderMock(mockStatusT)).Methods("GET")