part.grouplist.php 1.9 KB

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