2009-01-29 03:23:46 +00:00
|
|
|
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
2009-05-31 18:25:43 -04:00
|
|
|
<h4>
|
2009-08-29 22:54:20 -07:00
|
|
|
<?= html::clean($group->name) ?>
|
2009-05-31 18:25:43 -04:00
|
|
|
<? if (!$group->special): ?>
|
|
|
|
|
<a href="<?= url::site("admin/users/delete_group_form/$group->id") ?>"
|
2009-08-31 21:51:57 -07:00
|
|
|
title="<?= t("Delete the %name group", array("name" => $group->name))->for_html_attr() ?>"
|
2009-09-30 22:49:36 -06:00
|
|
|
class="g-dialogLink g-button ui-state-default ui-corner-all">
|
2009-05-31 18:25:43 -04:00
|
|
|
<span class="ui-icon ui-icon-trash"><?= t("delete") ?></span></a>
|
|
|
|
|
<? else: ?>
|
2009-08-31 21:51:57 -07:00
|
|
|
<a title="<?= t("This default group cannot be deleted")->for_html_attr() ?>"
|
2009-09-30 22:49:36 -06:00
|
|
|
class="g-dialogLink g-button ui-state-disabled ui-corner-all ui-icon-left">
|
2009-05-31 18:25:43 -04:00
|
|
|
<span class="ui-icon ui-icon-trash"><?= t("delete") ?></span></a>
|
|
|
|
|
<? endif ?>
|
|
|
|
|
</h4>
|
|
|
|
|
|
|
|
|
|
<? if ($group->users->count() > 0): ?>
|
2009-01-28 09:50:15 +00:00
|
|
|
<ul>
|
|
|
|
|
<? foreach ($group->users as $i => $user): ?>
|
|
|
|
|
<li class="gUser">
|
2009-08-29 22:54:20 -07:00
|
|
|
<?= html::clean($user->name) ?>
|
2009-01-28 09:50:15 +00:00
|
|
|
<? if (!$group->special): ?>
|
2009-03-16 09:01:50 +00:00
|
|
|
<a href="javascript:remove_user(<?= $user->id ?>, <?= $group->id ?>)"
|
2009-09-30 08:04:49 -06:00
|
|
|
class="g-button ui-state-default ui-corner-all ui-icon-left"
|
2009-05-31 18:25:43 -04:00
|
|
|
title="<?= t("Remove %user from %group group",
|
2009-08-31 21:51:57 -07:00
|
|
|
array("user" => $user->name, "group" => $group->name))->for_html_attr() ?>">
|
2009-05-31 18:25:43 -04:00
|
|
|
<span class="ui-icon ui-icon-closethick"><?= t("remove") ?></span>
|
2009-05-31 01:02:51 -07:00
|
|
|
</a>
|
2009-01-28 09:50:15 +00:00
|
|
|
<? endif ?>
|
|
|
|
|
</li>
|
|
|
|
|
<? endforeach ?>
|
|
|
|
|
</ul>
|
2009-05-31 18:25:43 -04:00
|
|
|
<? else: ?>
|
2009-05-31 19:31:55 -07:00
|
|
|
<div>
|
|
|
|
|
<p>
|
|
|
|
|
<?= t("Drag & drop users from the User Admin above into this group box to add group members.") ?>
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
2009-05-31 18:25:43 -04:00
|
|
|
<? endif ?>
|