From 024cab94f16e3615ac8718743af2d417b8e46a81 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Wed, 20 May 2020 13:40:52 -0400 Subject: alps theme: add layout for calendar event update --- plugins/caldav/routes.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins/caldav') diff --git a/plugins/caldav/routes.go b/plugins/caldav/routes.go index f9e6bd5..fd3b219 100644 --- a/plugins/caldav/routes.go +++ b/plugins/caldav/routes.go @@ -38,6 +38,7 @@ type EventRenderData struct { type UpdateEventRenderData struct { alps.BaseRenderData + Calendar *caldav.Calendar CalendarObject *caldav.CalendarObject // nil if creating a new contact Event *ical.Event } @@ -313,6 +314,7 @@ func registerRoutes(p *alps.GoPlugin, u *url.URL) { return ctx.Render(http.StatusOK, "update-event.html", &UpdateEventRenderData{ BaseRenderData: *alps.NewBaseRenderData(ctx), + Calendar: calendar, CalendarObject: co, Event: event, }) -- cgit v1.2.3