1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-16 20:28:28 +01:00

Quick View added to admin > users

This commit is contained in:
Cameron 2017-11-05 11:31:11 -08:00
parent 21875c0b24
commit 2c23bd6cd6
2 changed files with 10 additions and 2 deletions

View File

@ -269,12 +269,19 @@ class users_admin_ui extends e_admin_ui
protected $disallow = array('create');
protected $tabs = array(LAN_BASIC, LAN_EXTENDED);
protected $url = array(
'route'=>'user/profile/view',
'name' => 'user_name',
'description' => 'user_name',
'vars'=> array('user_id' => true, 'user_name' => true)
);
//TODO - finish 'user' type, set 'data' to all editable fields, set 'noedit' for all non-editable fields
protected $fields = array(
'checkboxes' => array('title'=> '', 'type' => null, 'width' =>'5%', 'forced'=> TRUE, 'thclass'=>'center', 'class'=>'center'),
'user_id' => array('title' => LAN_ID, 'tab'=>0, 'type' =>'integer', 'width' => '5%','forced' => true),
'user_id' => array('title' => LAN_ID, 'tab'=>0, 'type' =>'text', 'data'=>'int', 'width' => '5%','forced' => true, 'readParms'=>'link=sef&target=blank'),
// 'user_status' => array('title' => LAN_STATUS, 'type' => 'method', 'alias'=>'user_status', 'width' => 'auto','forced' => true, 'nosort'=>TRUE),
'user_ban' => array('title' => LAN_STATUS, 'tab'=>0, 'type' => 'method', 'width' => 'auto', 'filter'=>true, 'batch'=>true,'thclass'=>'center', 'class'=>'center'),

View File

@ -309,9 +309,10 @@ function renderuser($uid, $mode = "verbose")
return FALSE;
}
}
$user_shortcodes->setVars($user);
e107::setRegistry('core/user/profile', $user);
if($mode == 'verbose')
{