From 6ff462abf39b76fb8ad6f5734c058e9b19dbc774 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Tue, 20 Dec 2016 17:19:53 -0800 Subject: more abook_vcard --- Zotlabs/Module/Connedit.php | 2 +- view/tpl/abook_edit.tpl | 203 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 204 insertions(+), 1 deletion(-) diff --git a/Zotlabs/Module/Connedit.php b/Zotlabs/Module/Connedit.php index 3aaa2a874..aac42abb9 100644 --- a/Zotlabs/Module/Connedit.php +++ b/Zotlabs/Module/Connedit.php @@ -90,7 +90,7 @@ class Connedit extends \Zotlabs\Web\Controller { $vcard = (($vc) ? \Sabre\VObject\Reader::read($vc) : null); $serialised_vcard = update_vcard($_REQUEST,$vcard); if($serialised_vcard) - set_abconfig(local_channel(),$orig_record['abook_xchan'],'system','vcard',$serialised_vcard); + set_abconfig(local_channel(),$orig_record[0]['abook_xchan'],'system','vcard',$serialised_vcard); if(intval($orig_record[0]['abook_self'])) { $autoperms = intval($_POST['autoperms']); diff --git a/view/tpl/abook_edit.tpl b/view/tpl/abook_edit.tpl index c36eca6ff..0b18e5d4c 100755 --- a/view/tpl/abook_edit.tpl +++ b/view/tpl/abook_edit.tpl @@ -360,7 +360,210 @@ $(document).ready(function() { + + +
+ +
+ + + + + + + + +
+
+ +
+ {{if $vcard.photo}}{{else}}
{{/if}} + + {{if $vcard.fn}}{{$vcard.fn}}{{/if}} + {{if $vcard.emails.0.address}}{{/if}} + {{if $vcard.tels.0}}{{/if}} + + +
+
+ +
+
+ {{if $vcard.org}} +
+ + +
+ {{/if}} +
+
+ +
+
+ {{if $vcard.title}} +
+ + +
+ {{/if}} +
+
+ + +
+
+ {{if $vcard.tels}} + {{foreach $vcard.tels as $tel}} +
+ + + +
+ {{/foreach}} + {{/if}} +
+
+ + +
+
+ {{if $vcard.emails}} + {{foreach $vcard.emails as $email}} +
+ + + +
+ {{/foreach}} + {{/if}} +
+
+ +
+
+ {{if $vcard.impps}} + {{foreach $vcard.impps as $impp}} +
+ + + +
+ {{/foreach}} + {{/if}} +
+
+ +
+
+ {{if $vcard.urls}} + {{foreach $vcard.urls as $url}} +
+ + + +
+ {{/foreach}} + {{/if}} +
+
+ +
+
+ {{if $vcard.adrs}} + {{foreach $vcard.adrs as $adr}} +
+
+ + + +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ {{/foreach}} + {{/if}} +
+
+ +
+
+ {{if $vcard.note}} + + + + {{/if}} +
+
+ + + + + + + + + + + +
-- cgit v1.2.3