Skip to content

Commit

Permalink
admin dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
Pomog committed Dec 26, 2023
1 parent 1a162eb commit 850e4e5
Show file tree
Hide file tree
Showing 161 changed files with 40,011 additions and 5 deletions.
7 changes: 4 additions & 3 deletions internal/handlers/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -510,13 +510,14 @@ func (m *Repository) AdminDashBoard(w http.ResponseWriter, r *http.Request) {
}

func (m *Repository) AdminNewReservations(w http.ResponseWriter, r *http.Request) {
render.Template(w, r, "admin-new-reservations.layout.tmpl", &models.TemplateData{})
fmt.Println("inside AdminNewReservations")
render.Template(w, r, "admin-new-reservations.page.tmpl", &models.TemplateData{})
}

func (m *Repository) AdminAllReservations(w http.ResponseWriter, r *http.Request) {
render.Template(w, r, "admin-all-reservations.layout.tmpl", &models.TemplateData{})
render.Template(w, r, "admin-all-reservations.page.tmpl", &models.TemplateData{})
}

func (m *Repository) AdminCalendarReservations(w http.ResponseWriter, r *http.Request) {
render.Template(w, r, "admin-reservations-calendar.layout.tmpl", &models.TemplateData{})
render.Template(w, r, "admin-reservations-calendar.page.tmpl", &models.TemplateData{})
}
Binary file added static/admin/.DS_Store
Binary file not shown.
Binary file added static/admin/css/.DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions static/admin/css/maps/style.css.map

Large diffs are not rendered by default.

Loading

0 comments on commit 850e4e5

Please sign in to comment.