mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 18:07:36 -02:30
Group.js
Adding placeholder options for ec2 tag filtering
This commit is contained in:
@@ -239,6 +239,22 @@ angular.module('GroupsHelper', [ 'RestServices', 'Utilities', 'ListGenerator', '
|
|||||||
id: 'all',
|
id: 'all',
|
||||||
text: 'All'
|
text: 'All'
|
||||||
}]);
|
}]);
|
||||||
|
// FIXME: Should come from API.
|
||||||
|
scope.group_by_choices = [
|
||||||
|
{label: 'All', name: 'All', value: 'all'},
|
||||||
|
{label: 'Instance ID', name: 'Instance ID', value: 'instance_id'},
|
||||||
|
{label: 'Region', name: 'Region', value: 'region'},
|
||||||
|
{label: 'Availability Zone', name: 'Availability Zone', value: 'availability_zone'},
|
||||||
|
{label: 'AMI ID', name: 'AMI ID', value: 'ami_id'},
|
||||||
|
{label: 'Instance Type', name: 'Instance Type', value: 'instance_type'},
|
||||||
|
{label: 'Key Pair', name: 'Key Pair', value: 'key_pair'},
|
||||||
|
{label: 'Security Group', name: 'Security Group', value: 'security_group'},
|
||||||
|
{label: 'Tag Keys', name: 'Tag Keys', value: 'tag_keys'},
|
||||||
|
];
|
||||||
|
$('#s2id_source_group_by').select2('data', [{
|
||||||
|
id: 'all',
|
||||||
|
text: 'All'
|
||||||
|
}]);
|
||||||
$('#source_form').addClass('squeeze');
|
$('#source_form').addClass('squeeze');
|
||||||
} else if (scope.source.value === 'gce') {
|
} else if (scope.source.value === 'gce') {
|
||||||
scope.source_region_choices = scope.gce_regions;
|
scope.source_region_choices = scope.gce_regions;
|
||||||
|
|||||||
Reference in New Issue
Block a user