Add mock for concern page
This commit is contained in:
parent
bfe2b88622
commit
42bcdb8af8
4 changed files with 216 additions and 1 deletions
|
|
@ -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),
|
||||
},
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue