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 1.1KB

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