add event data
This commit is contained in:
parent
fa065f2a43
commit
d1818b6251
|
@ -3,12 +3,13 @@ package renderer
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
|
agendastorage "git.coopgo.io/coopgo-platform/agenda/storage"
|
||||||
mobilityaccountsstorage "git.coopgo.io/coopgo-platform/mobility-accounts/storage"
|
mobilityaccountsstorage "git.coopgo.io/coopgo-platform/mobility-accounts/storage"
|
||||||
)
|
)
|
||||||
|
|
||||||
const administrationMenu = "administration"
|
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")
|
files := renderer.ThemeConfig.GetStringSlice("views.administration.home.files")
|
||||||
state := NewState(r, renderer.ThemeConfig, administrationMenu)
|
state := NewState(r, renderer.ThemeConfig, administrationMenu)
|
||||||
state.ViewState = map[string]any{
|
state.ViewState = map[string]any{
|
||||||
|
@ -16,6 +17,7 @@ func (renderer *Renderer) Administration(w http.ResponseWriter, r *http.Request,
|
||||||
"beneficiaries": beneficiaries,
|
"beneficiaries": beneficiaries,
|
||||||
"bookings": bookings,
|
"bookings": bookings,
|
||||||
"groups": groups,
|
"groups": groups,
|
||||||
|
"events": events,
|
||||||
}
|
}
|
||||||
|
|
||||||
renderer.Render("administration", w, r, files, state)
|
renderer.Render("administration", w, r, files, state)
|
||||||
|
|
Loading…
Reference in New Issue