From 2c856245839c46095495ae647726832961957710 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Thu, 8 Jan 2026 21:29:33 +0000 Subject: [PATCH] Make photo upload component common to quick and pool reports --- public-report/page.go | 2 +- .../component/photo-upload-header.html | 126 ++++++++++++ .../template/component/photo-upload.html | 19 ++ public-report/template/pool.html | 138 +------------ public-report/template/quick.html | 185 ++++-------------- 5 files changed, 187 insertions(+), 283 deletions(-) create mode 100644 public-report/template/component/photo-upload-header.html create mode 100644 public-report/template/component/photo-upload.html diff --git a/public-report/page.go b/public-report/page.go index a0b6e06a..cd1efd70 100644 --- a/public-report/page.go +++ b/public-report/page.go @@ -39,7 +39,7 @@ var ( Status = buildTemplate("status", "base") ) -var components = [...]string{"footer"} +var components = [...]string{"footer", "photo-upload", "photo-upload-header"} func buildTemplate(files ...string) *htmlpage.BuiltTemplate { subdir := "public-report" diff --git a/public-report/template/component/photo-upload-header.html b/public-report/template/component/photo-upload-header.html new file mode 100644 index 00000000..fecbdd4b --- /dev/null +++ b/public-report/template/component/photo-upload-header.html @@ -0,0 +1,126 @@ +{{define "photo-upload-header"}} + + +{{end}} diff --git a/public-report/template/component/photo-upload.html b/public-report/template/component/photo-upload.html new file mode 100644 index 00000000..29499e65 --- /dev/null +++ b/public-report/template/component/photo-upload.html @@ -0,0 +1,19 @@ +{{define "photo-upload"}} + +
+ + + + +
+ + +
+ Take pictures of the mosquito problem area + + +
+ +
+
+{{end}} diff --git a/public-report/template/pool.html b/public-report/template/pool.html index 9c8e2da6..0ea0e6c7 100644 --- a/public-report/template/pool.html +++ b/public-report/template/pool.html @@ -2,80 +2,7 @@ {{define "title"}}Green Pool{{end}} {{define "extraheader"}} - +{{template "photo-upload-header"}}