fix mistakes
This commit is contained in:
parent
cc27f9ef1d
commit
41d5f02879
|
@ -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")
|
||||
|
|
|
@ -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)
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue