diff --git a/html/template/rmo/district-compliance-address.html b/html/template/rmo/district-compliance-address.html new file mode 100644 index 00000000..b84a7a76 --- /dev/null +++ b/html/template/rmo/district-compliance-address.html @@ -0,0 +1,112 @@ +{{ template "rmo/layout/base.html" . }} + +{{ define "title" }}Confirm Address{{ end }} +{{ define "extraheader" }} + +{{ end }} +{{ define "content" }} +
+ +
+
+ {{ .District.Name }} logo +

{{ .District.Name }}

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

Confirm the property address

+ +

+ Please enter the address so we can match your response with our records. +

+ +
+
+ + +
+ Begin typing and select your address from the suggestions +
+
+ + +
+ +
+ Map will appear here after address is selected +
+
+ + + +
+
+
+{{ end }} diff --git a/rmo/compliance.go b/rmo/compliance.go index 787c5711..d121e8ee 100644 --- a/rmo/compliance.go +++ b/rmo/compliance.go @@ -21,3 +21,19 @@ func getDistrictCompliance(w http.ResponseWriter, r *http.Request) { }, ) } + +func getDistrictComplianceAddress(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-address.html", + ContentNuisance{ + District: newContentDistrict(district), + URL: makeContentURL(nil), + }, + ) +} diff --git a/rmo/routes.go b/rmo/routes.go index 6c333ac5..fadb33a4 100644 --- a/rmo/routes.go +++ b/rmo/routes.go @@ -17,6 +17,7 @@ func Router(r *mux.Router) { r.HandleFunc("/district", getDistrictList).Methods("GET") 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}/nuisance", getNuisanceDistrict).Methods("GET") //r.HandleFunc("/district/{slug}/nuisance-submit-complete", renderMock(mockNuisanceSubmitCompleteT)).Methods("GET") //r.HandleFunc("/district/{slug}/status", renderMock(mockStatusT)).Methods("GET")