Created a way to remove table row borders. Created a way to add an 'active-row' class to selected table border. Injecting hosts list into same scope as groups list. Streamlined host/job status message.

This commit is contained in:
Chris Houseknecht
2014-01-09 16:18:02 +00:00
parent ec5686770b
commit e6c0032444
8 changed files with 67 additions and 41 deletions

View File

@@ -16,16 +16,16 @@ angular.module('InventoryGroupsDefinition', [])
showTitle: false,
well: true,
index: false,
hover: true,
hover: false,
hasChildren: true,
filterBy: '\{ show: true \}',
'class': 'table-condensed',
'class': 'table-condensed table-no-border',
fields: {
name: {
label: 'Groups',
key: true,
ngClick: "\{\{ 'showHosts(' + group.id + ',' + group.group_id + ')' \}\}",
ngClick: "\{\{ 'showHosts(' + group.id + ',' + group.group_id + ', false)' \}\}",
ngClass: "group.selected_class",
hasChildren: true,
columnClass: 'col-lg-9',
@@ -121,7 +121,7 @@ angular.module('InventoryGroupsDefinition', [])
awToolTip: "\{\{ group.hosts_status_tip \}\}",
ngShow: "group.id > 1", // hide for all hosts
dataPlacement: "top",
ngClick: "viewFailedHosts(\{\{ group.id \}\})",
ngClick: "\{\{ 'showHosts(' + group.id + ',' + group.group_id + ',' + group.show_failures + ')' \}\}",
iconClass: "\{\{ 'fa icon-failures-' + group.hosts_status_class \}\}"
},
group_update: {

View File

@@ -16,9 +16,9 @@ angular.module('InventoryHostsDefinition', [])
showTitle: false,
well: true,
index: false,
hover: true,
hover: false,
hasChildren: true,
'class': 'table-condensed',
'class': 'table-condensed table-no-border',
fields: {
name: {
@@ -85,15 +85,15 @@ angular.module('InventoryHostsDefinition', [])
fieldActions: {
edit: {
label: 'Edit',
//label: 'Edit',
ngClick: "editGroup(\{\{ host.id \}\})",
icon: 'icon-edit',
"class": 'btn-xs btn-primary',
awToolTip: 'Edit host'
},
"delete": {
label: 'Delete',
ngClick: "deleteHoust(\{\{ host.id \}\},'\{\{ host.name \}\}')",
//label: 'Delete',
ngClick: "deleteHost(\{\{ host.id \}\},'\{\{ host.name \}\}')",
icon: 'icon-trash',
"class": 'btn-xs btn-primary',
awToolTip: 'Delete host'
@@ -104,8 +104,7 @@ angular.module('InventoryHostsDefinition', [])
create: {
mode: 'all',
ngClick: "createHost()",
ngHide: "hostCreateHide",
ngDisabled: 'BtnDisabled',
ngHide: "!selected_tree_id",
awToolTip: "Create a new host"
},
stream: {