fix mistakes

This commit is contained in:
Maxime 2024-04-24 12:49:03 +02:00
parent cc27f9ef1d
commit 41d5f02879
2 changed files with 10 additions and 2 deletions

View File

@ -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")

View File

@ -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)
}