diff --git a/application/classes/Controller/Admin/Module.php b/application/classes/Controller/Admin/Module.php index 51a3eb89..b919fe35 100644 --- a/application/classes/Controller/Admin/Module.php +++ b/application/classes/Controller/Admin/Module.php @@ -137,7 +137,7 @@ class Controller_Admin_Module extends Controller_Module { Block::factory() ->title(sprintf('%s: %s ',_('Defined Module Methods For'),$mo->display('name'))) - ->title_icon('icon-cog') + ->title_icon('fa fa-cog') ->body(Table::factory() ->data($methods['exist']) ->columns(array( @@ -154,7 +154,7 @@ class Controller_Admin_Module extends Controller_Module { Block::factory() ->title(sprintf('%s: %s ',_('Missing Module Methods For'),$mo->display('name'))) - ->title_icon('icon-exclamation-sign') + ->title_icon('fa fa-question') ->body(Table::factory() ->data($methods['missing']) ->columns(array( @@ -173,7 +173,7 @@ class Controller_Admin_Module extends Controller_Module { public function action_list() { Block::factory() ->title('Defined Modules') - ->title_icon('icon-cog') + ->title_icon('fa fa-cog') ->body(Table::factory() ->data(ORM::factory('Module')->where('parent_id','is',NULL)->find_all()) ->jssort(TRUE) diff --git a/application/classes/Controller/Admin/Module/Method.php b/application/classes/Controller/Admin/Module/Method.php index b018b4d2..3c095b6d 100644 --- a/application/classes/Controller/Admin/Module/Method.php +++ b/application/classes/Controller/Admin/Module/Method.php @@ -37,7 +37,7 @@ class Controller_Admin_Module_Method extends Controller_Admin_Module { Block::factory() ->title(sprintf(_('Add Method (%s) to Database for (%s)'),strtoupper($method),strtoupper($mo->name))) - ->title_icon('icon-plus-sign') + ->title_icon('fa fa-plus') ->type('form-horizontal') ->body(View::factory('module/method/admin/add') ->set('name',$method) @@ -99,11 +99,9 @@ class Controller_Admin_Module_Method extends Controller_Admin_Module { Block::factory() ->title(sprintf(_('Configure access to method (%s::%s)'),$mmo->controller(),$mmo->method())) - ->title_icon('icon-plus-sign') + ->title_icon('fa fa-lock') ->type('form') - ->body(View::factory('module/method/admin/edit') - ->set('o',$mmo) - ); + ->body(View::factory('module/method/admin/edit')->set('o',$mmo)); } } ?> diff --git a/application/classes/Menu.php b/application/classes/Menu.php index 3d48742e..234b1a66 100644 --- a/application/classes/Menu.php +++ b/application/classes/Menu.php @@ -30,7 +30,7 @@ class Menu extends lnApp_Menu { return $result; } - public static function items($type) { + public static function items($type,array $list=array()) { $result = array(); if (empty(URL::$method_directory[$type])) diff --git a/application/classes/ORM.php b/application/classes/ORM.php index 6e8d31e3..3d41c167 100644 --- a/application/classes/ORM.php +++ b/application/classes/ORM.php @@ -55,7 +55,6 @@ abstract class ORM extends lnApp_ORM { /** * Determine if the account is authoised by the user */ - // @todo This function shouldnt be here. public function authorised(Model $o=NULL,Model_Account $ao=NULL,$aid='account_id') { if (is_null($o)) $o = $this; @@ -147,6 +146,13 @@ abstract class ORM extends lnApp_ORM { return ORM::factory('Module',array('name'=>$this->_table_name)); } + /** + * Name value return for the record + */ + public function name() { + return sprintf('Unknown [%s]',$this->id); + } + /** * Set the site ID attribute for each row update */ diff --git a/application/views/account/reseller/view.php b/application/views/account/reseller/view.php new file mode 100644 index 00000000..987fe7e1 --- /dev/null +++ b/application/views/account/reseller/view.php @@ -0,0 +1,3 @@ +set('o',$o); ?> +set('o',$o); ?> +set('o',$o); ?> diff --git a/application/views/module/method/admin/edit.php b/application/views/module/method/admin/edit.php index 4b9ad6a0..3fcb7b5d 100644 --- a/application/views/module/method/admin/edit.php +++ b/application/views/module/method/admin/edit.php @@ -1,42 +1,44 @@ -