From 3e0003095b8be3e25062f7d087acee5eac9231c7 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Fri, 3 Apr 2026 03:57:43 +0000 Subject: [PATCH] Add process and submission mocks --- .../rmo/district-compliance-address.html | 6 +- .../rmo/district-compliance-concern.html | 6 +- .../rmo/district-compliance-contact.html | 12 +- .../rmo/district-compliance-evidence.html | 6 +- .../rmo/district-compliance-permission.html | 6 +- .../rmo/district-compliance-process.html | 190 ++++++++++++++ .../rmo/district-compliance-submit.html | 238 ++++++++++++++++++ html/template/rmo/district-compliance.html | 6 +- rmo/compliance.go | 31 +++ rmo/routes.go | 2 + 10 files changed, 481 insertions(+), 22 deletions(-) create mode 100644 html/template/rmo/district-compliance-process.html create mode 100644 html/template/rmo/district-compliance-submit.html diff --git a/html/template/rmo/district-compliance-address.html b/html/template/rmo/district-compliance-address.html index 08a2df49..624ef9ed 100644 --- a/html/template/rmo/district-compliance-address.html +++ b/html/template/rmo/district-compliance-address.html @@ -51,14 +51,14 @@
- Step 2 of 10 + Step 2 of 8
diff --git a/html/template/rmo/district-compliance-concern.html b/html/template/rmo/district-compliance-concern.html index ebecd375..1171901d 100644 --- a/html/template/rmo/district-compliance-concern.html +++ b/html/template/rmo/district-compliance-concern.html @@ -74,14 +74,14 @@
- Step 3 of 10 + Step 3 of 8
diff --git a/html/template/rmo/district-compliance-contact.html b/html/template/rmo/district-compliance-contact.html index e0f2ff18..15fe15ce 100644 --- a/html/template/rmo/district-compliance-contact.html +++ b/html/template/rmo/district-compliance-contact.html @@ -47,14 +47,14 @@
- Step 6 of 10 + Step 6 of 8
@@ -155,12 +155,10 @@
- + Back - + Continue
diff --git a/html/template/rmo/district-compliance-evidence.html b/html/template/rmo/district-compliance-evidence.html index 2dd6c47d..51a0d640 100644 --- a/html/template/rmo/district-compliance-evidence.html +++ b/html/template/rmo/district-compliance-evidence.html @@ -115,14 +115,14 @@
- Step 4 of 10 + Step 4 of 8
diff --git a/html/template/rmo/district-compliance-permission.html b/html/template/rmo/district-compliance-permission.html index a14362ba..bfc03233 100644 --- a/html/template/rmo/district-compliance-permission.html +++ b/html/template/rmo/district-compliance-permission.html @@ -95,14 +95,14 @@
- Step 5 of 10 + Step 5 of 8
diff --git a/html/template/rmo/district-compliance-process.html b/html/template/rmo/district-compliance-process.html new file mode 100644 index 00000000..e564e03c --- /dev/null +++ b/html/template/rmo/district-compliance-process.html @@ -0,0 +1,190 @@ +{{ template "rmo/layout/base.html" . }} + +{{ define "title" }}What Happens Next{{ end }} +{{ define "extraheader" }} + +{{ end }} +{{ define "content" }} +
+ +
+
+ {{ .District.Name }} logo +

{{ .District.Name }}

+
+
+ {{ .District.OfficePhone }} +
+
+ + +
+
+ Step 7 of 8 +
+
+
+
+
+ + +
+

What happens next

+ +

+ Understanding the review process helps you know what to expect. +

+ + +
+ +
+
1
+
+

We review your response

+

+ Our team will evaluate the photos, comments, and information + you've provided to assess the current conditions at the property. +

+
+
+ + +
+
2
+
+

Your response may reduce or close follow-up

+

+ If your photos and information clearly show that the concern has + been addressed, we may be able to reduce or close this matter + without additional inspection. +

+
+
+ + +
+
3
+
+

We'll contact you if inspection is needed

+

+ If an inspection is still necessary and you provided contact + information, we will try to reach you in advance to coordinate + timing and access. +

