From 221ebd846b915c2ba9d06fe3828fc6921116f458 Mon Sep 17 00:00:00 2001 From: John Mitchell Date: Mon, 12 Jan 2015 13:24:40 -0500 Subject: [PATCH] Add required asterisk to add group, custom inventory source --- awx/ui/static/js/forms/Source.js | 5 +++-- awx/ui/static/js/helpers/Groups.js | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/awx/ui/static/js/forms/Source.js b/awx/ui/static/js/forms/Source.js index 0ed2186e5e..410dca4c28 100644 --- a/awx/ui/static/js/forms/Source.js +++ b/awx/ui/static/js/forms/Source.js @@ -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', diff --git a/awx/ui/static/js/helpers/Groups.js b/awx/ui/static/js/helpers/Groups.js index a243be30bd..9a7b1c2bab 100644 --- a/awx/ui/static/js/helpers/Groups.js +++ b/awx/ui/static/js/helpers/Groups.js @@ -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', [{