diff --git a/awx/ui/client/src/controllers/Jobs.js b/awx/ui/client/src/controllers/Jobs.js index e0b45e5c83..e91153de41 100644 --- a/awx/ui/client/src/controllers/Jobs.js +++ b/awx/ui/client/src/controllers/Jobs.js @@ -23,6 +23,8 @@ export function JobsListController ($rootScope, $log, $scope, $compile, $statePa api_complete = false, max_rows; + $scope.jobsSelected = true; + if ($scope.removeListLoaded) { $scope.removeListLoaded(); } @@ -90,6 +92,20 @@ export function JobsListController ($rootScope, $log, $scope, $compile, $statePa scheduled_scope.search('schedule'); }; + function clearTabs() { + $scope.jobsSelected = false; + $scope.schedulesSelected = false; + } + + $scope.toggleTab = function(tab) { + clearTabs(); + if (tab === "jobs") { + $scope.jobsSelected = true; + } else if (tab === "scheduled") { + $scope.schedulesSelected = true; + } + }; + if ($rootScope.removeJobStatusChange) { $rootScope.removeJobStatusChange(); } diff --git a/awx/ui/client/src/helpers/Jobs.js b/awx/ui/client/src/helpers/Jobs.js index 115af21b62..e59afd9f82 100644 --- a/awx/ui/client/src/helpers/Jobs.js +++ b/awx/ui/client/src/helpers/Jobs.js @@ -396,7 +396,8 @@ export default mode: 'edit', id: id, scope: scope, - showSearch: false + showSearch: false, + title: false }); SearchInit({ diff --git a/awx/ui/client/src/helpers/Schedules.js b/awx/ui/client/src/helpers/Schedules.js index f744d6731c..5fae4612a2 100644 --- a/awx/ui/client/src/helpers/Schedules.js +++ b/awx/ui/client/src/helpers/Schedules.js @@ -710,7 +710,8 @@ export default id: id, scope: scope, searchSize: (searchSize) ? searchSize : 'col-lg-6 col-md-6 col-sm-6 col-xs-12', - showSearch: true + showSearch: true, + title: false }); SearchInit({ diff --git a/awx/ui/client/src/partials/jobs.html b/awx/ui/client/src/partials/jobs.html index 3753029090..2d3cc442a9 100644 --- a/awx/ui/client/src/partials/jobs.html +++ b/awx/ui/client/src/partials/jobs.html @@ -10,13 +10,21 @@ -
- -
-
+
+
+ + +
+
@@ -26,7 +34,8 @@
-
+
diff --git a/awx/ui/client/src/shared/list-generator/list-generator.factory.js b/awx/ui/client/src/shared/list-generator/list-generator.factory.js index cb5528a3cd..9de1e2acff 100644 --- a/awx/ui/client/src/shared/list-generator/list-generator.factory.js +++ b/awx/ui/client/src/shared/list-generator/list-generator.factory.js @@ -299,30 +299,32 @@ export default ['$location', '$compile', '$rootScope', 'SearchWidget', 'Paginate list = this.list, base, size, action, fld, cnt, field_action, fAction, itm; - html += "
"; - html += "
"; + if(options.title !== false){ + html += "
"; + html += "
"; - if (list.listTitle) { + if (list.listTitle) { - html += "
" + list.listTitle + "
"; - html += "{{(" + list.iterator + "_total_rows | number:0)}}"; + html += "
" + list.listTitle + "
"; + html += "{{(" + list.iterator + "_total_rows | number:0)}}"; + } + + html += "
"; + html += "
"; + html += "
\n"; + + for (action in list.actions) { + list.actions[action] = _.defaults(list.actions[action], { dataPlacement: "top" }); + } + + html += "
\n"; + html += "
"; + html += "
"; } - html += "
"; - html += "
"; - html += "
\n"; - - for (action in list.actions) { - list.actions[action] = _.defaults(list.actions[action], { dataPlacement: "top" }); - } - - html += "
\n"; - html += "
"; - html += "
"; - if (options.mode === 'edit' && list.editInstructions) { html += "
\n"; html += "\n";