2020-01-11 03:41:14 -05:00
|
|
|
<span id="group-sidebar-inflated" class="widget fakelink" onclick="openCloseWidget('group-sidebar', 'group-sidebar-inflated');">
|
|
|
|
<h3>{{$title}}</h3>
|
|
|
|
</span>
|
2016-06-06 19:28:38 -04:00
|
|
|
<div class="widget" id="group-sidebar">
|
2023-01-17 13:36:36 -05:00
|
|
|
<div id="sidebar-group-header" class="sidebar-widget-header">
|
2020-01-11 03:41:14 -05:00
|
|
|
<span class="fakelink" onclick="openCloseWidget('group-sidebar', 'group-sidebar-inflated');">
|
|
|
|
<h3>{{$title}}</h3>
|
|
|
|
</span>
|
2018-08-11 07:41:55 -04:00
|
|
|
{{if ! $newgroup}}
|
|
|
|
<a class="group-edit-tool pull-right widget-action faded-icon" id="sidebar-edit-group" href="{{$grouppage}}" data-toggle="tooltip" title="{{$editgroupstext}}">
|
|
|
|
<i class="fa fa-pencil" aria-hidden="true"></i>
|
|
|
|
</a>
|
|
|
|
{{else}}
|
|
|
|
<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}}">
|
|
|
|
<i class="fa fa-plus" aria-hidden="true"></i>
|
|
|
|
</a>
|
|
|
|
<form id="group-new-form" action="group/new" method="post" style="display:none;">
|
|
|
|
<div class="form-group">
|
|
|
|
<input type="hidden" name="form_security_token" value="{{$form_security_token}}">
|
|
|
|
<input name="groupname" id="id_groupname" class="form-control input-sm" placeholder="{{$creategroup}}">
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
{{/if}}
|
2018-07-09 18:36:50 -04:00
|
|
|
</div>
|
2023-01-17 13:36:36 -05:00
|
|
|
<div id="sidebar-group-list" class="sidebar-widget-list">
|
2016-06-06 19:28:38 -04:00
|
|
|
{{* The list of available groups *}}
|
|
|
|
<ul role="menu" id="sidebar-group-ul">
|
|
|
|
{{foreach $groups as $group}}
|
|
|
|
<li role="menuitem" class="sidebar-group-li group-{{$group.id}} {{if $group.selected}}selected{{/if}}">
|
|
|
|
{{if ! $newgroup}}<span class="notify badge pull-right"></span>{{/if}}
|
|
|
|
{{if $group.cid}}
|
|
|
|
<div class="checkbox pull-right group-checkbox ">
|
|
|
|
<input type="checkbox"
|
2017-10-20 09:21:42 -04:00
|
|
|
id="sidebar-group-checkbox-{{$group.id}}"
|
2016-06-06 19:28:38 -04:00
|
|
|
class="{{if $group.selected}}ticked{{else}}unticked {{/if}} action"
|
2019-02-23 15:36:06 -05:00
|
|
|
onclick="return contactgroupChangeMember(this, '{{$group.id}}','{{$group.cid}}');"
|
2016-06-06 19:28:38 -04:00
|
|
|
{{if $group.ismember}}checked="checked"{{/if}}
|
2017-01-03 11:38:08 -05:00
|
|
|
aria-checked="{{if $group.ismember}}true{{else}}false{{/if}}"
|
2016-06-06 19:28:38 -04:00
|
|
|
/>
|
2017-10-20 09:21:42 -04:00
|
|
|
<label for="sidebar-group-checkbox-{{$group.id}}"></label>
|
2016-06-06 19:28:38 -04:00
|
|
|
<div class="clearfix"></div>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
{{if $group.edit}}
|
|
|
|
{{* if the group is editable show a little pencil for editing *}}
|
2018-08-11 07:41:55 -04:00
|
|
|
<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}}">
|
|
|
|
<i class="fa fa-pencil" aria-hidden="true"></i>
|
2016-06-06 19:28:38 -04:00
|
|
|
</a>
|
|
|
|
{{/if}}
|
|
|
|
<a id="sidebar-group-element-{{$group.id}}" class="sidebar-group-element" href="{{$group.href}}">{{$group.text}}</a>
|
|
|
|
</li>
|
|
|
|
{{/foreach}}
|
2018-07-09 18:36:50 -04:00
|
|
|
|
|
|
|
{{if $ungrouped}}<li class="{{if $ungrouped_selected}}selected{{/if}} sidebar-group-li" id="sidebar-ungrouped"><a href="nogroup">{{$ungrouped}}</a></li>{{/if}}
|
2016-06-06 19:28:38 -04:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-01-11 03:41:14 -05:00
|
|
|
<script>
|
|
|
|
initWidget('group-sidebar', 'group-sidebar-inflated');
|
|
|
|
</script>
|