aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2020-05-20 10:04:54 -0400
committerSimon Ser <contact@emersion.fr>2020-05-20 17:47:52 +0200
commit50cb8bef77cf2a6c2feed3a25af4871b2e6792ff (patch)
treea6ef6b2ac02471c8525015e2e320d95c7968893e /plugins
parente4e410de1e3129fe7832e2bbe6326719c3e4d813 (diff)
downloadalps-50cb8bef77cf2a6c2feed3a25af4871b2e6792ff.tar.gz
alps-50cb8bef77cf2a6c2feed3a25af4871b2e6792ff.zip
alps theme: add contact edit/create
Diffstat (limited to 'plugins')
-rw-r--r--plugins/carddav/routes.go2
1 files changed, 2 insertions, 0 deletions
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,
})