diff --git a/html/template/sync/mock/dispatch-results.html b/html/template/sync/mock/dispatch-results.html deleted file mode 100644 index 23983a28..00000000 --- a/html/template/sync/mock/dispatch-results.html +++ /dev/null @@ -1,330 +0,0 @@ -{{ template "sync/layout/base.html" . }} - -{{ define "title" }}Data Entry{{ end }} -{{ define "extraheader" }} - - -{{ end }} -{{ define "content" }} -
-

Route Calculation Results

- - Edit Parameters - -
- - -
-
-

Route Map

-
-
-
-
- -

Interactive Map View

-

- Routes are color-coded by technician assignment -

-
-
-
-
- - -
-
- -
-

Coverage Projection

-

- If every day were like today, all pools would be complete on - October 27, 2023 -

-
-
-
- - -
-
-

Route Summary

- -
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SelectRouteTechnicianCold Call PoolsDrone InspectionsService CallsWarrantsEst. TimeActions
-
- -
-
-
A
-
-
- John Davis - John Davis -
-
120526h 15m - -
-
- -
-
-
B
-
-
- Sarah Johnson - Sarah Johnson -
-
83417h 30m - -
-
- -
-
-
C
-
-
- Michael Chen - Michael Chen -
-
104307h 45m - -
-
- -
-
-
D
-
-
- Jessica Martinez - Jessica Martinez -
-
142638h 00m - -
-
-
-
- - -
- - Back to Parameters - - - Approve & Dispatch - -
- - - -{{ end }} diff --git a/html/template/sync/radar.html b/html/template/sync/radar.html index a34857ba..aac0ebe8 100644 --- a/html/template/sync/radar.html +++ b/html/template/sync/radar.html @@ -15,174 +15,323 @@ }); } window.addEventListener("load", onLoad); + document.addEventListener("DOMContentLoaded", function () { + const checkboxes = document.querySelectorAll(".route-select"); + const switchBtn = document.getElementById("switchRoutesBtn"); + + // Enable/disable switch button based on selection + checkboxes.forEach((checkbox) => { + checkbox.addEventListener("change", () => { + const checkedBoxes = document.querySelectorAll( + ".route-select:checked", + ); + switchBtn.disabled = checkedBoxes.length !== 2; + }); + }); + + // For demonstration purposes + switchBtn.addEventListener("click", function () { + const selectedRoutes = Array.from( + document.querySelectorAll(".route-select:checked"), + ).map((cb) => cb.value); + alert(`Switching routes ${selectedRoutes[0]} and ${selectedRoutes[1]}`); + // In a real application, this would trigger the route switching logic + }); + }); + {{ end }} {{ define "content" }} -
-

Field Operations Radar

+
+

Route Calculation Results

+ + Edit Parameters + +
- -
-
-
Technician Locations
-
-
-
-

Map View - Technician Locations

+ +
+
+

Route Map

+
+
+
+
+ +

Interactive Map View

+

+ Routes are color-coded by technician assignment +

+
- -
-
-
Field Technicians Status
- 12 Active Technicians + +
+
+ +
+

Coverage Projection

+

+ If every day were like today, all pools would be complete on + October 27, 2023 +

-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
TechnicianLast UpdateCurrent ActivityTime RemainingNext ActivitySchedule
-
-
- -
-
Sarah Johnson
-
-
2 min ago - At Site - 15 minLakeside Park - - - -
-
-
- -
-
Michael Torres
-
-
7 min ago - On Break - 8 minHenderson Marsh - - - -
-
-
- -
-
Lisa Williams
-
-
12 min ago - In Transit - 5 minWestside Creek - - - -
-
-
- -
-
Robert Chen
-
-
34 min ago - Unknown - --Oak Grove Pond - - - -
-
-
- -
-
Emily Nguyen
-
-
5 min ago - At Site - 23 minHarbor Point - - - -
-
-
- -
-
James Wilson
-
-
Just now - In Transit - 12 minMeadow Heights - - - -
+
+
+ + +
+
+

Route Summary

+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SelectRouteTechnicianCold Call PoolsDrone InspectionsService CallsWarrantsEst. TimeActions
+
+ +
+
+
A
+
+
+ John Davis + John Davis +
+
120526h 15m + +
+
+ +
+
+
B
+
+
+ Sarah Johnson + Sarah Johnson +
+
83417h 30m + +
+
+ +
+
+
C
+
+
+ Michael Chen + Michael Chen +
+
104307h 45m + +
+
+ +
+
+
D
+
+
+ Jessica Martinez + Jessica Martinez +
+
142638h 00m + +
+
+
+
+ + + + + +