From b6264da972fc02723518d66fc986ffdd0cb35541 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Tue, 17 Feb 2026 19:06:51 +0000 Subject: [PATCH] Add service request list page --- html/template/sync/service-request-list.html | 385 +++++++++++++++++++ sync/routes.go | 1 + sync/service-request.go | 14 + 3 files changed, 400 insertions(+) create mode 100644 html/template/sync/service-request-list.html create mode 100644 sync/service-request.go diff --git a/html/template/sync/service-request-list.html b/html/template/sync/service-request-list.html new file mode 100644 index 00000000..51c0804e --- /dev/null +++ b/html/template/sync/service-request-list.html @@ -0,0 +1,385 @@ +{{ template "sync/layout/authenticated.html" . }} + +{{ define "title" }}Service Requests{{ end }} +{{ define "extraheader" }} + +{{ end }} +{{ define "content" }} +
+
+
+
+

Service Requests

+ +
+ +
+
+
+
District Map View
+
+ + +
+
+
+
+ +
+ + + + + + +
+
+ Biting + Nuisance +
+
+ Standing + Water +
+
+ Active + Breeding +
+
+
+
+
+
+
+ +
+
+
+
+
+
Active Service Requests
+
+ + +
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CreatedLast ActionNext StepAddressPhotosTypeActions
2 hours ago2 hours ago + Schedule Appointment + 123 Main St, Anytown3 + Biting Nuisance + + + +
5 hours ago1 hour ago + Answer Question + 456 Elm St, Anytown1 + Standing Water + + + +
1 day ago3 hours agoAdd to Route789 Oak Ave, Anytown4 + Active Breeding + + + +
2 days ago6 hours agoReview101 Pine Lane, Anytown2 + Standing Water + + + +
3 days ago1 day ago + Confirm Details + 202 Maple Dr, Anytown0 + Biting Nuisance + + + +
+
+ +
+
+
+
+ +
+
+
+
+
Recently Closed Requests (Past 2 Weeks)
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
EmployeeTypeClosedAddressTime to ResolutionActions
+
+ + John Smith +
+
+ Standing Water + 1 day ago303 Cedar St, Anytown3 days + +
+
+ + Maria Garcia +
+
+ Biting Nuisance + 2 days ago404 Birch Ave, Anytown1 day + +
+
+ + Robert Johnson +
+
+ Active Breeding + 4 days ago505 Spruce Ct, Anytown5 days + +
+
+ + Sarah Lee +
+
+ Standing Water + 1 week ago606 Willow Way, Anytown2 days + +
+
+
+
+
+
+
+{{ end }} diff --git a/sync/routes.go b/sync/routes.go index 38966d3d..4289c806 100644 --- a/sync/routes.go +++ b/sync/routes.go @@ -55,6 +55,7 @@ func Router() chi.Router { r.Method("GET", "/pool/upload/{id}", auth.NewEnsureAuth(getPoolUploadByID)) r.Method("POST", "/pool/upload", auth.NewEnsureAuth(postPoolUpload)) r.Method("GET", "/radar", auth.NewEnsureAuth(getRadar)) + r.Method("GET", "/service-request", authenticatedHandler(getServiceRequestList)) r.Method("GET", "/setting", auth.NewEnsureAuth(getSetting)) r.Method("GET", "/setting/organization", auth.NewEnsureAuth(getSettingOrganization)) r.Method("GET", "/setting/integration", auth.NewEnsureAuth(getSettingIntegration)) diff --git a/sync/service-request.go b/sync/service-request.go new file mode 100644 index 00000000..f81021f2 --- /dev/null +++ b/sync/service-request.go @@ -0,0 +1,14 @@ +package sync + +import ( + "context" + + "github.com/Gleipnir-Technology/nidus-sync/db/models" +) + +type contentServiceRequestPlaceholder struct{} + +func getServiceRequestList(ctx context.Context, user *models.User) (string, interface{}, *errorWithStatus) { + content := contentServiceRequestPlaceholder{} + return "sync/service-request-list.html", content, nil +}