You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

groups.controller.js 884B

1234567891011121314151617181920212223242526272829
  1. angular.module('luticate')
  2. .controller('GroupsController', ['$scope', 'luticateAuthGroups',
  3. function($scope, luticateAuthGroups) {
  4. $scope.columns = [
  5. {
  6. name: "Name",
  7. width: 11,
  8. getValue: function(item) {
  9. return item.Name;
  10. }
  11. }
  12. ];
  13. $scope.getLoadPagePromise = function(page, perPage, promise)
  14. {
  15. return luticateAuthGroups.getAll({page: page, perPage: perPage}, promise);
  16. };
  17. $scope.getDelPromise = function(id, promise)
  18. {
  19. return luticateAuthGroups.del({group_id: id}, promise);
  20. };
  21. $scope.getEditController = function()
  22. {
  23. return "GroupEdit";
  24. };
  25. }]);