started table component, mess up the generator
diff --git a/views/ngXosViews/contentProvider/src/js/main.js b/views/ngXosViews/contentProvider/src/js/main.js
index 6f93c0a..6448679 100644
--- a/views/ngXosViews/contentProvider/src/js/main.js
+++ b/views/ngXosViews/contentProvider/src/js/main.js
@@ -80,6 +80,25 @@
scope: {},
templateUrl: 'templates/cp_list.html',
controller: function(){
+ ['Name', 'Description', 'Status', 'Actions']
+ this.tableConfig = {
+ columns: [
+ {
+ label: 'Name',
+ field: 'humanReadableName'
+ },
+ {
+ label: 'Description',
+ field: 'description'
+ },
+ {
+ label: 'Status',
+ field: 'enabled'
+ }
+ ],
+ enableActions: true
+ };
+
var self = this;
ContentProvider.query().$promise
diff --git a/views/ngXosViews/contentProvider/src/templates/cp_detail.html b/views/ngXosViews/contentProvider/src/templates/cp_detail.html
index ccbd66c..1ae2299 100644
--- a/views/ngXosViews/contentProvider/src/templates/cp_detail.html
+++ b/views/ngXosViews/contentProvider/src/templates/cp_detail.html
@@ -48,7 +48,7 @@
</div>
</fieldset>
</form>
- <div class="alert alert-danger" ng-show="vm.result" ng-class="{'alert-success': vm.result.status === 1,'alert-error': vm.result.status === 0}">
+ <div class="alert" ng-show="vm.result" ng-class="{'alert-success': vm.result.status === 1,'alert-danger': vm.result.status === 0}">
{$ vm.result.msg $}
</div>
</div>
diff --git a/views/ngXosViews/contentProvider/src/templates/cp_list.html b/views/ngXosViews/contentProvider/src/templates/cp_list.html
index 9413545..e6301f5 100644
--- a/views/ngXosViews/contentProvider/src/templates/cp_list.html
+++ b/views/ngXosViews/contentProvider/src/templates/cp_list.html
@@ -1,4 +1,4 @@
-<xos-table data="vm.contentProviderList" columns="['Name', 'Description', 'Status', 'Actions']"/>
+<xos-table data="vm.contentProviderList" config="vm.config"/>
<table class="table table-striped" ng-show="vm.contentProviderList.length > 0">
<thead>