]> git.mxchange.org Git - friendica.git/commitdiff
add $contact.change_member to the js template. At the present time we don't make...
authorrabuzarus <>
Sun, 23 Apr 2017 12:58:23 +0000 (14:58 +0200)
committerrabuzarus <>
Sun, 23 Apr 2017 12:58:23 +0000 (14:58 +0200)
view/theme/frio/templates/contact_template.tpl

index 570e0f818e966a714c0b52fc4adb74ed19c55d64..21a1594a224cfab239f43ef8008f8bab56e53afb 100644 (file)
@@ -214,6 +214,19 @@ We use this part to filter the contacts with jquery.textcomplete *}}
                                </div>
                                {/if}
 
+                               {{* The button to add or remove contacts from a contact group - group edit page *}}
+                               {if $contact.change_member}
+                               <div class="contact-group-actions pull-right nav-pills preferences">
+                                       <button type="button" class="contact-action-link btn-link" onclick="groupChangeMember({$contact.change_member.gid},{$contact.change_member.cid},'{$contact.change_member.sec_token}'); return true;" data-toggle="tooltip" title="{$contact.change_member.title}">
+                                               {if $contact.label == "members"}
+                                               <i class="fa fa-times-circle" aria-hidden="true"></i>
+                                               {elseif $contact.label == "contacts"}
+                                               <i class="fa fa-plus-circle" aria-hidden="true"></i>
+                                               {/if}
+                                       </button>
+                               </div>
+                               {/if}
+
                                {{* The contact description (e.g. Name, Network, kind of connection and so on *}}
                                <div class="contact-entry-desc">
                                        <div class="contact-entry-name" id="contact-entry-name-{$id}">