2015-06-11 18:57:00 +03:00
|
|
|
<ul id="usergrouplist" data-sort-groups="<?php p($_['sortGroups']); ?>">
|
2014-02-19 19:53:29 +04:00
|
|
|
<!-- Add new group -->
|
2016-10-14 18:07:14 +03:00
|
|
|
<?php if ($_['isAdmin']) { ?>
|
2017-10-19 11:29:48 +03:00
|
|
|
<li id="newgroup-entry">
|
|
|
|
<a href="#" class="icon-add" id="newgroup-init"><?php p($l->t('Add group'))?></a>
|
|
|
|
<div class="app-navigation-entry-edit" id="newgroup-form">
|
|
|
|
<form>
|
|
|
|
<input type="text" id="newgroupname" placeholder="<?php p($l->t('Add group'))?>">
|
|
|
|
<input type="submit" value="" class="icon-checkmark">
|
|
|
|
</form>
|
|
|
|
</div>
|
2014-02-25 14:09:01 +04:00
|
|
|
</li>
|
2016-10-14 18:07:14 +03:00
|
|
|
<?php } ?>
|
2014-02-19 19:53:29 +04:00
|
|
|
<!-- Everyone -->
|
2014-08-29 19:27:23 +04:00
|
|
|
<li id="everyonegroup" data-gid="_everyone" data-usercount="" class="isgroup">
|
2014-02-23 01:28:44 +04:00
|
|
|
<a href="#">
|
2014-06-02 19:32:47 +04:00
|
|
|
<span class="groupname">
|
2014-02-23 01:28:44 +04:00
|
|
|
<?php p($l->t('Everyone')); ?>
|
|
|
|
</span>
|
|
|
|
</a>
|
2017-10-19 11:29:48 +03:00
|
|
|
<div class="app-navigation-entry-utils">
|
|
|
|
<ul>
|
|
|
|
<li class="usercount app-navigation-entry-utils-counter" id="everyonecount"></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2014-02-19 19:53:29 +04:00
|
|
|
</li>
|
|
|
|
|
|
|
|
<!-- The Admin Group -->
|
|
|
|
<?php foreach($_["adminGroup"] as $adminGroup): ?>
|
2014-07-05 03:21:18 +04:00
|
|
|
<li data-gid="admin" data-usercount="<?php if($adminGroup['usercount'] > 0) { p($adminGroup['usercount']); } ?>" class="isgroup">
|
2014-05-09 01:38:29 +04:00
|
|
|
<a href="#"><span class="groupname"><?php p($l->t('Admins')); ?></span></a>
|
2017-10-16 19:00:56 +03:00
|
|
|
<div class="app-navigation-entry-utils">
|
|
|
|
<ul>
|
|
|
|
<li class="app-navigation-entry-utils-counter"><?php if($adminGroup['usercount'] > 0) { p($adminGroup['usercount']); } ?></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2014-02-19 19:53:29 +04:00
|
|
|
</li>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
|
2016-07-08 14:22:34 +03:00
|
|
|
<!-- Disabled Users -->
|
|
|
|
<?php $disabledUsersGroup = $_["disabledUsersGroup"] ?>
|
2016-09-12 17:16:20 +03:00
|
|
|
<li data-gid="_disabledUsers" data-usercount="<?php if($disabledUsersGroup['usercount'] > 0) { p($disabledUsersGroup['usercount']); } ?>" class="isgroup">
|
2016-07-08 14:22:34 +03:00
|
|
|
<a href="#"><span class="groupname"><?php p($l->t('Disabled')); ?></span></a>
|
2017-10-16 19:00:56 +03:00
|
|
|
<div class="app-navigation-entry-utils">
|
|
|
|
<ul>
|
|
|
|
<li class="app-navigation-entry-utils-counter"><?php if($disabledUsersGroup['usercount'] > 0) { p($disabledUsersGroup['usercount']); } ?></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2016-07-08 14:22:34 +03:00
|
|
|
</li>
|
|
|
|
|
2014-02-19 19:53:29 +04:00
|
|
|
<!--List of Groups-->
|
|
|
|
<?php foreach($_["groups"] as $group): ?>
|
2014-05-09 01:38:29 +04:00
|
|
|
<li data-gid="<?php p($group['name']) ?>" data-usercount="<?php p($group['usercount']) ?>" class="isgroup">
|
|
|
|
<a href="#" class="dorename">
|
|
|
|
<span class="groupname"><?php p($group['name']); ?></span>
|
2014-02-23 01:28:44 +04:00
|
|
|
</a>
|
2017-10-16 19:00:56 +03:00
|
|
|
<div class="app-navigation-entry-utils">
|
|
|
|
<ul>
|
2017-10-19 12:41:53 +03:00
|
|
|
<li class="app-navigation-entry-utils-counter"><?php if($group['usercount'] > 0) { p($group['usercount']); } ?></li>
|
2017-10-16 19:00:56 +03:00
|
|
|
<?php if($_['isAdmin']): ?>
|
|
|
|
<li class="app-navigation-entry-utils-menu-button delete">
|
|
|
|
<button class="icon-delete"></button>
|
|
|
|
</li>
|
|
|
|
<?php endif; ?>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2014-02-19 19:53:29 +04:00
|
|
|
</li>
|
|
|
|
<?php endforeach; ?>
|
2014-05-13 17:31:11 +04:00
|
|
|
</ul>
|