diff --git a/awx/ui/client/src/inventories/manage/inventory-manage.partial.html b/awx/ui/client/src/inventories/manage/inventory-manage.partial.html index ecae801c20..816f2fb040 100644 --- a/awx/ui/client/src/inventories/manage/inventory-manage.partial.html +++ b/awx/ui/client/src/inventories/manage/inventory-manage.partial.html @@ -1,5 +1,8 @@
-
+ +
In the ui view + +
diff --git a/awx/ui/client/src/inventories/manage/main.js b/awx/ui/client/src/inventories/manage/main.js index 7bd839ecc1..14bcb8a5e5 100644 --- a/awx/ui/client/src/inventories/manage/main.js +++ b/awx/ui/client/src/inventories/manage/main.js @@ -7,8 +7,13 @@ import route from './inventory-manage.route'; import controller from './inventory-manage.controller'; +import manageHostsDirective from './manage-hosts/manage-hosts.directive'; +import manageHostsRoute from './manage-hosts/manage-hosts.route'; + export default angular.module('inventoryManage', []) + .directive('manageHosts', manageHostsDirective) .run(['$stateExtender', function($stateExtender) { $stateExtender.addState(route); + $stateExtender.addState(manageHostsRoute); }]); diff --git a/awx/ui/client/src/inventories/manage/manage-groups/manage-groups.controller.html b/awx/ui/client/src/inventories/manage/manage-groups/manage-groups.controller.html new file mode 100644 index 0000000000..e69de29bb2 diff --git a/awx/ui/client/src/inventories/manage/manage-groups/manage-groups.directive.html b/awx/ui/client/src/inventories/manage/manage-groups/manage-groups.directive.html new file mode 100644 index 0000000000..e69de29bb2 diff --git a/awx/ui/client/src/inventories/manage/manage-groups/manage-groups.partial.html b/awx/ui/client/src/inventories/manage/manage-groups/manage-groups.partial.html new file mode 100644 index 0000000000..e69de29bb2 diff --git a/awx/ui/client/src/inventories/manage/manage-hosts/manage-hosts.controller.js b/awx/ui/client/src/inventories/manage/manage-hosts/manage-hosts.controller.js new file mode 100644 index 0000000000..01dda998c1 --- /dev/null +++ b/awx/ui/client/src/inventories/manage/manage-hosts/manage-hosts.controller.js @@ -0,0 +1,20 @@ +/************************************************* + * Copyright (c) 2015 Ansible, Inc. + * + * All Rights Reserved + *************************************************/ + +function manageHostDirectiveController($q, $rootScope, $scope, $state, + $stateParams, $compile, Rest, ProcessErrors, + CreateDialog, GetBasePath, Wait, GenerateList, GroupList, SearchInit, + PaginateInit, GetRootGroups) { + + var vm = this; + + }; + +export default ['$q', '$rootScope', '$scope', '$state', '$stateParams', + 'ScopePass', '$compile', 'Rest', 'ProcessErrors', 'CreateDialog', + 'GetBasePath', 'Wait', 'generateList', 'GroupList', 'SearchInit', + 'PaginateInit', 'GetRootGroups', manageHostDirectiveController +]; diff --git a/awx/ui/client/src/inventories/manage/manage-hosts/manage-hosts.directive.js b/awx/ui/client/src/inventories/manage/manage-hosts/manage-hosts.directive.js new file mode 100644 index 0000000000..531e965ee9 --- /dev/null +++ b/awx/ui/client/src/inventories/manage/manage-hosts/manage-hosts.directive.js @@ -0,0 +1,25 @@ +/************************************************* + * Copyright (c) 2015 Ansible, Inc. + * + * All Rights Reserved + *************************************************/ + +/* jshint unused: vars */ +import manageHostsController from './manage-hosts.controller'; + +export default ['templateUrl', + function(templateUrl) { + return { + restrict: 'EA', + scope: true, + replace: true, + templateUrl: templateUrl('inventories/manage/manage-hosts/manage-hosts'), + link: function(scope, element, attrs) { + + }, + // controller: manageHostsController, + // controllerAs: 'vm', + // bindToController: true + }; + } +]; diff --git a/awx/ui/client/src/inventories/manage/manage-hosts/manage-hosts.partial.html b/awx/ui/client/src/inventories/manage/manage-hosts/manage-hosts.partial.html new file mode 100644 index 0000000000..a8016b0ba6 --- /dev/null +++ b/awx/ui/client/src/inventories/manage/manage-hosts/manage-hosts.partial.html @@ -0,0 +1,2 @@ +
This is the manage hosts directive. +
diff --git a/awx/ui/client/src/inventories/manage/manage-hosts/manage-hosts.route.js b/awx/ui/client/src/inventories/manage/manage-hosts/manage-hosts.route.js new file mode 100644 index 0000000000..c8de0182be --- /dev/null +++ b/awx/ui/client/src/inventories/manage/manage-hosts/manage-hosts.route.js @@ -0,0 +1,29 @@ +/************************************************* + * Copyright (c) 2016 Ansible, Inc. + * + * All Rights Reserved + *************************************************/ + +import { + templateUrl +} from '../../../shared/template-url/template-url.factory'; + +export default { + name: 'inventoryManage.manageHosts', + route: '/managehosts', + template: 'SOMETHING', + + // data: { + // activityStream: true, + // activityStreamTarget: 'inventory', + // activityStreamId: 'inventory_id' + // }, + // ncyBreadcrumb: { + // label: "INVENTORY MANAGE" + // }, + // resolve: { + // features: ['FeaturesService', function(FeaturesService) { + // return FeaturesService.get(); + // }] + // }, +};