diff --git a/handlers/application/silvermobi.go b/handlers/application/silvermobi.go index 21e986e..9671b38 100644 --- a/handlers/application/silvermobi.go +++ b/handlers/application/silvermobi.go @@ -5,7 +5,6 @@ import ( "net/http" ) - func (h *ApplicationHandler) SilvermobiBookingList(w http.ResponseWriter, r *http.Request ) { h.Renderer.SilvermobiBookingList(w, r) fmt.Println("SilverBookingR") diff --git a/renderer/silvermobi.go b/renderer/silvermobi.go index df5eb48..6e724f3 100644 --- a/renderer/silvermobi.go +++ b/renderer/silvermobi.go @@ -10,7 +10,16 @@ const silvermobiMenu = "silvermobi" func (renderer *Renderer) SilvermobiBookingList( w http.ResponseWriter, r *http.Request) { files:= renderer.ThemeConfig.GetStringSlice("views.silvermobi.list.files") state := NewState(r, renderer.ThemeConfig, silvermobiMenu) + state.ViewState = map[string]any{ + "beneficiaries": map[string]any{ + "count": "nbaccounts", + "latest": "accounts", + }, + "count_members": "count_members", + "events": "events", + } - renderer.Render("silvermobi settings", w, r, files, state) + + renderer.Render("silvermobi", w, r, files, state) }