Added meta title to pages
This commit is contained in:
@@ -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')
|
||||
|
@@ -98,6 +98,10 @@ class Model_Charge extends ORM_OSB implements Invoicable {
|
||||
}
|
||||
}
|
||||
|
||||
public function xtitle() {
|
||||
return $this->invoice_item(5);
|
||||
}
|
||||
|
||||
/**
|
||||
* Render some details for specific calls, eg: invoice
|
||||
*/
|
||||
|
Reference in New Issue
Block a user