From 41d5f02879f894f0670efe3864f314a9c9bb8734 Mon Sep 17 00:00:00 2001 From: Maxime Date: Wed, 24 Apr 2024 12:49:03 +0200 Subject: [PATCH] fix mistakes --- handlers/application/silvermobi.go | 1 - renderer/silvermobi.go | 11 ++++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) 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) }