Added meta title to pages

This commit is contained in:
Deon George
2016-07-29 11:19:30 +10:00
parent f426502707
commit e0b45be758
22 changed files with 73 additions and 49 deletions

View File

@@ -18,9 +18,11 @@ class Controller_Reseller_Payment extends Controller_Payment {
* Show a list of payments
*/
public function action_list() {
$this->meta->title = 'Customer Payments';
Block::factory()
->title('Customer Payments')
->title_icon('icon-th-list')
->title_icon('fa fa-money')
->body(Table::factory()
->page_items(50)
->data(ORM::factory('Payment')->where_authorised($this->ao)->find_all())

View File

@@ -18,9 +18,11 @@ class Controller_User_Payment extends Controller_Payment {
* Show payments received
*/
public function action_list() {
$this->meta->title = 'Payments Received';
Block::factory()
->title(sprintf('%s: %s - %s',_('Payments Received For'),$this->ao->accnum(),$this->ao->name(TRUE)))
->title_icon('icon-th-list')
->title_icon('fa fa-money')
->body(Table::factory()
->page_items(50)
->data($this->ao->payment->find_all())