store eventid and subid

This commit is contained in:
soukainna 2023-02-01 11:51:46 +01:00
parent 62f64747c3
commit 56c1b45f45
2 changed files with 5 additions and 8 deletions

View File

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

View File

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