mirror of
https://github.com/ansible/awx.git
synced 2026-01-23 23:41:23 -03:30
Add required asterisk to add group, custom inventory source
This commit is contained in:
parent
d84626063f
commit
221ebd846b
@ -46,8 +46,8 @@ angular.module('SourceFormDefinition', [])
|
||||
sourceModel: 'credential',
|
||||
sourceField: 'name',
|
||||
ngClick: 'lookUpCredential()',
|
||||
addRequired: false,
|
||||
editRequired: false
|
||||
addRequired: true,
|
||||
editRequired: true
|
||||
},
|
||||
source_regions: {
|
||||
label: 'Regions',
|
||||
@ -108,6 +108,7 @@ angular.module('SourceFormDefinition', [])
|
||||
},
|
||||
source_script: {
|
||||
label : "Custom Inventory Script",
|
||||
labelClass: 'prepend-asterisk',
|
||||
type: 'lookup',
|
||||
ngShow: "source && source.value === 'custom'",
|
||||
sourceModel: 'source_script',
|
||||
|
||||
@ -256,7 +256,7 @@ angular.module('GroupsHelper', [ 'RestServices', 'Utilities', 'ListGenerator', '
|
||||
id: 'all',
|
||||
text: 'All'
|
||||
}]);
|
||||
$('#source_form').removeClass('squeeze');
|
||||
$('#source_form').addClass('squeeze');
|
||||
} else if (scope.source.value === 'ec2') {
|
||||
scope.source_region_choices = scope.ec2_regions;
|
||||
$('#s2id_source_source_regions').select2('data', [{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user