Fixed some more bootstrap rendering

This commit is contained in:
Deon George
2016-07-25 00:44:17 +10:00
parent c29819b6bd
commit 21d204f605
16 changed files with 239 additions and 270 deletions

View File

@@ -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() {