diff --git a/html/template/rmo/district-compliance-concern.html b/html/template/rmo/district-compliance-concern.html index 1e67615c..ebecd375 100644 --- a/html/template/rmo/district-compliance-concern.html +++ b/html/template/rmo/district-compliance-concern.html @@ -191,7 +191,7 @@ Back - Continue + Continue diff --git a/html/template/rmo/district-compliance-evidence.html b/html/template/rmo/district-compliance-evidence.html new file mode 100644 index 00000000..4255670a --- /dev/null +++ b/html/template/rmo/district-compliance-evidence.html @@ -0,0 +1,314 @@ +{{ template "rmo/layout/base.html" . }} + +{{ define "title" }}Upload Photos{{ end }} +{{ define "extraheader" }} + +{{ end }} +{{ define "content" }} +
+ +
+
+ {{ .District.Name }} logo +

{{ .District.Name }}

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

Upload photos of the area

+ +

+ Please provide current photos to help us assess the situation. +

+ + +
+
+
+ Helpful photos are: +
+
    +
  • Recent (taken within the last 24 hours)
  • +
  • Showing the specific area of concern
  • +
  • Making water conditions clearly visible
  • +
+
+
+ +
+ +
+ +
+ +

Tap to take photo or upload

+

You can add multiple photos

+
+ +
+ + +
+ + +
+ + +
+ + +
+ Example: "This standing water appeared after recent rain" or "I've + already taken steps to address this issue" +
+
+ + +
+ + Back + + +
+
+
+
+ + +{{ end }} diff --git a/rmo/compliance.go b/rmo/compliance.go index 9f48235a..e2dcd2de 100644 --- a/rmo/compliance.go +++ b/rmo/compliance.go @@ -53,3 +53,19 @@ func getDistrictComplianceConcern(w http.ResponseWriter, r *http.Request) { }, ) } + +func getDistrictComplianceEvidence(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-evidence.html", + ContentNuisance{ + District: newContentDistrict(district), + URL: makeContentURL(nil), + }, + ) +} diff --git a/rmo/routes.go b/rmo/routes.go index 79707df9..cba8e667 100644 --- a/rmo/routes.go +++ b/rmo/routes.go @@ -19,6 +19,7 @@ func Router(r *mux.Router) { 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}/compliance/evidence", getDistrictComplianceEvidence).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")