]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Updating Find User in the Admin section to use the livesearch user picker.
authornickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>
Fri, 4 Jun 2010 16:08:40 +0000 (16:08 +0000)
committernickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>
Fri, 4 Jun 2010 16:08:40 +0000 (16:08 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@6358 36083f99-b078-4883-b0ff-0f9b5a30f544

views/default/admin/users/find.php
views/default/css.php

index a2fcc1a56baf109419842e023f5397e3acc40b95..22fe3091ff2f58a25556820d090934d156fb66d6 100644 (file)
 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
index ef0f84d0ff94390aee10b9291e3bcb2842e0905a..082a60b1560303e5b6c27b67b3fe93aa76d875d4 100644 (file)
@@ -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;
+}