Fixed some more bootstrap rendering
This commit is contained in:
@@ -19,24 +19,7 @@ class Controller_User_Email extends Controller_Email {
|
||||
* Show a list of emails
|
||||
*/
|
||||
public function action_list() {
|
||||
Block::factory()
|
||||
->title(sprintf(_('System Emails Sent for %s: %s'),$this->ao->accnum(),$this->ao->name(TRUE)))
|
||||
->title_icon('icon-th')
|
||||
->body(Table::factory()
|
||||
->page_items(25)
|
||||
->data($this->ao->email_log->find_all())
|
||||
->columns(array(
|
||||
'id'=>'ID',
|
||||
'date_orig'=>'Date',
|
||||
'resolve("subject")'=>'Subject',
|
||||
))
|
||||
->prepend(array(
|
||||
'id'=>array('url'=>URL::link('user','email/view/')),
|
||||
))
|
||||
->postproc(array(
|
||||
'resolve("subject")'=>array('trim'=>60),
|
||||
))
|
||||
);
|
||||
$this->template->content = View::factory('email/user/list');
|
||||
}
|
||||
|
||||
public function action_view() {
|
||||
|
19
modules/email/views/email/user/list.php
Normal file
19
modules/email/views/email/user/list.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php $o = Auth::instance()->get_user();
|
||||
echo Block::factory()
|
||||
->title(sprintf(_('System Emails Sent for %s: %s'),$o->accnum(),$o->name(TRUE)))
|
||||
->title_icon('fa fa-list')
|
||||
->body(Table::factory()
|
||||
->page_items(25)
|
||||
->data($o->email_log->find_all())
|
||||
->columns(array(
|
||||
'id'=>'ID',
|
||||
'date_orig'=>'Date',
|
||||
'resolve("subject")'=>'Subject',
|
||||
))
|
||||
->prepend(array(
|
||||
'id'=>array('url'=>URL::link('user','email/view/')),
|
||||
))
|
||||
->postproc(array(
|
||||
'resolve("subject")'=>array('trim'=>60),
|
||||
))
|
||||
);
|
Reference in New Issue
Block a user