diff --git a/awx/ui/static/js/controllers/JobDetail.js b/awx/ui/static/js/controllers/JobDetail.js index cf612950ef..476075f708 100644 --- a/awx/ui/static/js/controllers/JobDetail.js +++ b/awx/ui/static/js/controllers/JobDetail.js @@ -9,7 +9,7 @@ function JobDetailController ($location, $rootScope, $scope, $compile, $routeParams, $log, ClearScope, Breadcrumbs, LoadBreadCrumbs, GetBasePath, Wait, Rest, ProcessErrors, SelectPlay, SelectTask, Socket, GetElapsed, DrawGraph, LoadHostSummary, ReloadHostSummaryList, JobIsFinished, SetTaskStyles, DigestEvent, - UpdateDOM, EventViewer, DeleteJob, PlaybookRun, HostEventsViewer, LoadPlays, LoadTasks, LoadHosts) { + UpdateDOM, EventViewer, DeleteJob, PlaybookRun, HostEventsViewer, LoadPlays, LoadTasks, LoadHosts, HostsEdit) { ClearScope(); @@ -1091,10 +1091,22 @@ function JobDetailController ($location, $rootScope, $scope, $compile, $routePar status: status }); }; + + scope.editHost = function(id) { + console.log('clicked edit for host: ' + id); + HostsEdit({ + host_scope: scope, + group_scope: null, + host_id: id, + inventory_id: scope.job.inventory, + mode: 'edit', // 'add' or 'edit' + selected_group_id: null + }); + }; } JobDetailController.$inject = [ '$location', '$rootScope', '$scope', '$compile', '$routeParams', '$log', 'ClearScope', 'Breadcrumbs', 'LoadBreadCrumbs', 'GetBasePath', 'Wait', 'Rest', 'ProcessErrors', 'SelectPlay', 'SelectTask', 'Socket', 'GetElapsed', 'DrawGraph', 'LoadHostSummary', 'ReloadHostSummaryList', 'JobIsFinished', 'SetTaskStyles', 'DigestEvent', 'UpdateDOM', 'EventViewer', 'DeleteJob', 'PlaybookRun', 'HostEventsViewer', 'LoadPlays', 'LoadTasks', - 'LoadHosts' + 'LoadHosts', 'HostsEdit' ]; diff --git a/awx/ui/static/js/helpers/HostEventsViewer.js b/awx/ui/static/js/helpers/HostEventsViewer.js index 4dd4b55918..18c52a7129 100644 --- a/awx/ui/static/js/helpers/HostEventsViewer.js +++ b/awx/ui/static/js/helpers/HostEventsViewer.js @@ -126,6 +126,13 @@ angular.module('HostEventsViewerHelper', ['ModalDialog', 'Utilities', 'EventView var available_height = $('#host-events-modal-dialog').height() - $('#host-events-modal-dialog #search-form').height() - $('#host-events-modal-dialog #fixed-table-header').height(); $('#host-events').height(available_height); $log.debug('set height to: ' + available_height); + // Check width and reset search fields + if ($('#host-events-modal-dialog').width() <= 450) { + $('#host-events-modal-dialog #status-field').css({'margin-left': '7px'}); + } + else { + $('#host-events-modal-dialog #status-field').css({'margin-left': '15px'}); + } }; GetEvents({ diff --git a/awx/ui/static/less/job-details.less b/awx/ui/static/less/job-details.less index 83d62d8adb..0656219d61 100644 --- a/awx/ui/static/less/job-details.less +++ b/awx/ui/static/less/job-details.less @@ -27,10 +27,10 @@ width: 200px; padding-right: 15px; } - #search-form-input-icons { + #search-all-input-icons { position: absolute; - top: 5px; - left: 235px; + right: 3px; + top: 3px; a { color: #a9a9a9; } diff --git a/awx/ui/static/partials/job_detail.html b/awx/ui/static/partials/job_detail.html index 28614807ae..c836938bcf 100644 --- a/awx/ui/static/partials/job_detail.html +++ b/awx/ui/static/partials/job_detail.html @@ -228,11 +228,11 @@
- - - + + + - + @@ -311,7 +311,7 @@ {{ host.changed }}{{ host.unreachable }}{{ host.failed }} - + @@ -342,13 +342,15 @@
{{ result.name }}
{{ result.name }} {{ result.msg }}
No matching hosts
No matching hosts
@@ -378,4 +380,6 @@ + +