New subscriber view
diff --git a/views/ngXosViews/subscribers/bower.json b/views/ngXosViews/subscribers/bower.json
index f64b705..2fb2dab 100644
--- a/views/ngXosViews/subscribers/bower.json
+++ b/views/ngXosViews/subscribers/bower.json
@@ -14,8 +14,7 @@
"test",
"tests"
],
- "dependencies": {
- },
+ "dependencies": {},
"devDependencies": {
"jquery": "2.1.4",
"angular-mocks": "1.4.7",
@@ -27,6 +26,7 @@
"lodash": "~4.11.1",
"bootstrap-css": "3.3.6",
"angular-chart.js": "~0.10.2",
- "d3": "~3.5.17"
+ "d3": "~3.5.17",
+ "angular-recursion": "~1.0.5"
}
}
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