2013-04-23 13:47:57 +02:00
|
|
|
<div class="widget" id="group-sidebar">
|
|
|
|
<h3>{{$title}}</h3>
|
|
|
|
|
|
|
|
<div id="sidebar-group-list">
|
2015-08-08 17:33:43 +02:00
|
|
|
<ul role="menu" id="sidebar-group-ul">
|
2013-04-23 13:47:57 +02:00
|
|
|
{{foreach $groups as $group}}
|
2015-11-08 18:02:04 +01:00
|
|
|
<li role="menuitem" class="sidebar-group-li group-{{$group.id}}">
|
2013-04-23 13:47:57 +02:00
|
|
|
{{if $group.cid}}
|
2015-11-08 18:02:04 +01:00
|
|
|
<input type="checkbox"
|
|
|
|
class="{{if $group.selected}}ticked{{else}}unticked {{/if}} action"
|
2013-04-23 13:47:57 +02:00
|
|
|
onclick="contactgroupChangeMember('{{$group.id}}','{{$group.cid}}');return true;"
|
|
|
|
{{if $group.ismember}}checked="checked"{{/if}}
|
|
|
|
/>
|
2015-11-08 18:02:04 +01:00
|
|
|
{{/if}}
|
2013-04-23 13:47:57 +02:00
|
|
|
{{if $group.edit}}
|
2015-08-08 22:30:43 +02:00
|
|
|
<a class="groupsideedit" href="{{$group.edit.href}}" title="{{$edittext}}"><span id="edit-sidebar-group-element-{{$group.id}}" class="group-edit-icon iconspacer small-pencil"><span class="sr-only">{{$edittext}}</span></span></a>
|
2013-04-23 13:47:57 +02:00
|
|
|
{{/if}}
|
|
|
|
<a id="sidebar-group-element-{{$group.id}}" class="sidebar-group-element {{if $group.selected}}group-selected{{/if}}" href="{{$group.href}}">{{$group.text}}</a>
|
2015-11-08 18:02:04 +01:00
|
|
|
<span class="notify"></span>
|
2013-04-23 13:47:57 +02:00
|
|
|
</li>
|
|
|
|
{{/foreach}}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div id="sidebar-new-group">
|
2015-05-12 14:09:51 +02:00
|
|
|
<a onclick="javascript:$('#group-new-form').fadeIn('fast');return false;">{{$createtext}}</a>
|
|
|
|
<form id="group-new-form" action="group/new" method="post" style="display:none;">
|
|
|
|
<input type="hidden" name="form_security_token" value="{{$form_security_token}}">
|
|
|
|
<input name="groupname" id="id_groupname" placeholder="{{$creategroup}}">
|
|
|
|
</form>
|
2013-04-23 13:47:57 +02:00
|
|
|
</div>
|
|
|
|
{{if $ungrouped}}
|
|
|
|
<div id="sidebar-ungrouped">
|
|
|
|
<a href="nogroup">{{$ungrouped}}</a>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|