Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

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. canAdd: 'LU_GROUP_ADD',
  15. canDel: 'LU_GROUP_DEL',
  16. canEdit: 'LU_GROUP_EDIT',
  17. getLoadPagePromise: function (page, perPage, query, promise) {
  18. return luticateAuthGroups.getAll({page: page, perPage: perPage, query: query}, promise);
  19. },
  20. getDelPromise: function (id, promise) {
  21. return luticateAuthGroups.del({group_id: id}, promise);
  22. },
  23. getEditController: function () {
  24. return "GroupEdit";
  25. }
  26. };
  27. }]);