From 2ac09a34fbc67ef6102cf136ae3fd5486c02561d Mon Sep 17 00:00:00 2001 From: Chris Houseknecht Date: Wed, 9 Jul 2014 11:43:52 -0400 Subject: [PATCH] Job detail page re-refactor Added search dialogs to each list. Now need to wire them. --- awx/ui/static/js/helpers/EventViewer.js | 8 + awx/ui/static/js/helpers/HostEventsViewer.js | 8 + awx/ui/static/less/job-details.less | 56 ++++--- awx/ui/static/partials/job_detail.html | 159 ++++++++++++++----- 4 files changed, 165 insertions(+), 66 deletions(-) diff --git a/awx/ui/static/js/helpers/EventViewer.js b/awx/ui/static/js/helpers/EventViewer.js index f900784e8d..065fb30933 100644 --- a/awx/ui/static/js/helpers/EventViewer.js +++ b/awx/ui/static/js/helpers/EventViewer.js @@ -89,6 +89,14 @@ angular.module('EventViewerHelper', ['ModalDialog', 'Utilities', 'EventsViewerFo id: 'eventviewer-modal-dialog', // onResizeStop: resizeText, title: ( (title) ? title : 'Event Details' ), + onClose: function() { + try { + scope.$destroy(); + } + catch(e) { + //ignore + } + }, onOpen: function() { $('#eventview-tabs a:first').tab('show'); $('#dialog-ok-button').focus(); diff --git a/awx/ui/static/js/helpers/HostEventsViewer.js b/awx/ui/static/js/helpers/HostEventsViewer.js index b291cb691b..4dd4b55918 100644 --- a/awx/ui/static/js/helpers/HostEventsViewer.js +++ b/awx/ui/static/js/helpers/HostEventsViewer.js @@ -56,6 +56,14 @@ angular.module('HostEventsViewerHelper', ['ModalDialog', 'Utilities', 'EventView id: 'host-events-modal-dialog', onResizeStop: fixHeight, title: ( (title) ? title : 'Host Events' ), + onClose: function() { + try { + scope.$destroy(); + } + catch(e) { + //ignore + } + }, onOpen: function() { fixHeight(); } diff --git a/awx/ui/static/less/job-details.less b/awx/ui/static/less/job-details.less index 81c95cd061..b9f6e43dd4 100644 --- a/awx/ui/static/less/job-details.less +++ b/awx/ui/static/less/job-details.less @@ -268,25 +268,16 @@ .table-detail { overflow-x: hidden; overflow-y: auto; - border: 1px solid @well-border; - border-radius: 4px; background-color: @white; - /*padding-left: 3px; */ .row { border-top: 1px solid @well-border; } .row:first-child { border: none; } - /*.row:nth-child(odd) { - background-color: @well; - padding-top: 0; - padding-bottom: 0; - }*/ .active { background-color: #EDF2F2; } - .loading-info { padding-top: 5px; padding-left: 3px; @@ -307,16 +298,16 @@ } } + .title { + font-size: 14px; + font-weight: 600; + } + .header { width: 100%; height: 28px; padding: bottom: 5px; - .title { - display: inline-block; - font-size: 14px; - font-weight: 600; - } .search-field { display: inline-block; @@ -361,11 +352,31 @@ font-size: 14px; } + .title-row { + margin-bottom: 15px; + margin-top: 20px; + } + + .search-form { + font-size: 12px; + .form-control { + font-size: 12px; + } + .form-group:nth-of-type(2) { + margin-left: 10px; + } + } + + .search-name { + .input-xs { + height: 25px; + } + } + #search-all-input-icons { position: absolute; right: 3px; - top: 5px; - z-index: 100; + top: 3px; a { color: #a9a9a9; } @@ -384,8 +395,6 @@ left: 0; #hosts-table-detail { padding: 3px 0 3px 5px; - border: 1px solid @well-border; - border-top: 2px solid @well-border; height: 150px; background-color: @white; .col-lg-1, .col-md-1, .col-sm-1, .col-xs-1 { @@ -419,6 +428,10 @@ } } + .legend-row { + margin-bottom: 15px; + } + .legend { display: inline-block; font-size: 12px; @@ -432,13 +445,12 @@ } } - .mCSB_container { - margin-right: 18px; - } - #graph-section { position: relative; width: 100%; + .legend { + margin-top: 15px; + } .header { margin-top: 20px; .legend { diff --git a/awx/ui/static/partials/job_detail.html b/awx/ui/static/partials/job_detail.html index aa06931da7..d608094c04 100644 --- a/awx/ui/static/partials/job_detail.html +++ b/awx/ui/static/partials/job_detail.html @@ -75,7 +75,33 @@
-
Plays
+ +
+
Plays
+
+
+
+ +
+ +
+ + +
+
+
+
+ +
+ + +
+
+
+
+
+
@@ -106,7 +132,33 @@
-
Tasks
+ +
+
Tasks
+
+
+
+ +
+ +
+ + +
+
+
+
+ +
+ + +
+
+
+
+
+
@@ -142,14 +194,33 @@
-
-
Hosts
- + +
+
Hosts
+
+
+
+ +
+ +
+ + +
+
+
+
+ +
+ + +
+
+
+
+
@@ -182,41 +253,41 @@
-
-
-
Filter
-
-
-
-
- -
- - -
-
-
-
- -
- - -
-
-
-
- -
-
-
-
-
-
Host Summary
-
OK Changed - Unreachable Failed
+ +
+
Summary
+
+
+
+ +
+ +
+ + +
+
+
+
+ +
+ + +
+
+
+
+ +
+
+
OK Changed + Unreachable Failed
+
+
+
Host
@@ -248,8 +319,8 @@
-
Host Status Summary
-