Synced code between list view and related list view. Column displaying icon with text rather than actual value (i.e. true/false for has_active_failures) works consistently. Changed icon and text for our has_active_failures column -preparing it to link to hosts/N/job_events data.

This commit is contained in:
chouseknecht
2013-06-14 12:17:31 -04:00
parent 703bc0fca1
commit ab9b9f84c5
16 changed files with 791 additions and 1113 deletions

View File

@@ -96,14 +96,16 @@ angular.module('InventoryFormDefinition', [])
ngClick: "editHost(\{\{ host.id \}\}, '\{\{ host.name \}\}')"
},
description: {
label: 'Description'
label: 'Description',
ngClick: "editHost(\{\{ host.id \}\}, '\{\{ host.name \}\}')"
},
has_active_failures: {
label: 'Failures',
showValue: false,
ngShowIcon: "\{\{ host.has_active_failures \}\}",
icon: 'icon-circle',
ngShow: "\{\{ host.has_active_failures \}\}",
icon: 'icon-exclamation-sign',
"class": 'active-failures-\{\{ host.has_active_failures \}\}',
text: 'Failed events',
searchField: 'has_active_failures',
searchType: 'boolean',
searchOptions: [{ name: "No", value: 0 }, { name: "Yes", value: 1 }]