Standardisation work, changed accnum() to refnum()
This commit is contained in:
@@ -20,34 +20,24 @@ class Controller_Reseller_Account extends Controller_Account {
|
||||
* Show a list of accounts
|
||||
*/
|
||||
public function action_list() {
|
||||
$this->meta->title = 'Customer List';
|
||||
$this->meta->title = 'R|Customer List';
|
||||
|
||||
Block::factory()
|
||||
->title(_('Customer List'))
|
||||
->title_icon('fa fa-list')
|
||||
->body(Table::factory()
|
||||
->data(ORM::factory('Account')->where_authorised($this->ao,'id')->find_all())
|
||||
->jssort('customer')
|
||||
->columns(array(
|
||||
'id'=>'ID',
|
||||
'status'=>'Active',
|
||||
'accnum()'=>'Num',
|
||||
'name(TRUE)'=>'Account',
|
||||
'email'=>'Email',
|
||||
'invoices_due_total(NULL,TRUE)'=>'Invoices',
|
||||
'service->find_all()->count()'=>'Services',
|
||||
))
|
||||
->prepend(array(
|
||||
'id'=>array('url'=>URL::link('reseller','account/view/')),
|
||||
))
|
||||
);
|
||||
->title_icon($this->icon)
|
||||
->body(View::factory('account/list')->set('o',ORM::factory('Account')->where_authorised($this->ao,'id')->find_all()));
|
||||
}
|
||||
|
||||
/**
|
||||
* Show a list of account logins
|
||||
*/
|
||||
public function action_listlog() {
|
||||
$this->template->content = View::factory('account/reseller/listlog');
|
||||
$this->meta->title = 'R|Customer Logins';
|
||||
|
||||
Block::factory()
|
||||
->title(_('Customer List'))
|
||||
->title_icon('fa fa-eye')
|
||||
->body(View::factory('account/listlog')->set('o',ORM::factory('Account_Log')->where_authorised($this->ao)->find_all()));
|
||||
}
|
||||
|
||||
public function action_view() {
|
||||
|
Reference in New Issue
Block a user