mirror of
https://github.com/ansible/awx.git
synced 2026-05-12 11:57:37 -02:30
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:
@@ -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: {
|
||||
|
||||
@@ -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?',
|
||||
|
||||
Reference in New Issue
Block a user