From 50cb8bef77cf2a6c2feed3a25af4871b2e6792ff Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Wed, 20 May 2020 10:04:54 -0400 Subject: alps theme: add contact edit/create --- plugins/carddav/routes.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins') diff --git a/plugins/carddav/routes.go b/plugins/carddav/routes.go index ea6030d..368f129 100644 --- a/plugins/carddav/routes.go +++ b/plugins/carddav/routes.go @@ -29,6 +29,7 @@ type AddressObjectRenderData struct { type UpdateAddressObjectRenderData struct { alps.BaseRenderData + AddressBook *carddav.AddressBook AddressObject *carddav.AddressObject // nil if creating a new contact Card vcard.Card } @@ -203,6 +204,7 @@ func registerRoutes(p *plugin) { return ctx.Render(http.StatusOK, "update-address-object.html", &UpdateAddressObjectRenderData{ BaseRenderData: *alps.NewBaseRenderData(ctx), + AddressBook: addressBook, AddressObject: ao, Card: card, }) -- cgit v1.2.3