aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2020-05-20 13:40:52 -0400
committerSimon Ser <contact@emersion.fr>2020-05-20 22:06:32 +0200
commit024cab94f16e3615ac8718743af2d417b8e46a81 (patch)
treefa216e9a6245a26e99c94a053bb067330159d37a /plugins
parent811891134ee9d4da5a217a670ac5a2dcd0202059 (diff)
downloadalps-024cab94f16e3615ac8718743af2d417b8e46a81.tar.gz
alps-024cab94f16e3615ac8718743af2d417b8e46a81.zip
alps theme: add layout for calendar event update
Diffstat (limited to 'plugins')
-rw-r--r--plugins/caldav/routes.go2
1 files changed, 2 insertions, 0 deletions
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,
})