diff --git a/rmo/routes.go b/rmo/routes.go index cf997873..316889e2 100644 --- a/rmo/routes.go +++ b/rmo/routes.go @@ -32,7 +32,6 @@ func Router() chi.Router { r.Get("/email/unsubscribe/report/{report_id}", getEmailReportUnsubscribe) r.Get("/image/{uuid}", getImageByUUID) r.Route("/mock", addMockRoutes) - r.Get("/pool-submit-complete", getPoolSubmitComplete) r.Get("/quick", getQuick) r.Post("/quick-submit", postQuick) r.Get("/quick-submit-complete", getQuickSubmitComplete) diff --git a/rmo/template/pool-submit-complete.html b/rmo/template/pool-submit-complete.html deleted file mode 100644 index f5882051..00000000 --- a/rmo/template/pool-submit-complete.html +++ /dev/null @@ -1,115 +0,0 @@ -{{template "base.html" .}} - -{{define "title"}}Nuisance Submission Complete{{end}} -{{define "extraheader"}} - - -{{end}} -{{define "content"}} -
-
-
- -
-
-

- - - - Pool Report Complete -

-
-
-
-
- - - -
-

Thank You!

-

Your report has been successfully submitted.

-
- Report ID: - {{.ReportID|publicReportID}} -
-
- -
- - -
-
- - - - - What to Expect -
-
    -
  • - - - - - A confirmation message has been sent to your contact information. -
  • -
  • - - - - - - You will receive updates when: -
      -
    • Your report is assigned to a specialist
    • -
    • A site visit is scheduled
    • -
    • Treatment or remediation is completed
    • -
    • The case is resolved
    • -
    -
  • -
  • - - - - You can check your report status anytime using your Report ID. -
  • -
-
- - - -
-
- - -
-
-
- - - - - Need Help? -
-

If you need to update your contact information or have questions about your report, please contact our Mosquito Control Unit at (123) 456-7890 or mosquito@example.gov and reference your Report ID.

-
-
-
-
-
-{{end}} diff --git a/rmo/water.go b/rmo/water.go index e094fb42..425a0489 100644 --- a/rmo/water.go +++ b/rmo/water.go @@ -24,13 +24,9 @@ type ContentPool struct { MapboxToken string URL ContentURL } -type ContentPoolSubmitComplete struct { - ReportID string -} var ( - PoolSubmitComplete = buildTemplate("pool-submit-complete", "base") - WaterT = buildTemplate("water", "base") + WaterT = buildTemplate("water", "base") ) func getWater(w http.ResponseWriter, r *http.Request) { @@ -60,16 +56,6 @@ func getWaterDistrict(w http.ResponseWriter, r *http.Request) { }, ) } -func getPoolSubmitComplete(w http.ResponseWriter, r *http.Request) { - report := r.URL.Query().Get("report") - html.RenderOrError( - w, - PoolSubmitComplete, - ContentPoolSubmitComplete{ - ReportID: report, - }, - ) -} func postWater(w http.ResponseWriter, r *http.Request) { err := r.ParseMultipartForm(32 << 10) // 32 MB buffer if err != nil {