1 <div class="widget" id="group-sidebar">
4 <div id="sidebar-group-list">
5 {{* The list of available groups *}}
6 <ul role="menu" id="sidebar-group-ul">
7 {{foreach $groups as $group}}
8 <li role="menuitem" class="sidebar-group-li group-{{$group.id}} {{if $group.selected}}selected{{/if}}">
9 {{if ! $newgroup}}<span class="notify badge pull-right"></span>{{/if}}
11 <div class="checkbox pull-right group-checkbox ">
12 <input type="checkbox"
13 class="{{if $group.selected}}ticked{{else}}unticked {{/if}} action"
14 onclick="contactgroupChangeMember('{{$group.id}}','{{$group.cid}}');return true;"
15 {{if $group.ismember}}checked="checked"{{/if}}
17 <label for="group-{{$group.id}}"></label>
18 <div class="clearfix"></div>
22 {{* if the group is editable show a little pencil for editing *}}
23 <a id="edit-sidebar-group-element-{{$group.id}}" class="group-edit-tool pull-right" href="{{$group.edit.href}}" title="{{$edittext}}">
24 <i class="faded-icon fa fa-pencil" aria-hidden="true"></i><span class="sr-only">{{$edittext}}</span>
27 <a id="sidebar-group-element-{{$group.id}}" class="sidebar-group-element" href="{{$group.href}}">{{$group.text}}</a>
34 <div id="sidebar-new-group">
35 {{* show the input field by clicking "new group" *}}
36 <a onclick="javascript:$('#group-new-form').fadeIn('fast');return false;">{{$createtext}}</a>
37 <form id="group-new-form" action="group/new" method="post" style="display:none;">
38 <div class="form-group">
39 <input type="hidden" name="form_security_token" value="{{$form_security_token}}">
40 <input name="groupname" id="id_groupname" class="form-control input-sm" placeholder="{{$creategroup}}">
45 <div id="sidebar-edit-groups"><a href="{{$grouppage}}">{{$editgroupstext}}</a></div>
48 {{if $ungrouped}}<div id="sidebar-ungrouped"><a href="nogroup">{{$ungrouped}}</a></div>{{/if}}