From 44e39fa44a1504794fa1979669516f1c38b5b2f2 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Wed, 5 Nov 2025 22:11:51 +0000 Subject: [PATCH] Add update URL to the detail page. --- html.go | 2 + templates/report-detail.html | 249 +++++++++++++++++------------------ 2 files changed, 125 insertions(+), 126 deletions(-) diff --git a/html.go b/html.go index 113fe469..e271ad6f 100644 --- a/html.go +++ b/html.go @@ -37,6 +37,7 @@ type Link struct { } type ContentReportDetail struct { NextURL string + UpdateURL string } type ContentReportDiagnostic struct { URL string @@ -125,6 +126,7 @@ func htmlReportDetail(w io.Writer, code string) error { nextURL := BaseURL + "/report/" + code + "/evidence" data := ContentReportDetail{ NextURL: nextURL, + UpdateURL: BaseURL + "/report/" + code + "/update", } return reportDetail.ExecuteTemplate(w, data) } diff --git a/templates/report-detail.html b/templates/report-detail.html index 367b022b..e863cc95 100644 --- a/templates/report-detail.html +++ b/templates/report-detail.html @@ -2,132 +2,129 @@ {{define "title"}}Login{{end}} {{define "style"}} - body { - background-color: #f8f9fa; - } - .page-container { - max-width: 600px; - margin: 0 auto; - padding: 20px; - } - .content-card { - background-color: white; - border-radius: 15px; - box-shadow: 0 2px 10px rgba(0,0,0,0.1); - padding: 25px; - margin-bottom: 20px; - } - .logo-area { - text-align: center; - margin-bottom: 20px; - } - .logo-placeholder { - height: 50px; - max-width: 200px; - margin: 0 auto; - } - .map-container { - height: 300px; - background-color: #e9ecef; - border-radius: 10px; - margin-bottom: 20px; - position: relative; - overflow: hidden; - } - .map-placeholder { - width: 100%; - height: 100%; - display: flex; - align-items: center; - justify-content: center; - flex-direction: column; - background-image: url('https://placehold.co/600x300/e9ecef/adb5bd?text=Map+View'); - background-size: cover; - background-position: center; - } - .map-pin { - position: absolute; - top: 50%; - left: 50%; - transform: translate(-50%, -100%); - color: #dc3545; - font-size: 30px; - } - .address-container { - background-color: #f8f9fa; - border-radius: 10px; - padding: 15px; - margin-bottom: 20px; - border-left: 4px solid #0d6efd; - } - .action-buttons { - display: flex; - gap: 10px; - } - .progress-container { - margin: 30px 0 20px; - } - .progress { - height: 8px; - } +body { + background-color: #f8f9fa; +} +.page-container { + max-width: 600px; + margin: 0 auto; + padding: 20px; +} +.content-card { + background-color: white; + border-radius: 15px; + box-shadow: 0 2px 10px rgba(0,0,0,0.1); + padding: 25px; + margin-bottom: 20px; +} +.logo-area { + text-align: center; + margin-bottom: 20px; +} +.logo-placeholder { + height: 50px; + max-width: 200px; + margin: 0 auto; +} +.map-container { + height: 300px; + background-color: #e9ecef; + border-radius: 10px; + margin-bottom: 20px; + position: relative; + overflow: hidden; +} +.map-placeholder { + width: 100%; + height: 100%; + display: flex; + align-items: center; + justify-content: center; + flex-direction: column; + background-image: url('https://placehold.co/600x300/e9ecef/adb5bd?text=Map+View'); + background-size: cover; + background-position: center; +} +.map-pin { + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -100%); + color: #dc3545; + font-size: 30px; +} +.address-container { + background-color: #f8f9fa; + border-radius: 10px; + padding: 15px; + margin-bottom: 20px; + border-left: 4px solid #0d6efd; +} +.action-buttons { + display: flex; + gap: 10px; +} +.progress-container { + margin: 30px 0 20px; +} +.progress { + height: 8px; +} {{end}} {{define "content"}} -
- -
- County Vector Control -
- - -
-
- Location - 1 of 4 -
-
-
-
-
- - -
-

Confirm Property Location

- - -
-
-
- -
-
- - -
-
Detected Address:
-
123 Maple Street, Riverside, CA 92501
-
- -
-

Is this the correct location of the property in question?

-
- - -
- - - - -
-
- - -
-

If you need assistance, please contact Vector Control at (555) 123-4567

-
-
- +
+ +
+ County Vector Control +
+ + +
+
+ Location + 1 of 4 +
+
+
+
+
+ + +
+

Confirm Property Location

+ + +
+
+
+ +
+
+ + +
+
Detected Address:
+
123 Maple Street, Riverside, CA 92501
+
+ +
+

Is this the correct location of the property in question?

+
+ + + +
+ + +
+

If you need assistance, please contact Vector Control at (555) 123-4567

+
+
{{end}}