Added User email viewing
Improved Table::
This commit is contained in:
@@ -12,11 +12,38 @@
|
||||
*/
|
||||
class Controller_Admin_Email extends Controller_TemplateDefault_Admin {
|
||||
protected $secure_actions = array(
|
||||
'list'=>TRUE,
|
||||
'templateadd'=>TRUE,
|
||||
'templateedit'=>TRUE,
|
||||
'templatelist'=>TRUE,
|
||||
);
|
||||
|
||||
/**
|
||||
* Show a list of emails
|
||||
*/
|
||||
public function action_list() {
|
||||
$elo = ORM::factory('email_log');
|
||||
|
||||
Block::add(array(
|
||||
'title'=>_('System Emails Sent'),
|
||||
'body'=>Table::display(
|
||||
$elo->find_all(),
|
||||
25,
|
||||
array(
|
||||
'id'=>array('label'=>'ID','url'=>'user/email/view/'),
|
||||
'date_orig'=>array('label'=>'Date'),
|
||||
'translate_resolve("subject")'=>array('label'=>'Subject'),
|
||||
'account->accnum()'=>array('label'=>'Cust ID'),
|
||||
'account->name()'=>array('label'=>'Customer'),
|
||||
),
|
||||
array(
|
||||
'page'=>TRUE,
|
||||
'type'=>'select',
|
||||
'form'=>'user/email/view',
|
||||
)),
|
||||
));
|
||||
}
|
||||
|
||||
/**
|
||||
* List our defined email templates
|
||||
*/
|
||||
|
Reference in New Issue
Block a user