Modified search widget heper to no longer include 'row' element in the returned html. Callers will now controll the row definition. Moved breadcrumb generation from list-generator to generator-helpers so that it can be called from anywhere, including the inventory edit controller. Breadcrumbs now appear on inventory edit page. Changed search to check if searchPlaceholer field property is a scope variable. If it is, use the scope variable's value. Now clicking on a group name highlights it, searches for hosts and changes the search filed placeholder value to include the group name.

This commit is contained in:
Chris Houseknecht
2013-12-31 06:56:01 +00:00
parent 156652d60b
commit a4098a6df7
11 changed files with 336 additions and 454 deletions

View File

@@ -24,8 +24,8 @@ angular.module('InventoryGroupsDefinition', [])
name: {
label: 'Group',
key: true,
ngClick: "\{\{ 'showHosts(' + group.id + ')' \}\}",
//ngClass: "\{\{ 'level' + group.level \}\}",
ngClick: "\{\{ 'showHosts(' + group.id + ',' + group.group_id + ')' \}\}",
ngClass: "group.selected_class",
hasChildren: true
},
status: {

View File

@@ -24,7 +24,8 @@ angular.module('InventoryHostsDefinition', [])
name: {
key: true,
label: 'Name',
ngClick: "editHost(\{\{ host.id \}\}, '\{\{ host.name \}\}')"
ngClick: "editHost(\{\{ host.id \}\}, '\{\{ host.name \}\}')",
searchPlaceholder: "search_place_holder"
},
active_failures: {
label: 'Job Status',
@@ -55,7 +56,8 @@ angular.module('InventoryHostsDefinition', [])
searchable: true,
sourceModel: 'groups',
sourceField: 'name',
nosort: true
nosort: true,
searchPlaceholder: "search_place_holder"
},
enabled: {
label: 'Disabled?',