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>
|
2010-02-20 10:48:27 -07:00
|
|
|
<a href="<?= url::site("admin/users/edit_group_form/$group->id") ?>"
|
|
|
|
|
title="<?= t("Edit the %name group's name", array("name" => $group->name))->for_html_attr() ?>"
|
|
|
|
|
class="g-dialog-link"><?= html::clean($group->name) ?></a>
|
2018-01-28 12:43:27 +01:00
|
|
|
<?php if (!$group->special): ?>
|
2009-05-31 18:25:43 -04:00
|
|
|
<a href="<?= url::site("admin/users/delete_group_form/$group->id") ?>"
|
2010-02-18 16:20:59 -08:00
|
|
|
title="<?= t("Delete the %name group", array("name" => $group->name))->for_html_attr() ?>"
|
2009-11-14 23:31:14 -07:00
|
|
|
class="g-dialog-link g-button g-right">
|
2009-10-28 12:15:52 -07:00
|
|
|
<span class="ui-icon ui-icon-trash"><?= t("Delete") ?></span></a>
|
2018-01-28 12:43:27 +01:00
|
|
|
<?php else: ?>
|
2009-08-31 21:51:57 -07:00
|
|
|
<a title="<?= t("This default group cannot be deleted")->for_html_attr() ?>"
|
2009-11-14 23:31:14 -07:00
|
|
|
class="g-button g-right ui-state-disabled ui-icon-left">
|
2009-10-28 12:15:52 -07:00
|
|
|
<span class="ui-icon ui-icon-trash"><?= t("Delete") ?></span></a>
|
2018-01-28 12:43:27 +01:00
|
|
|
<?php endif ?>
|
2009-05-31 18:25:43 -04:00
|
|
|
</h4>
|
|
|
|
|
|
2018-01-28 12:43:27 +01:00
|
|
|
<?php if ($group->users->count_all() > 0): ?>
|
2009-11-14 23:31:14 -07:00
|
|
|
<ul class="g-member-list">
|
2018-01-28 12:43:27 +01:00
|
|
|
<?php foreach ($group->users->order_by("name", "ASC")->find_all() as $i => $user): ?>
|
2009-10-04 00:27:22 -06:00
|
|
|
<li class="g-user">
|
2009-08-29 22:54:20 -07:00
|
|
|
<?= html::clean($user->name) ?>
|
2018-01-28 12:43:27 +01:00
|
|
|
<?php if (!$group->special): ?>
|
2009-03-16 09:01:50 +00:00
|
|
|
<a href="javascript:remove_user(<?= $user->id ?>, <?= $group->id ?>)"
|
2009-11-14 14:03:11 -07:00
|
|
|
class="g-button g-right ui-state-default ui-corner-all ui-icon-left"
|
2009-05-31 18:25:43 -04:00
|
|
|
title="<?= t("Remove %user from %group group",
|
2010-02-18 16:20:59 -08:00
|
|
|
array("user" => $user->name, "group" => $group->name))->for_html_attr() ?>">
|
2009-10-28 12:15:52 -07:00
|
|
|
<span class="ui-icon ui-icon-closethick"><?= t("Remove") ?></span>
|
2009-05-31 01:02:51 -07:00
|
|
|
</a>
|
2018-01-28 12:43:27 +01:00
|
|
|
<?php endif ?>
|
2009-01-28 09:50:15 +00:00
|
|
|
</li>
|
2018-01-28 12:43:27 +01:00
|
|
|
<?php endforeach ?>
|
2009-01-28 09:50:15 +00:00
|
|
|
</ul>
|
2018-01-28 12:43:27 +01:00
|
|
|
<?php else: ?>
|
2009-05-31 19:31:55 -07:00
|
|
|
<div>
|
2009-11-14 23:31:14 -07:00
|
|
|
<p class="ui-state-disabled">
|
|
|
|
|
<?= t("Drag & drop users from the \"Users\" list onto this group to add group members.") ?>
|
2009-05-31 19:31:55 -07:00
|
|
|
</p>
|
|
|
|
|
</div>
|
2018-01-28 12:43:27 +01:00
|
|
|
<?php endif ?>
|