mirror of
https://github.com/ansible/awx.git
synced 2026-02-26 15:36:04 -03:30
Latest inventory tree updates. Now using root_groups to retrieve top-level inventory groups. Ajax group load now works -hosts and subgroups loading. Need to add sorting, but all works.
This commit is contained in:
@@ -56,35 +56,35 @@ angular.module('ansible', [
|
||||
// when('/job_templates/:id', { templateUrl: urlPrefix + 'partials/job_templates.html',
|
||||
// controller: JobTemplatesEdit }).
|
||||
|
||||
when('/projects', { templateUrl: urlPrefix + 'partials/projects.html',
|
||||
controller: ProjectsList }).
|
||||
when('/projects',
|
||||
{ templateUrl: urlPrefix + 'partials/projects.html', controller: ProjectsList }).
|
||||
|
||||
when('/inventories', { templateUrl: urlPrefix + 'partials/inventories.html',
|
||||
controller: InventoriesList }).
|
||||
when('/inventories',
|
||||
{ templateUrl: urlPrefix + 'partials/inventories.html', controller: InventoriesList }).
|
||||
|
||||
when('/inventories/add', { templateUrl: urlPrefix + 'partials/inventories.html',
|
||||
controller: InventoriesAdd }).
|
||||
when('/inventories/add',
|
||||
{ templateUrl: urlPrefix + 'partials/inventories.html', controller: InventoriesAdd }).
|
||||
|
||||
when('/inventories/:id', { templateUrl: urlPrefix + 'partials/inventories.html',
|
||||
controller: InventoriesEdit }).
|
||||
when('/inventories/:id',
|
||||
{ templateUrl: urlPrefix + 'partials/inventories.html', controller: InventoriesEdit }).
|
||||
|
||||
when('/inventories/:id/hosts', { templateUrl: urlPrefix + 'partials/inventories.html',
|
||||
controller: HostsList }).
|
||||
when('/inventories/:inventory_id/hosts',
|
||||
{ templateUrl: urlPrefix + 'partials/inventories.html', controller: HostsList }).
|
||||
|
||||
when('/inventories/:id/hosts/add', { templateUrl: urlPrefix + 'partials/inventories.html',
|
||||
controller: HostsAdd }).
|
||||
when('/inventories/:inventory_id/hosts/add',
|
||||
{ templateUrl: urlPrefix + 'partials/inventories.html', controller: HostsAdd }).
|
||||
|
||||
when('/inventories/:inventory_id/hosts/:id', { templateUrl: urlPrefix + 'partials/inventories.html',
|
||||
controller: HostsEdit }).
|
||||
when('/inventories/:inventory_id/hosts/:host_id',
|
||||
{ templateUrl: urlPrefix + 'partials/inventories.html', controller: HostsEdit }).
|
||||
|
||||
when('/inventories/:id/groups', { templateUrl: urlPrefix + 'partials/inventories.html',
|
||||
controller: GroupsList }).
|
||||
when('/inventories/:inventory_id/groups',
|
||||
{ templateUrl: urlPrefix + 'partials/inventories.html', controller: GroupsList }).
|
||||
|
||||
when('/inventories/:id/groups/add', { templateUrl: urlPrefix + 'partials/inventories.html',
|
||||
controller: GroupsAdd }).
|
||||
when('/inventories/:inventory_id/groups/add',
|
||||
{ templateUrl: urlPrefix + 'partials/inventories.html', controller: GroupsAdd }).
|
||||
|
||||
when('/inventories/:inventory_id/groups/:id', { templateUrl: urlPrefix + 'partials/inventories.html',
|
||||
controller: GroupsEdit }).
|
||||
when('/inventories/:inventory_id/groups/:group_id',
|
||||
{ templateUrl: urlPrefix + 'partials/inventories.html', controller: GroupsEdit }).
|
||||
|
||||
when('/inventories/:inventory_id/groups/:group_id/children',
|
||||
{ templateUrl: urlPrefix + 'partials/inventories.html', controller: GroupsList }).
|
||||
@@ -92,7 +92,7 @@ angular.module('ansible', [
|
||||
when('/inventories/:inventory_id/groups/:group_id/children/add',
|
||||
{ templateUrl: urlPrefix + 'partials/inventories.html', controller: GroupsAdd }).
|
||||
|
||||
when('/inventories/:inventory_id/groups/:group_id/children/:id',
|
||||
when('/inventories/:inventory_id/groups/:group_id/children/:child_id',
|
||||
{ templateUrl: urlPrefix + 'partials/inventories.html', controller: GroupsEdit }).
|
||||
|
||||
when('/inventories/:inventory_id/groups/:group_id/hosts',
|
||||
@@ -101,7 +101,7 @@ angular.module('ansible', [
|
||||
when('/inventories/:inventory_id/groups/:group_id/hosts/add',
|
||||
{ templateUrl: urlPrefix + 'partials/inventories.html', controller: HostsAdd }).
|
||||
|
||||
when('/inventories/:inventory_id/groups/:group_id/hosts/:id',
|
||||
when('/inventories/:inventory_id/groups/:group_id/hosts/:host_id',
|
||||
{ templateUrl: urlPrefix + 'partials/inventories.html', controller: HostsEdit }).
|
||||
|
||||
when('/organizations', { templateUrl: urlPrefix + 'partials/organizations.html',
|
||||
|
||||
Reference in New Issue
Block a user