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

@@ -54,6 +54,8 @@ class Controller_Reseller_Charge extends Controller_Charge {
private function add_edit($id=NULL,$output='') {
$co = ORM::factory('Charge',$id);
$this->meta->title = sprintf('Charge: %s (%s)',$co->name(),$co->account->name());
if ($_POST AND $co->values($_POST)->changed() AND (! $this->save($co)))
$co->reload();
@@ -135,6 +137,8 @@ $(document).ready(function() {
* Show a list of invoices
*/
public function action_list() {
$this->meta->title = 'Customer Charges';
Block::factory()
->title('Customer Charges')
->title_icon('fa fa-list')