Inventory cleanup. Added tooltip to host status indicators. Did same for project status indicator. Fixed inventory host create button color.

This commit is contained in:
chouseknecht 2013-09-10 03:11:29 -04:00
parent de9c8a258c
commit 106023e530
4 changed files with 11 additions and 5 deletions

View File

@ -21,7 +21,9 @@ angular.module('InventoryHostsFormDefinition', [])
label: 'Host Name',
ngClick: "editHost(\{\{ host.id \}\}, '\{\{ host.name \}\}')",
badgeIcon: "\{\{ 'icon-failures-' + host.has_active_failures \}\}",
badgeToolTip: 'Indicates if host has active failures',
badgePlacement: 'left',
badgeTipPlacement: 'bottom',
columnClass: 'col-lg-3'
},
groups: {
@ -59,7 +61,7 @@ angular.module('InventoryHostsFormDefinition', [])
ngHide: "hostAddHide",
awToolTip: "Copy an existing host to the selected group",
dataPlacement: 'bottom',
'class': 'btn-sm btn-primary',
'class': 'btn-sm btn-success',
icon: 'icon-check'
},
create: {

View File

@ -479,7 +479,8 @@ angular.module('HostsHelper', [ 'RestServices', 'Utilities', 'ListGenerator', 'H
"data-name=\"" + sorted[i].name + "\" " +
"data-group-id=\"" + sorted[i].id + "\" " +
"><a href=\"\" class=\"expand\"><i class=\"icon-caret-down\"></i></a> " +
"<i class=\"field-badge icon-failures-" + sorted[i].has_active_failures + "\"></i> " +
"<i class=\"field-badge icon-failures-" + sorted[i].has_active_failures + "\" " +
"aw-tool-tip=\"Indicates if group contains hosts with active failures\" data-placement=\"bottom\"></i> " +
"<a href=\"\" class=\"activate\">" + sorted[i].name + "</a> ";
if (sorted[i].children.length > 0) {
buildHTML(sorted[i].children);
@ -649,7 +650,8 @@ angular.module('HostsHelper', [ 'RestServices', 'Utilities', 'ListGenerator', 'H
"data-groups=\"" + data.related.groups + "\" " +
"data-name=\"" + data.name + "\" " +
"><a href=\"\" class=\"expand\"><i class=\"icon-caret-down\"></i></a> " +
"<i class=\"field-badge icon-failures-" + data.has_active_failures + "\"></i> " +
"<i class=\"field-badge icon-failures-" + data.has_active_failures + "\"" +
"aw-tool-tip=\"Indicates if group contains hosts with active failures\" data-placement=\"bottom\"></i> " +
"<a href=\"\" class=\"activate active\">" + data.name + "</a>";
scope.$emit('buildAllGroups', data.name, data.related.tree, data.related.groups);
scope.$emit('refreshHost', null, 'All Hosts');

View File

@ -24,7 +24,7 @@ angular.module('InventoriesListDefinition', [])
label: 'Name',
badgeIcon: "\{\{ 'icon-failures-' + inventory.has_active_failures \}\}",
badgePlacement: 'left',
badgeToolTip: 'Inventory contains hosts with active failures',
badgeToolTip: 'Indicates if inventory contains hosts with active failures',
badgeTipPlacement: 'bottom'
},
description: {

View File

@ -24,7 +24,9 @@ angular.module('ProjectsListDefinition', [])
key: true,
label: 'Name',
badgeIcon: "\{\{ 'icon-failures-' + project.badge \}\}",
badgePlacement: 'left'
badgePlacement: 'left',
badgeToolTip: "Indicates the project\'s health based on its status",
badgeTipPlacement: 'bottom'
},
description: {
label: 'Description'