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

Technician Routing & Dispatch

- -
-
-

Technician Roster

-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
TechnicianWorking HoursTruck AssignmentWarrant ServiceDrone CertifiedRouting Options
-
- John Davis -
-
John Davis
-
ID: T-1001
-
-
-
7:00 AM - 3:30 PMTruck #103YesNo -
- - -
-
- - -
-
- - -
-
-
- Sarah Johnson -
-
Sarah Johnson
-
ID: T-1042
-
-
-
8:00 AM - 4:30 PMTruck #118YesYes -
- - -
-
- - -
-
- - -
-
-
- Michael Chen -
-
Michael Chen
-
ID: T-1019
-
-
-
6:30 AM - 3:00 PMTruck #107NoYes -
- - -
-
- - -
-
- - -
-
-
- Jessica Martinez -
-
Jessica Martinez
-
ID: T-1055
-
-
-
7:30 AM - 4:00 PMTruck #112YesYes -
- - -
-
- - -
-
- - -
-
-
-
-
- -
- - Calculate Routes - -
-
-{{ end }} diff --git a/html/template/sync/setting-user-list.html b/html/template/sync/setting-user-list.html index 6a652a32..5393dfcf 100644 --- a/html/template/sync/setting-user-list.html +++ b/html/template/sync/setting-user-list.html @@ -2,15 +2,6 @@ {{ define "title" }}Setting - Users{{ end }} {{ define "extraheader" }} - {{ end }} {{ define "content" }}
@@ -31,42 +22,32 @@ - - - + - - + - - - - - + - + - - - - + - + - - - - + - - - - - - - - - - diff --git a/scss/custom.scss b/scss/custom.scss index 9a653a71..63f0bf6b 100644 --- a/scss/custom.scss +++ b/scss/custom.scss @@ -56,3 +56,4 @@ $theme-colors: map-merge( @import "./sync/pool-csv-upload.scss"; @import "./sync/pool-by-id.scss"; @import "./sync/settings.scss"; +@import "./sync/settings-user-list.scss"; diff --git a/scss/sync/settings-user-list.scss b/scss/sync/settings-user-list.scss new file mode 100644 index 00000000..0fe37cbd --- /dev/null +++ b/scss/sync/settings-user-list.scss @@ -0,0 +1,19 @@ +.bg-warrant { + background-color: $warning; +} +.bg-drone { + background-color: $info; +} +.form-check-input.switch-lg { + width: 3em; + height: 1.5em; +} +.status-badge { + width: 100px; +} +.tech-photo { + width: 50px; + height: 50px; + object-fit: cover; + border-radius: 50%; +} diff --git a/sync/admin.go b/sync/admin.go new file mode 100644 index 00000000..f16cefe6 --- /dev/null +++ b/sync/admin.go @@ -0,0 +1,14 @@ +package sync + +import ( + "context" + + "github.com/Gleipnir-Technology/nidus-sync/db/models" +) + +type contentAdminDash struct{} + +func getAdminDash(ctx context.Context, user *models.User) (string, interface{}, *errorWithStatus) { + content := contentAdminDash{} + return "sync/admin-dash.html", content, nil +} diff --git a/sync/routes.go b/sync/routes.go index ca2a3a52..e94d1b31 100644 --- a/sync/routes.go +++ b/sync/routes.go @@ -23,7 +23,6 @@ func Router() chi.Router { // Mock endpoints r.Get("/mock", renderMockList) - addMock(r, "/mock/dispatch", "sync/mock/dispatch.html") addMock(r, "/mock/dispatch-results", "sync/mock/dispatch-results.html") addMock(r, "/mock/report", "sync/mock/report.html") addMock(r, "/mock/report/{code}", "sync/mock/report-detail.html")
Full NameEmail AddressUsernameUser RoleServe Warrants StatusLast LoginTags Actions
John Doejohn.doe@example.comjohndoe - - -
- + John Davis +
+
John Davis
+
Tech I Active 2023-06-15 09:45 AM
Jane Smithjane.smith@example.comjanesmith - - -
- +
+ Sarah Johnson +
+
Sarah Johnson
+
Tech III Active 2023-06-17 14:20 PM + warrant service + drone pilot +
Robert Johnsonrobert.j@example.comrobertj - - -
- + Michael Chen +
+
Michael Chen
+
Tech I - Deactivated - 2023-06-10 11:30 AM - -
Emily Wilsonemily.w@example.comemilyw - + Active -
- -
+ drone pilot
- Invited - Never -