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