diff options
author | nickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-06-04 16:08:40 +0000 |
---|---|---|
committer | nickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-06-04 16:08:40 +0000 |
commit | 16df5711d0bb27c57e161080e76921fcee4fe0e2 (patch) | |
tree | 897171240262114aa1a97a53e07a28834e530761 /views | |
parent | c33a7b4847a5d1537dcc7272dc056bc64f3f1cb3 (diff) | |
download | elgg-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')
-rw-r--r-- | views/default/admin/users/find.php | 22 | ||||
-rw-r--r-- | views/default/css.php | 11 |
2 files changed, 19 insertions, 14 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 diff --git a/views/default/css.php b/views/default/css.php index ef0f84d0f..082a60b15 100644 --- a/views/default/css.php +++ b/views/default/css.php @@ -1536,4 +1536,13 @@ p.elgg_likes_owner { padding-top:4px; } - +.user_picker .user_picker_entry { + clear:both; + height:25px; + padding:5px; + margin-top:5px; + border-bottom:1px solid #cccccc; +} +.user_picker_entry .delete_button { + margin-right:10px; +} |