56 lines
1.9 KiB
PHP
56 lines
1.9 KiB
PHP
<ul id="usergrouplist" data-sort-groups="<?php p($_['sortGroups']); ?>">
|
|
<!-- Add new group -->
|
|
<?php if ($_['isAdmin']) { ?>
|
|
<li id="newgroup-init">
|
|
<a href="#">
|
|
<span><?php p($l->t('Add group'))?></span>
|
|
</a>
|
|
</li>
|
|
<?php } ?>
|
|
<li id="newgroup-form" style="display: none">
|
|
<form>
|
|
<input type="text" id="newgroupname" placeholder="<?php p($l->t('Group name')); ?> …" />
|
|
<input type="submit" class="button icon-add" value="" />
|
|
</form>
|
|
</li>
|
|
<!-- Everyone -->
|
|
<li id="everyonegroup" data-gid="_everyone" data-usercount="" class="isgroup">
|
|
<a href="#">
|
|
<span class="groupname">
|
|
<?php p($l->t('Everyone')); ?>
|
|
</span>
|
|
</a>
|
|
<span class="utils">
|
|
<span class="usercount" id="everyonecount">
|
|
|
|
</span>
|
|
</span>
|
|
</li>
|
|
|
|
<!-- The Admin Group -->
|
|
<?php foreach($_["adminGroup"] as $adminGroup): ?>
|
|
<li data-gid="admin" data-usercount="<?php if($adminGroup['usercount'] > 0) { p($adminGroup['usercount']); } ?>" class="isgroup">
|
|
<a href="#"><span class="groupname"><?php p($l->t('Admins')); ?></span></a>
|
|
<span class="utils">
|
|
<span class="usercount"><?php if($adminGroup['usercount'] > 0) { p($adminGroup['usercount']); } ?></span>
|
|
</span>
|
|
</li>
|
|
<?php endforeach; ?>
|
|
|
|
<!--List of Groups-->
|
|
<?php foreach($_["groups"] as $group): ?>
|
|
<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>
|
|
</a>
|
|
<span class="utils">
|
|
<span class="usercount"><?php if($group['usercount'] > 0) { p($group['usercount']); } ?></span>
|
|
<?php if($_['isAdmin']): ?>
|
|
<a href="#" class="action delete" original-title="<?php p($l->t('Delete'))?>">
|
|
<img src="<?php print_unescaped(image_path('core', 'actions/delete.svg')) ?>" />
|
|
</a>
|
|
<?php endif; ?>
|
|
</span>
|
|
</li>
|
|
<?php endforeach; ?>
|
|
</ul>
|