From d27a627c4f65ca67bcc0f46fb830368c713043cd Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Mon, 29 Feb 2016 22:01:13 +0100 Subject: simplify profile edit button(s) and make it useful for multiple profiles --- view/tpl/profile_advanced.tpl | 15 +++++++++++++-- view/tpl/profile_vcard.tpl | 18 ++++++++---------- 2 files changed, 21 insertions(+), 12 deletions(-) (limited to 'view') diff --git a/view/tpl/profile_advanced.tpl b/view/tpl/profile_advanced.tpl index 780626cf9..3d09b762d 100755 --- a/view/tpl/profile_advanced.tpl +++ b/view/tpl/profile_advanced.tpl @@ -12,8 +12,19 @@ {{/if}} - {{if $edit}} -  {{$edit.label}} + {{if $editmenu.multi}} +  {{$editmenu.edit.3}} + + {{else}} +  {{$editmenu.edit.3}} {{/if}}

{{$title}}

diff --git a/view/tpl/profile_vcard.tpl b/view/tpl/profile_vcard.tpl index 56c262564..3c3bfda5a 100755 --- a/view/tpl/profile_vcard.tpl +++ b/view/tpl/profile_vcard.tpl @@ -6,19 +6,21 @@
{{$connect}}
{{/if}} {{if ! $zcard}} - {{if $profile.edit}} + {{if $editmenu.multi}} + {{else}} + {{/if}} {{/if}} @@ -27,9 +29,6 @@ {{if $reddress}}
{{$profile.reddress}}
{{/if}} {{/if}} {{if $pdesc}}
{{$profile.pdesc}}
{{/if}} - - - {{if $location}}
{{$location}}
@@ -45,7 +44,6 @@ {{/if}} {{if $gender}}
{{$gender}}
{{$profile.gender}}
{{/if}} - {{if $marital}}
{{$marital}}
{{$profile.marital}}
{{/if}} -- cgit v1.2.3