2014-02-19 19:53:29 +04:00
|
|
|
<ul>
|
|
|
|
<!-- Add new group -->
|
2014-02-25 14:09:01 +04:00
|
|
|
<li id="newgroup-init">
|
|
|
|
<a href="#">
|
|
|
|
<span><?php p($l->t('Add Group'))?></span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li id="newgroup-form">
|
|
|
|
<form>
|
2014-02-19 19:53:29 +04:00
|
|
|
<input type="text" id="newgroupname" placeholder="<?php p($l->t('Group')); ?>..." />
|
|
|
|
<input type="submit" class="button" value="<?php p($l->t('Add Group'))?>" />
|
|
|
|
</form>
|
|
|
|
</li>
|
|
|
|
<!-- Everyone -->
|
2014-02-25 17:05:48 +04:00
|
|
|
<li data-gid="">
|
2014-02-23 01:28:44 +04:00
|
|
|
<a href="#">
|
|
|
|
<span>
|
|
|
|
<?php p($l->t('Everyone')); ?>
|
|
|
|
</span>
|
|
|
|
</a>
|
2014-02-19 19:53:29 +04:00
|
|
|
</li>
|
|
|
|
|
|
|
|
<!-- The Admin Group -->
|
|
|
|
<?php foreach($_["adminGroup"] as $adminGroup): ?>
|
2014-02-25 13:21:10 +04:00
|
|
|
<li data-gid="admin">
|
2014-02-19 19:53:29 +04:00
|
|
|
<a href="#"><?php p($l->t('Admins')); ?></a>
|
|
|
|
<span class="utils">
|
|
|
|
<span class="usercount"><?php if(count($adminGroup['useringroup']) > 0) { p(count($adminGroup['useringroup'])); } ?></span>
|
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
|
|
|
|
<!--List of Groups-->
|
|
|
|
<?php foreach($_["groups"] as $group): ?>
|
2014-02-25 18:22:20 +04:00
|
|
|
<li data-gid="<?php p($group['name']) ?>" data-usercount="<?php p(count($group['useringroup'])) ?>">
|
2014-02-23 01:28:44 +04:00
|
|
|
<a href="#">
|
|
|
|
<span><?php p($group['name']); ?></span>
|
|
|
|
<img class="svg action rename" src="<?php p(image_path('core', 'actions/rename.svg'))?>"
|
|
|
|
original-title="<?php p($l->t('Edit'))?>" alt="<?php p($l->t("change group name"))?>" title="<?php p($l->t("change group name"))?>" />
|
|
|
|
</a>
|
2014-02-19 19:53:29 +04:00
|
|
|
<span class="utils">
|
|
|
|
<span class="usercount"><?php if(count($group['useringroup']) > 0) { p(count($group['useringroup'])); } ?></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>
|