aboutsummaryrefslogtreecommitdiff
path: root/views/default/admin/users
diff options
context:
space:
mode:
authornickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-06-04 16:08:40 +0000
committernickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-06-04 16:08:40 +0000
commit16df5711d0bb27c57e161080e76921fcee4fe0e2 (patch)
tree897171240262114aa1a97a53e07a28834e530761 /views/default/admin/users
parentc33a7b4847a5d1537dcc7272dc056bc64f3f1cb3 (diff)
downloadelgg-16df5711d0bb27c57e161080e76921fcee4fe0e2.tar.gz
elgg-16df5711d0bb27c57e161080e76921fcee4fe0e2.tar.bz2
Updating Find User in the Admin section to use the livesearch user picker.
git-svn-id: http://code.elgg.org/elgg/trunk@6358 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/admin/users')
-rw-r--r--views/default/admin/users/find.php22
1 files changed, 9 insertions, 13 deletions
diff --git a/views/default/admin/users/find.php b/views/default/admin/users/find.php
index a2fcc1a56..22fe3091f 100644
--- a/views/default/admin/users/find.php
+++ b/views/default/admin/users/find.php
@@ -11,17 +11,13 @@
echo elgg_view_title(elgg_echo('admin:users'));
if( (is_plugin_enabled('search')) && (is_plugin_enabled('profile')) ) {
-?>
- <div class="admin_settings user_search">
- <form action="<?php echo $vars['url']; ?>pg/search/" method="get">
- <h3><?php echo elgg_echo('admin:user:label:search'); ?></h3>
- <?php echo elgg_view('input/text',array('internalname' => 'q')); ?>
- <input type="hidden" name="entity_type" value="user" />
- <input type="hidden" name="search_type" value="entities" />
- <input type="submit" name="<?php echo elgg_echo('admin:user:label:searchbutton'); ?>"
- value="<?php echo elgg_echo('admin:user:label:searchbutton'); ?>" />
- </form>
- </div>
-<?php
+ $header = elgg_echo('admin:user:label:search');
+ $input = elgg_view('input/userpicker', array('internalname' => 'q'));
+
+ echo <<<__HTML
+<div class="admin_settings user_search">
+ <h3>$header</h3>
+ $input
+</div>
+__HTML;
}
-?> \ No newline at end of file