part.grouplist.php 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <ul id="usergrouplist" data-sort-groups="<?php p($_['sortGroups']); ?>">
  2. <!-- Add new group -->
  3. <li id="newgroup-init">
  4. <a href="#">
  5. <span><?php p($l->t('Add Group'))?></span>
  6. </a>
  7. </li>
  8. <li id="newgroup-form" style="display: none">
  9. <form>
  10. <input type="text" id="newgroupname" placeholder="<?php p($l->t('Group')); ?>..." />
  11. <input type="submit" class="button icon-add svg" value="" />
  12. </form>
  13. </li>
  14. <!-- Everyone -->
  15. <li id="everyonegroup" data-gid="_everyone" data-usercount="" class="isgroup">
  16. <a href="#">
  17. <span class="groupname">
  18. <?php p($l->t('Everyone')); ?>
  19. </span>
  20. </a>
  21. <span class="utils">
  22. <span class="usercount" id="everyonecount">
  23. </span>
  24. </span>
  25. </li>
  26. <!-- The Admin Group -->
  27. <?php foreach($_["adminGroup"] as $adminGroup): ?>
  28. <li data-gid="admin" data-usercount="<?php if($adminGroup['usercount'] > 0) { p($adminGroup['usercount']); } ?>" class="isgroup">
  29. <a href="#"><span class="groupname"><?php p($l->t('Admins')); ?></span></a>
  30. <span class="utils">
  31. <span class="usercount"><?php if($adminGroup['usercount'] > 0) { p($adminGroup['usercount']); } ?></span>
  32. </span>
  33. </li>
  34. <?php endforeach; ?>
  35. <!--List of Groups-->
  36. <?php foreach($_["groups"] as $group): ?>
  37. <li data-gid="<?php p($group['name']) ?>" data-usercount="<?php p($group['usercount']) ?>" class="isgroup">
  38. <a href="#" class="dorename">
  39. <span class="groupname"><?php p($group['name']); ?></span>
  40. </a>
  41. <span class="utils">
  42. <span class="usercount"><?php if($group['usercount'] > 0) { p($group['usercount']); } ?></span>
  43. <?php if($_['isAdmin']): ?>
  44. <a href="#" class="action delete" original-title="<?php p($l->t('Delete'))?>">
  45. <img src="<?php print_unescaped(image_path('core', 'actions/delete.svg')) ?>" class="svg" />
  46. </a>
  47. <?php endif; ?>
  48. </span>
  49. </li>
  50. <?php endforeach; ?>
  51. </ul>