+
+
+ + +
+
4
+
+

+ The compliance process continues if unresolved +

+

+ If the mosquito breeding source remains unaddressed, the District + will continue with standard compliance procedures to protect + public health. +

+
+
+
+ + +
+

+ Your response helps +

+

+ By providing photos, access information, and contact details, you give + our team the ability to review the situation thoroughly before taking + further action. This can save everyone time and help resolve the + matter more efficiently. +

+
+ + +
+

+ Important: + Submitting this form does not automatically close this compliance + request. The District must verify that mosquito breeding conditions + have been corrected to protect community health. +

+
+ + + +
+
+{{ end }} diff --git a/html/template/rmo/district-compliance-submit.html b/html/template/rmo/district-compliance-submit.html new file mode 100644 index 00000000..79907989 --- /dev/null +++ b/html/template/rmo/district-compliance-submit.html @@ -0,0 +1,238 @@ +{{ template "rmo/layout/base.html" . }} + +{{ define "title" }}Submit Response{{ end }} +{{ define "extraheader" }} + +{{ end }} +{{ define "content" }} +
+ +
+
+ {{ .District.Name }} logo +

{{ .District.Name }}

+
+
+ {{ .District.OfficePhone }} +
+
+ + +
+
+ Step 8 of 8 +
+
+
+
+
+ + +
+

Review and submit your response

+ +
+

+ Before you submit +

+

+ Providing photos, access permissions, and contact information gives + the District the best opportunity to review your response and + potentially close this matter without further action. The more detail + you provide, the better we can assess the situation. +

+
+ +
+ +
+

Your Response Summary

+ + +
+

Property Address

+
+
+ 123 Main St + + Provided + +
+
+
+ + +
+

Photos

+
+
+ + + 3 photos uploaded + +
+
+
Comments:
+ These are my comments +
+
+
+ + +
+

Property Access

+
+
+ + Entry permitted without + owner present + +
+
+
+ + +
+

Contact Information

+
+
Name
+
Kai Fu Lee
+
+
+
Phone
+
+ 123-555-6789 + (texting OK) +
+
+
+
Email
+
me@aol.com
+
+
+
+ + +
+ + + Back + +
+ +
+ + By submitting, you confirm the information provided is accurate to + the best of your knowledge. + +
+
+
+
+{{ end }} diff --git a/html/template/rmo/district-compliance.html b/html/template/rmo/district-compliance.html index 61052d78..18ffcfd5 100644 --- a/html/template/rmo/district-compliance.html +++ b/html/template/rmo/district-compliance.html @@ -34,14 +34,14 @@
- Step 1 of 10 + Step 1 of 8
diff --git a/rmo/compliance.go b/rmo/compliance.go index 57508b0f..28414ae6 100644 --- a/rmo/compliance.go +++ b/rmo/compliance.go @@ -101,3 +101,34 @@ func getDistrictCompliancePermission(w http.ResponseWriter, r *http.Request) { }, ) } +func getDistrictComplianceProcess(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-process.html", + ContentNuisance{ + District: newContentDistrict(district), + URL: makeContentURL(nil), + }, + ) +} + +func getDistrictComplianceSubmit(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-submit.html", + ContentNuisance{ + District: newContentDistrict(district), + URL: makeContentURL(nil), + }, + ) +} diff --git a/rmo/routes.go b/rmo/routes.go index 655e1989..c480e1e1 100644 --- a/rmo/routes.go +++ b/rmo/routes.go @@ -22,6 +22,8 @@ func Router(r *mux.Router) { r.HandleFunc("/district/{slug}/compliance/contact", getDistrictComplianceContact).Methods("GET") r.HandleFunc("/district/{slug}/compliance/evidence", getDistrictComplianceEvidence).Methods("GET") r.HandleFunc("/district/{slug}/compliance/permission", getDistrictCompliancePermission).Methods("GET") + r.HandleFunc("/district/{slug}/compliance/process", getDistrictComplianceProcess).Methods("GET") + r.HandleFunc("/district/{slug}/compliance/submit", getDistrictComplianceSubmit).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")