mirror of
https://github.com/ansible/awx.git
synced 2026-03-23 03:45:01 -02:30
adding some comments to code that i discussed with chris
This commit is contained in:
@@ -131,7 +131,10 @@ angular.module('Tower', [
|
|||||||
templateUrl: urlPrefix + 'partials/jobs.html',
|
templateUrl: urlPrefix + 'partials/jobs.html',
|
||||||
controller: 'JobsListController'
|
controller: 'JobsListController'
|
||||||
}).
|
}).
|
||||||
|
// when('/portal', {
|
||||||
|
// controller: 'Portal'
|
||||||
|
|
||||||
|
// })
|
||||||
when('/jobs/:id', {
|
when('/jobs/:id', {
|
||||||
templateUrl: urlPrefix + 'partials/job_detail.html',
|
templateUrl: urlPrefix + 'partials/job_detail.html',
|
||||||
controller: 'JobDetailController'
|
controller: 'JobDetailController'
|
||||||
|
|||||||
@@ -376,7 +376,13 @@ function($location, Wait, GetBasePath, LookUpInit, JobTemplateForm, CredentialLi
|
|||||||
|
|
||||||
};
|
};
|
||||||
}])
|
}])
|
||||||
|
/**
|
||||||
|
* @ngdoc method
|
||||||
|
* @name helpers.function:JobSubmission#PlaybookRun
|
||||||
|
* @methodOf helpers.function:JobSubmission
|
||||||
|
* @description The playbook Run function is run when the user clicks the launch button
|
||||||
|
*
|
||||||
|
*/
|
||||||
// Submit request to run a playbook
|
// Submit request to run a playbook
|
||||||
.factory('PlaybookRun', ['$location','$routeParams', 'LaunchJob', 'PromptForPasswords', 'Rest', 'GetBasePath', 'Alert', 'ProcessErrors', 'Wait', 'Empty', 'PromptForCredential', 'PromptForVars',
|
.factory('PlaybookRun', ['$location','$routeParams', 'LaunchJob', 'PromptForPasswords', 'Rest', 'GetBasePath', 'Alert', 'ProcessErrors', 'Wait', 'Empty', 'PromptForCredential', 'PromptForVars',
|
||||||
function ($location, $routeParams, LaunchJob, PromptForPasswords, Rest, GetBasePath, Alert, ProcessErrors, Wait, Empty, PromptForCredential, PromptForVars) {
|
function ($location, $routeParams, LaunchJob, PromptForPasswords, Rest, GetBasePath, Alert, ProcessErrors, Wait, Empty, PromptForCredential, PromptForVars) {
|
||||||
|
|||||||
@@ -204,7 +204,7 @@ angular.module('Utilities', ['RestServices', 'Utilities'])
|
|||||||
else {
|
else {
|
||||||
Alert('Error!', data.__all__);
|
Alert('Error!', data.__all__);
|
||||||
}
|
}
|
||||||
} else if (form) {
|
} else if (form) { //if no error code is detected it begins to loop through to see where the api threw an error
|
||||||
fieldErrors = false;
|
fieldErrors = false;
|
||||||
for (field in form.fields) {
|
for (field in form.fields) {
|
||||||
if (data[field] && form.fields[field].tab) {
|
if (data[field] && form.fields[field].tab) {
|
||||||
|
|||||||
@@ -47,6 +47,12 @@
|
|||||||
|
|
||||||
angular.module('FormGenerator', ['GeneratorHelpers', 'Utilities', 'ListGenerator'])
|
angular.module('FormGenerator', ['GeneratorHelpers', 'Utilities', 'ListGenerator'])
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ngdoc method
|
||||||
|
* @name lib.ansible.function:form#GenerateForm
|
||||||
|
* @methodOf lib.ansible.function:form
|
||||||
|
* @description this is the most commonly used function when generating the html for forms
|
||||||
|
*/
|
||||||
.factory('GenerateForm', ['$rootScope', '$location', '$compile', 'GenerateList', 'SearchWidget', 'PaginateWidget', 'Attr',
|
.factory('GenerateForm', ['$rootScope', '$location', '$compile', 'GenerateList', 'SearchWidget', 'PaginateWidget', 'Attr',
|
||||||
'Icon', 'Column', 'NavigationLink', 'HelpCollapse', 'Button', 'DropDown', 'Empty', 'SelectIcon', 'Store',
|
'Icon', 'Column', 'NavigationLink', 'HelpCollapse', 'Button', 'DropDown', 'Empty', 'SelectIcon', 'Store',
|
||||||
function ($rootScope, $location, $compile, GenerateList, SearchWidget, PaginateWidget, Attr, Icon, Column, NavigationLink,
|
function ($rootScope, $location, $compile, GenerateList, SearchWidget, PaginateWidget, Attr, Icon, Column, NavigationLink,
|
||||||
|
|||||||
Reference in New Issue
Block a user