mirror of
https://github.com/ansible/awx.git
synced 2026-02-23 05:55:59 -03:30
Added jsTree to show groups under Inventory/Edit
This commit is contained in:
@@ -98,42 +98,11 @@ angular.module('InventoryFormDefinition', [])
|
||||
}
|
||||
},
|
||||
|
||||
groups: {
|
||||
type: 'collection',
|
||||
groups: {
|
||||
type: 'tree',
|
||||
title: 'Groups',
|
||||
iterator: 'group',
|
||||
open: false,
|
||||
|
||||
actions: {
|
||||
add: {
|
||||
ngClick: "add('groups')",
|
||||
icon: 'icon-plus',
|
||||
awToolTip: 'Create a new group'
|
||||
},
|
||||
},
|
||||
|
||||
fields: {
|
||||
name: {
|
||||
key: true,
|
||||
label: 'Name'
|
||||
},
|
||||
description: {
|
||||
label: 'Description'
|
||||
}
|
||||
},
|
||||
|
||||
fieldActions: {
|
||||
edit: {
|
||||
ngClick: "edit('groups', \{\{ group.id \}\}, '\{\{ group.name \}\}')",
|
||||
icon: 'icon-edit'
|
||||
},
|
||||
delete: {
|
||||
ngClick: "delete('groups', \{\{ group.id \}\}, '\{\{ group.name \}\}', 'groups')",
|
||||
icon: 'icon-remove',
|
||||
class: 'btn-danger'
|
||||
}
|
||||
}
|
||||
}
|
||||
open: true
|
||||
}
|
||||
}
|
||||
}); //InventoryForm
|
||||
|
||||
|
||||
Reference in New Issue
Block a user