mirror of
https://github.com/ansible/awx.git
synced 2026-05-20 23:37:39 -02:30
Merge branch 'master' into expunge-zeromq-unstable
This commit is contained in:
@@ -61,6 +61,8 @@ function JobTemplatesList($scope, $rootScope, $location, $log, $routeParams, Res
|
|||||||
|
|
||||||
LoadBreadCrumbs();
|
LoadBreadCrumbs();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$scope.showActivity = function () {
|
$scope.showActivity = function () {
|
||||||
Stream({ scope: $scope });
|
Stream({ scope: $scope });
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -107,10 +107,10 @@ angular.module('PermissionFormDefinition', [])
|
|||||||
value: 'admin',
|
value: 'admin',
|
||||||
ngShow: "category == 'Inventory'"
|
ngShow: "category == 'Inventory'"
|
||||||
}, {
|
}, {
|
||||||
label: 'Create',
|
label: 'Create',
|
||||||
value: 'create',
|
value: 'create',
|
||||||
ngShow: "category == 'Deploy'"
|
ngShow: "category == 'Deploy'"
|
||||||
}, {
|
}, {
|
||||||
label: 'Run',
|
label: 'Run',
|
||||||
value: 'run',
|
value: 'run',
|
||||||
ngShow: "category == 'Deploy'"
|
ngShow: "category == 'Deploy'"
|
||||||
|
|||||||
@@ -22,7 +22,8 @@ angular.module('JobSubmissionHelper', [ 'RestServices', 'Utilities', 'Credential
|
|||||||
callback = params.callback || 'JobLaunched',
|
callback = params.callback || 'JobLaunched',
|
||||||
job_launch_data = {},
|
job_launch_data = {},
|
||||||
url = params.url,
|
url = params.url,
|
||||||
fld;
|
fld,
|
||||||
|
extra_vars;
|
||||||
|
|
||||||
|
|
||||||
if(!Empty(scope.passwords_needed_to_start) && scope.passwords_needed_to_start .length>0){
|
if(!Empty(scope.passwords_needed_to_start) && scope.passwords_needed_to_start .length>0){
|
||||||
@@ -31,7 +32,10 @@ angular.module('JobSubmissionHelper', [ 'RestServices', 'Utilities', 'Credential
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
if(scope.prompt_for_vars===true){
|
if(scope.prompt_for_vars===true){
|
||||||
job_launch_data.extra_vars = ToJSON(scope.parseType, scope.variables, true);
|
extra_vars = ToJSON(scope.parseType, scope.variables, false);
|
||||||
|
$.each(extra_vars, function(key,value){
|
||||||
|
job_launch_data[key] = value;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
if(scope.survey_enabled===true){
|
if(scope.survey_enabled===true){
|
||||||
for (fld in scope.job_launch_form){
|
for (fld in scope.job_launch_form){
|
||||||
|
|||||||
@@ -85,6 +85,7 @@ angular.module('JobTemplatesListDefinition', [])
|
|||||||
"class": 'btn-danger btn-xs',
|
"class": 'btn-danger btn-xs',
|
||||||
awToolTip: 'Copy template',
|
awToolTip: 'Copy template',
|
||||||
dataPlacement: 'top',
|
dataPlacement: 'top',
|
||||||
|
ngHide: 'job_template.summary_fields.can_copy===false'
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user