summaryrefslogtreecommitdiff
path: root/modules/gallery/views/admin_users_group.html.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-10-06 18:30:11 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-10-06 18:30:12 -0700
commit7f38d6ff29e3554031496c3f98e357f7a87a2671 (patch)
tree6193b6c9fbb48c86010ecaff3e4f7fd560bbabcc /modules/gallery/views/admin_users_group.html.php
parent6671bd8b855758763e3111ea18647d2cb51b9365 (diff)
Change the focus of the user module from providing user/group management to providing the default Identity implementation.
* Remove the user_event callbacks and move them to the gallery_event callbacks. This will insure that the active user is always loaded (because the gallery callbacks are always called first) to its available to other gallery_ready handlers. Moved the method set_request_locale to the locales helper as it is more related to locales. * Move the user controllers and views into the gallery module. * Move the theme and block processing out of the user module and into core.
Diffstat (limited to 'modules/gallery/views/admin_users_group.html.php')
-rw-r--r--modules/gallery/views/admin_users_group.html.php38
1 files changed, 38 insertions, 0 deletions
diff --git a/modules/gallery/views/admin_users_group.html.php b/modules/gallery/views/admin_users_group.html.php
new file mode 100644
index 00000000..db3645a0
--- /dev/null
+++ b/modules/gallery/views/admin_users_group.html.php
@@ -0,0 +1,38 @@
+<?php defined("SYSPATH") or die("No direct script access.") ?>
+<h4>
+ <?= html::clean($group->name) ?>
+ <? if (!$group->special): ?>
+ <a href="<?= url::site("admin/users/delete_group_form/$group->id") ?>"
+ title="<?= t("Delete the %name group", array("name" => $group->name))->for_html_attr() ?>"
+ class="g-dialog-link g-button ui-state-default ui-corner-all">
+ <span class="ui-icon ui-icon-trash"><?= t("delete") ?></span></a>
+ <? else: ?>
+ <a title="<?= t("This default group cannot be deleted")->for_html_attr() ?>"
+ class="g-dialog-link g-button ui-state-disabled ui-corner-all ui-icon-left">
+ <span class="ui-icon ui-icon-trash"><?= t("delete") ?></span></a>
+ <? endif ?>
+</h4>
+
+<? if ($group->users->count() > 0): ?>
+<ul>
+ <? foreach ($group->users as $i => $user): ?>
+ <li class="g-user">
+ <?= html::clean($user->name) ?>
+ <? if (!$group->special): ?>
+ <a href="javascript:remove_user(<?= $user->id ?>, <?= $group->id ?>)"
+ class="g-button ui-state-default ui-corner-all ui-icon-left"
+ title="<?= t("Remove %user from %group group",
+ array("user" => $user->name, "group" => $group->name))->for_html_attr() ?>">
+ <span class="ui-icon ui-icon-closethick"><?= t("remove") ?></span>
+ </a>
+ <? endif ?>
+ </li>
+ <? endforeach ?>
+</ul>
+<? else: ?>
+<div>
+ <p>
+ <?= t("Drag &amp; drop users from the User Admin above into this group box to add group members.") ?>
+ </p>
+</div>
+<? endif ?>