parcoursmob/renderer/silvermobi.go

26 lines
558 B
Go

package renderer
import (
"net/http"
)
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", w, r, files, state)
}