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"]
|
subscribeid := vars["subscribeid"]
|
||||||
fmt.Println(eventid)
|
fmt.Println(eventid)
|
||||||
fmt.Println(subscribeid)
|
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//////////////////////////////////
|
//////////////////////////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")
|
files := renderer.ThemeConfig.GetStringSlice("views.agenda.delete_subscriber.files")
|
||||||
state := NewState(r, renderer.ThemeConfig, agendaMenu)
|
state := NewState(r, renderer.ThemeConfig, agendaMenu)
|
||||||
// state.ViewState = map[string]any{
|
state.ViewState = map[string]any{
|
||||||
// "event": event,
|
"eventid": eventid,
|
||||||
// "group": group,
|
}
|
||||||
// "subscribers": subscribers,
|
|
||||||
// "beneficiaries": beneficiaries,
|
|
||||||
// }
|
|
||||||
|
|
||||||
renderer.Render("agenda delete subscriber", w, r, files, state)
|
renderer.Render("agenda delete subscriber", w, r, files, state)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue