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 -->
|
2014-02-25 14:09:01 +04:00
|
|
|
<li id="newgroup-init">
|
|
|
|
<a href="#">
|
2016-07-28 12:30:36 +03:00
|
|
|
<span><?php p($l->t('Add group'))?></span>
|
2014-02-25 14:09:01 +04:00
|
|
|
</a>
|
|
|
|
</li>
|
2014-07-17 15:13:03 +04:00
|
|
|
<li id="newgroup-form" style="display: none">
|
2014-02-25 14:09:01 +04:00
|
|
|
<form>
|
2016-10-18 13:14:38 +03:00
|
|
|
<input type="text" id="newgroupname" placeholder="<?php p($l->t('Group name')); ?> …" />
|
2016-06-23 14:39:28 +03:00
|
|
|
<input type="submit" class="button icon-add" value="" />
|
2014-02-19 19:53:29 +04:00
|
|
|
</form>
|
|
|
|
</li>
|
|
|
|
<!-- 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>
|
2014-04-15 02:13:23 +04:00
|
|
|
<span class="utils">
|
2014-08-29 19:27:23 +04:00
|
|
|
<span class="usercount" id="everyonecount">
|
|
|
|
|
2014-06-23 23:20:36 +04:00
|
|
|
</span>
|
2014-04-15 02:13:23 +04:00
|
|
|
</span>
|
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>
|
2014-02-19 19:53:29 +04:00
|
|
|
<span class="utils">
|
2014-04-17 20:13:35 +04:00
|
|
|
<span class="usercount"><?php if($adminGroup['usercount'] > 0) { p($adminGroup['usercount']); } ?></span>
|
2014-02-19 19:53:29 +04:00
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
|
|
|
|
<!--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>
|
2014-02-19 19:53:29 +04:00
|
|
|
<span class="utils">
|
2014-04-17 20:13:35 +04:00
|
|
|
<span class="usercount"><?php if($group['usercount'] > 0) { p($group['usercount']); } ?></span>
|
2015-08-18 21:20:19 +03:00
|
|
|
<?php if($_['isAdmin']): ?>
|
2014-02-19 19:53:29 +04:00
|
|
|
<a href="#" class="action delete" original-title="<?php p($l->t('Delete'))?>">
|
2016-06-23 14:39:28 +03:00
|
|
|
<img src="<?php print_unescaped(image_path('core', 'actions/delete.svg')) ?>" />
|
2014-02-19 19:53:29 +04:00
|
|
|
</a>
|
2015-08-18 21:20:19 +03:00
|
|
|
<?php endif; ?>
|
2014-02-19 19:53:29 +04:00
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
<?php endforeach; ?>
|
2014-05-13 17:31:11 +04:00
|
|
|
</ul>
|