Inventory group add/delete working

This commit is contained in:
Chris Houseknecht
2013-05-06 16:54:26 -04:00
parent 2afd8d44e7
commit bb7e1ae74f
7 changed files with 428 additions and 9 deletions
+42 -2
View File
@@ -68,7 +68,8 @@ angular.module('InventoryFormDefinition', [])
actions: {
add: {
ngClick: "add('hosts')",
icon: 'icon-plus'
icon: 'icon-plus',
awToolTip: 'Create a new host'
},
},
@@ -85,11 +86,50 @@ angular.module('InventoryFormDefinition', [])
fieldActions: {
edit: {
ngClick: "edit('hosts', \{\{ host.id \}\}, '\{\{ host.name \}\}')",
icon: 'icon-edit'
icon: 'icon-edit',
awToolTip: 'Edit host'
},
delete: {
ngClick: "delete('hosts', \{\{ host.id \}\}, '\{\{ host.name \}\}', 'hosts')",
icon: 'icon-remove',
class: 'btn-danger',
awToolTip: 'Create a new host'
}
}
},
groups: {
type: 'collection',
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'
}
}