12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- angular.module('luticate')
- .controller('UsersController', ['$scope', 'luticateAuthUsers',
- function($scope, luticateAuthUsers) {
-
- $scope.columns = [
- {
- name: "Username",
- width: 3,
- getValue: function(item) {
- return item.Username;
- }
- }, {
- name: "Email",
- width: 3,
- getValue: function(item) {
- return item.Email;
- }
- }, {
- name: "Firstname",
- width: 3,
- getValue: function(item) {
- return item.Firstname;
- }
- }, {
- name: "Lastname",
- width: 3,
- getValue: function(item) {
- return item.Lastname;
- }
- }
- ];
-
- $scope.getLoadPagePromise = function(page, perPage, promise)
- {
- return luticateAuthUsers.getAll({page: page, perPage: perPage}, promise);
- };
-
- $scope.getDelPromise = function(id, promise)
- {
- return luticateAuthUsers.del({user_id: id}, promise);
- };
-
- $scope.getEditController = function()
- {
- return "UserEdit";
- };
-
-
- }]);
|