]> git.mxchange.org Git - friendica.git/blob - view/templates/group_side.tpl
Merge pull request #8079 from ozero/patch-1
[friendica.git] / view / templates / group_side.tpl
1 <span id="group-sidebar-inflated" class="widget fakelink" onclick="openCloseWidget('group-sidebar', 'group-sidebar-inflated');">
2         <h3>{{$title}}</h3>
3 </span>
4 <div class="widget" id="group-sidebar">
5         <span class="fakelink" onclick="openCloseWidget('group-sidebar', 'group-sidebar-inflated');">
6                 <h3>{{$title}}</h3>
7         </span>
8
9         <div id="sidebar-group-list">
10                 <ul role="menu" id="sidebar-group-ul">
11                         {{foreach $groups as $group}}
12                                 <li role="menuitem" class="sidebar-group-li group-{{$group.id}}">
13                                         {{if ! $newgroup}}<span class="notify badge pull-right"></span>{{/if}}
14                                         {{if $group.cid}}
15                                                 <input type="checkbox"
16                                                         class="{{if $group.selected}}ticked{{else}}unticked {{/if}} action"
17                                                         onclick="return contactgroupChangeMember(this, '{{$group.id}}','{{$group.cid}}');"
18                                                         {{if $group.ismember}}checked="checked"{{/if}}
19                                                 />
20                                         {{/if}}
21                                         {{if $group.edit}}
22                                                 <a class="groupsideedit" href="{{$group.edit.href}}" title="{{$edittext}}">
23                                                         <span id="edit-sidebar-group-element-{{$group.id}}" class="group-edit-icon iconspacer small-pencil"><span class="sr-only">{{$edittext}}</span></span>
24                                                 </a>
25                                         {{/if}}
26                                         <a id="sidebar-group-element-{{$group.id}}" class="sidebar-group-element {{if $group.selected}}group-selected{{/if}}" href="{{$group.href}}">{{$group.text}}</a>
27                                 </li>
28                         {{/foreach}}
29                 </ul>
30         </div>
31
32         {{if $newgroup}}
33         <div id="sidebar-new-group">
34                 <a onclick="javascript:$('#group-new-form').fadeIn('fast');return false;">{{$createtext}}</a>
35                 <form id="group-new-form" action="group/new" method="post" style="display:none;">
36                         <input type="hidden" name="form_security_token" value="{{$form_security_token}}">
37                         <input name="groupname" id="id_groupname" placeholder="{{$creategroup}}">
38                 </form>
39         </div>
40         {{else}}
41         <div id="sidebar-edit-groups"><a href="{{$grouppage}}">{{$editgroupstext}}</a></div>
42         {{/if}}
43
44         {{if $ungrouped}}<div id="sidebar-ungrouped"><a class="{{if $ungrouped_selected}}group-selected{{/if}}" href="nogroup">{{$ungrouped}}</a></div>{{/if}}
45 </div>
46 <script>
47 initWidget('group-sidebar', 'group-sidebar-inflated');
48 </script>