diff --git a/awx/ui/static/js/widgets/PortalJobTemplate.js b/awx/ui/static/js/widgets/PortalJobTemplate.js new file mode 100644 index 0000000000..dc2b74bc73 --- /dev/null +++ b/awx/ui/static/js/widgets/PortalJobTemplate.js @@ -0,0 +1,177 @@ +/********************************************* + * Copyright (c) 2014 AnsibleWorks, Inc. + */ + /** + * @ngdoc function + * @name widgets.function:DashboardJobs + * @description + * + */ + +'use strict'; + +angular.module('PortalJobTemplateWidget', ['RestServices', 'Utilities']) +.factory('PortalJobTemplate', ['$rootScope', '$compile', 'LoadSchedulesScope', 'LoadJobsScope', 'JobsList', 'ScheduledJobsList', 'GetChoices', 'GetBasePath', + function ($rootScope, $compile, LoadSchedulesScope, LoadJobsScope, JobsList, ScheduledJobsList, GetChoices, GetBasePath) { + return function (params) { + var scope = params.scope, + target = params.target, + choicesCount = 0, + listCount = 0, + jobs_scope = scope.$new(true), + scheduled_scope = scope.$new(true), + max_rows, + html, e; + + html = ''; + html += "