From d1818b6251bc028293e8daeda9056ae0fab5d547 Mon Sep 17 00:00:00 2001 From: soukainna Date: Wed, 22 Feb 2023 11:03:33 +0100 Subject: [PATCH] add event data --- renderer/administration.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/renderer/administration.go b/renderer/administration.go index 635a811..41aee36 100644 --- a/renderer/administration.go +++ b/renderer/administration.go @@ -3,12 +3,13 @@ package renderer import ( "net/http" + agendastorage "git.coopgo.io/coopgo-platform/agenda/storage" mobilityaccountsstorage "git.coopgo.io/coopgo-platform/mobility-accounts/storage" ) const administrationMenu = "administration" -func (renderer *Renderer) Administration(w http.ResponseWriter, r *http.Request, accounts any, beneficiaries any, groups any, bookings any) { +func (renderer *Renderer) Administration(w http.ResponseWriter, r *http.Request, accounts any, beneficiaries any, groups any, bookings any, events []agendastorage.Event) { files := renderer.ThemeConfig.GetStringSlice("views.administration.home.files") state := NewState(r, renderer.ThemeConfig, administrationMenu) state.ViewState = map[string]any{ @@ -16,6 +17,7 @@ func (renderer *Renderer) Administration(w http.ResponseWriter, r *http.Request, "beneficiaries": beneficiaries, "bookings": bookings, "groups": groups, + "events": events, } renderer.Render("administration", w, r, files, state)