From 3cd5cd518430479db596665282c7fb03eb91f8e8 Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Mon, 16 Mar 2015 10:55:44 -0400 Subject: [PATCH] added scan job type to job type dropdown on the job template form. --- awx/ui/static/js/controllers/JobTemplates.js | 10 ++++++++-- awx/ui/static/js/forms/JobTemplates.js | 1 + 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/awx/ui/static/js/controllers/JobTemplates.js b/awx/ui/static/js/controllers/JobTemplates.js index 063b376df9..990bb31e02 100644 --- a/awx/ui/static/js/controllers/JobTemplates.js +++ b/awx/ui/static/js/controllers/JobTemplates.js @@ -276,7 +276,8 @@ export function JobTemplatesAdd($scope, $rootScope, $compile, $location, $log, $ $scope.job_type_options = [ { value: 'run', label: 'Run' }, - { value: 'check', label: 'Check' } + { value: 'check', label: 'Check' }, + { value: 'scan' , label: 'Scan'} ]; $scope.verbosity_options = [ @@ -340,6 +341,10 @@ export function JobTemplatesAdd($scope, $rootScope, $compile, $location, $log, $ parent_scope: $scope }); + // $scope.jobTypeChange = function(){ + // + // }; + // Update playbook select whenever project value changes selectPlaybook = function (oldValue, newValue) { var url; @@ -591,7 +596,8 @@ export function JobTemplatesEdit($scope, $rootScope, $compile, $location, $log, // Our job type options $scope.job_type_options = [ { value: 'run', label: 'Run' }, - { value: 'check', label: 'Check' } + { value: 'check', label: 'Check' }, + { value: 'scan', label: 'Scan'} ]; $scope.verbosity_options = [ diff --git a/awx/ui/static/js/forms/JobTemplates.js b/awx/ui/static/js/forms/JobTemplates.js index f78f556474..404e5f2729 100644 --- a/awx/ui/static/js/forms/JobTemplates.js +++ b/awx/ui/static/js/forms/JobTemplates.js @@ -66,6 +66,7 @@ export default label: 'Job Type', type: 'select', ngOptions: 'type.label for type in job_type_options track by type.value', + ngChange: 'jobTypeChange()', "default": 0, addRequired: true, editRequired: true,