Standardisation work, changed accnum() to refnum()

This commit is contained in:
Deon George
2016-07-29 23:04:34 +10:00
parent e0b45be758
commit 85f08bbb0a
52 changed files with 361 additions and 514 deletions

View File

@@ -19,25 +19,8 @@ class Controller_Reseller_Service_Ssl extends Controller_Service {
public function action_list() {
Block::factory()
->title('SSL Services')
->title_icon('icon-th-list')
->body(Table::factory()
->jssort('host')
->data(ORM::factory('Service')->where_authorised($this->ao)->list_byplugin('SSL'))
->columns(array(
'id'=>'ID',
'name()'=>'Service',
'plugin()->expire(TRUE)'=>'Expire',
'recur_schedule'=>'Billing',
'price(TRUE,TRUE)'=>'Price',
'account->accnum()'=>'Cust ID',
'account->name()'=>'Customer',
'date_next_invoice'=>'Next Invoice',
'due(TRUE)'=>'Due Invoices',
))
->prepend(array(
'id'=>array('url'=>URL::link('user','service/view/')),
))
);
->title_icon($this->icon)
->body(View::factory('service/list')->set('o',ORM::factory('Service')->where_authorised($this->ao)->list_byplugin('SSL')));
}
}
?>

View File

@@ -11,6 +11,7 @@
*/
class Controller_SSL extends Controller_TemplateDefault {
protected $auth_required = false;
protected $icon = 'fa fa-certificate';
/**
* Render out an SSL CA certificate