store eventid and subid
This commit is contained in:
parent
62f64747c3
commit
56c1b45f45
|
@ -338,7 +338,7 @@ func (h *ApplicationHandler) AgendaDeleteSubscribeEvent(w http.ResponseWriter, r
|
|||
subscribeid := vars["subscribeid"]
|
||||
fmt.Println(eventid)
|
||||
fmt.Println(subscribeid)
|
||||
h.Renderer.AgendaDeleteSubscribeEvent(w, r)
|
||||
h.Renderer.AgendaDeleteSubscribeEvent(w, r, eventid)
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////
|
||||
|
|
|
@ -40,15 +40,12 @@ func (renderer *Renderer) AgendaDisplayEvent(w http.ResponseWriter, r *http.Requ
|
|||
}
|
||||
|
||||
//////////////////////////DElete subscriber//////////////////////////////////
|
||||
func (renderer *Renderer) AgendaDeleteSubscribeEvent(w http.ResponseWriter, r *http.Request) {
|
||||
func (renderer *Renderer) AgendaDeleteSubscribeEvent(w http.ResponseWriter, r *http.Request, eventid string) {
|
||||
files := renderer.ThemeConfig.GetStringSlice("views.agenda.delete_subscriber.files")
|
||||
state := NewState(r, renderer.ThemeConfig, agendaMenu)
|
||||
// state.ViewState = map[string]any{
|
||||
// "event": event,
|
||||
// "group": group,
|
||||
// "subscribers": subscribers,
|
||||
// "beneficiaries": beneficiaries,
|
||||
// }
|
||||
state.ViewState = map[string]any{
|
||||
"eventid": eventid,
|
||||
}
|
||||
|
||||
renderer.Render("agenda delete subscriber", w, r, files, state)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue