server/settings/templates/users/part.grouplist.php

53 lines
1.7 KiB
PHP
Raw Normal View History

2014-05-08 21:38:29 +00:00
<ul id="usergrouplist">
<!-- Add new group -->
<li id="newgroup-init">
<a href="#">
<span><?php p($l->t('Add Group'))?></span>
</a>
</li>
<li id="newgroup-form">
<form>
<input type="text" id="newgroupname" placeholder="<?php p($l->t('Group')); ?>..." />
<input type="submit" class="button icon-add" value="" />
</form>
</li>
<!-- Everyone -->
<li data-gid="_everyone" data-usercount="<?php p($_["usercount"]); ?>" class="isgroup">
<a href="#">
<span class="groupname">
<?php p($l->t('Everyone')); ?>
</span>
</a>
2014-04-14 22:13:23 +00:00
<span class="utils">
<span class="usercount">
<?php p($_["usercount"]); ?>
</span>
2014-04-14 22:13:23 +00:00
</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">
2014-05-08 21:38:29 +00:00
<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): ?>
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>
</a>
<span class="utils">
<span class="usercount"><?php if($group['usercount'] > 0) { p($group['usercount']); } ?></span>
<a href="#" class="action delete" original-title="<?php p($l->t('Delete'))?>">
<img src="<?php print_unescaped(image_path('core', 'actions/delete.svg')) ?>" class="svg" />
</a>
</span>
</li>
<?php endforeach; ?>
</ul>