New subscriber view
diff --git a/views/ngXosViews/subscribers/src/index.html b/views/ngXosViews/subscribers/src/index.html
index 53ed8df..71cbddc 100644
--- a/views/ngXosViews/subscribers/src/index.html
+++ b/views/ngXosViews/subscribers/src/index.html
@@ -26,6 +26,7 @@
<script src="vendor/Chart.js/Chart.js"></script>
<script src="vendor/angular-chart.js/dist/angular-chart.js"></script>
<script src="vendor/d3/d3.js"></script>
+<script src="vendor/angular-recursion/angular-recursion.js"></script>
<!-- endbower -->
<!-- endjs -->
<!-- inject:js -->
diff --git a/views/ngXosViews/subscribers/src/js/main.js b/views/ngXosViews/subscribers/src/js/main.js
index 957f807..838efa0 100644
--- a/views/ngXosViews/subscribers/src/js/main.js
+++ b/views/ngXosViews/subscribers/src/js/main.js
@@ -23,13 +23,19 @@
bindToController: true,
controllerAs: 'vm',
templateUrl: 'templates/subscribers-list.tpl.html',
- controller: function(Subscribers){
+ controller: function(){
this.smartTableConfig = {
resource: 'Subscribers'
};
- this.formConfig = {
+ this.model = {
+ label: {
+ name: 'aaa'
+ },
+ empty: {}
+ }
+ this.config = {
exclude: ['password', 'last_login'],
formName: 'sampleForm',
actions: [
@@ -43,15 +49,6 @@
}
]
};
-
- // retrieving user list
- Subscribers.query().$promise
- .then((users) => {
- this.users = users[0];
- })
- .catch((e) => {
- throw new Error(e);
- });
}
};
});
\ No newline at end of file
diff --git a/views/ngXosViews/subscribers/src/templates/subscribers-list.tpl.html b/views/ngXosViews/subscribers/src/templates/subscribers-list.tpl.html
index afd7178..2e9298b 100644
--- a/views/ngXosViews/subscribers/src/templates/subscribers-list.tpl.html
+++ b/views/ngXosViews/subscribers/src/templates/subscribers-list.tpl.html
@@ -1,4 +1,2 @@
-
-<xos-form ng-model="vm.users" config="vm.formConfig"></xos-form>
-
+<!-- <xos-form ng-model="vm.model" config="vm.config"></xos-form> -->
<xos-smart-table config="vm.smartTableConfig"></xos-smart-table>
\ No newline at end of file