Standardisation work, changed accnum() to refnum()
This commit is contained in:
@@ -18,29 +18,12 @@ class Controller_Reseller_Email extends Controller_Email {
|
||||
* Show a list of emails
|
||||
*/
|
||||
public function action_list() {
|
||||
$this->meta->title = 'Emails Sent';
|
||||
$this->meta->title = 'R|Emails Sent';
|
||||
|
||||
Block::factory()
|
||||
->title(_('Emails Sent'))
|
||||
->title_icon('fa fa-envelope')
|
||||
->body(Table::factory()
|
||||
->page_items(25)
|
||||
->data(ORM::factory('Email_Log')->where_authorised($this->ao)->find_all())
|
||||
->columns(array(
|
||||
'id'=>'ID',
|
||||
'date_orig'=>'Date',
|
||||
'email'=>'To',
|
||||
'resolve("subject")'=>'Subject',
|
||||
'account->accnum()'=>'Cust ID',
|
||||
'account->name()'=>'Customer',
|
||||
))
|
||||
->prepend(array(
|
||||
'id'=>array('url'=>URL::link('user','email/view/')),
|
||||
))
|
||||
->postproc(array(
|
||||
'resolve("subject")'=>array('trim'=>60),
|
||||
))
|
||||
);
|
||||
->title_icon($this->icon)
|
||||
->body(View::factory('email/list')->set('o',ORM::factory('Email_Log')->where_authorised($this->ao)->find_all()));
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
Reference in New Issue
Block a user