AC-308 Added Remove button to Hosts list.

This commit is contained in:
chouseknecht
2013-07-30 11:07:47 -04:00
parent b904dd2ae5
commit e5aeefa43d
8 changed files with 60 additions and 34 deletions

View File

@@ -156,12 +156,20 @@ angular.module('InventoryFormDefinition', [])
awToolTip: 'Edit host',
'class': 'btn-inventory-edit'
},
"remove": {
ngClick: "removeHost(\{\{ host.id \}\}, '\{\{ host.name \}\}')",
icon: 'icon-minus-sign',
label: 'Remove',
"class": 'btn-success',
ngHide: "group_id === null || group_id === undefined",
awToolTip: 'Remove this host from the group, but leave it as part of the inventory under All Hosts'
},
"delete": {
ngClick: "deleteHost(\{\{ host.id \}\}, '\{\{ host.name \}\}')",
icon: 'icon-remove',
label: 'Delete',
"class": 'btn-danger',
awToolTip: 'Remove host'
awToolTip: 'Permanently remove this host from the inventory'
}
}
}