1 <div class="widget" id="group-sidebar">
2 <div id="sidebar-group-header">
5 <a class="group-edit-tool pull-right widget-action faded-icon" id="sidebar-edit-group" href="{{$grouppage}}" data-toggle="tooltip" title="{{$editgroupstext}}">
6 <i class="fa fa-pencil" aria-hidden="true"></i>
9 <a class="group-edit-tool pull-right widget-action faded-icon" id="sidebar-new-group" onclick="javascript:$('#group-new-form').fadeIn('fast');" data-toggle="tooltip" title="{{$createtext}}">
10 <i class="fa fa-plus" aria-hidden="true"></i>
12 <form id="group-new-form" action="group/new" method="post" style="display:none;">
13 <div class="form-group">
14 <input type="hidden" name="form_security_token" value="{{$form_security_token}}">
15 <input name="groupname" id="id_groupname" class="form-control input-sm" placeholder="{{$creategroup}}">
20 <div id="sidebar-group-list">
21 {{* The list of available groups *}}
22 <ul role="menu" id="sidebar-group-ul">
23 {{foreach $groups as $group}}
24 <li role="menuitem" class="sidebar-group-li group-{{$group.id}} {{if $group.selected}}selected{{/if}}">
25 {{if ! $newgroup}}<span class="notify badge pull-right"></span>{{/if}}
27 <div class="checkbox pull-right group-checkbox ">
28 <input type="checkbox"
29 id="sidebar-group-checkbox-{{$group.id}}"
30 class="{{if $group.selected}}ticked{{else}}unticked {{/if}} action"
31 onclick="contactgroupChangeMember('{{$group.id}}','{{$group.cid}}');return true;"
32 {{if $group.ismember}}checked="checked"{{/if}}
33 aria-checked="{{if $group.ismember}}true{{else}}false{{/if}}"
35 <label for="sidebar-group-checkbox-{{$group.id}}"></label>
36 <div class="clearfix"></div>
40 {{* if the group is editable show a little pencil for editing *}}
41 <a id="edit-sidebar-group-element-{{$group.id}}" class="group-edit-tool pull-right faded-icon" href="{{$group.edit.href}}" data-toggle="tooltip" title="{{$edittext}}">
42 <i class="fa fa-pencil" aria-hidden="true"></i>
45 <a id="sidebar-group-element-{{$group.id}}" class="sidebar-group-element" href="{{$group.href}}">{{$group.text}}</a>
49 {{if $ungrouped}}<li class="{{if $ungrouped_selected}}selected{{/if}} sidebar-group-li" id="sidebar-ungrouped"><a href="nogroup">{{$ungrouped}}</a></li>{{/if}}