From 2b4014cf4de428053913baa1ddde46b9ac79ad5a Mon Sep 17 00:00:00 2001 From: chouseknecht Date: Wed, 21 May 2014 13:22:45 -0400 Subject: [PATCH] AC-1294 stdout button is now available at all times regardless of job status. AC-1272 lookup dialog clean up. Previous list clean up assigned column width classes to most columns. These classes were being used to build lookup dialogs. The list generator now checks if for 'lookup' mode and a modalColumnClass setting rather than blindly using columnClass. --- awx/ui/static/js/lists/Credentials.js | 3 ++- awx/ui/static/js/lists/Inventories.js | 4 ++- awx/ui/static/js/lists/Organizations.js | 3 ++- awx/ui/static/js/lists/Projects.js | 6 +++-- awx/ui/static/js/lists/Teams.js | 9 ++++--- .../static/lib/ansible/generator-helpers.js | 25 +++++++++++-------- awx/ui/static/lib/ansible/list-generator.js | 12 ++++++--- awx/ui/static/partials/job_detail.html | 22 ++++++++-------- 8 files changed, 51 insertions(+), 33 deletions(-) diff --git a/awx/ui/static/js/lists/Credentials.js b/awx/ui/static/js/lists/Credentials.js index 12addac507..a6002cf48a 100644 --- a/awx/ui/static/js/lists/Credentials.js +++ b/awx/ui/static/js/lists/Credentials.js @@ -26,7 +26,8 @@ angular.module('CredentialsListDefinition', []) name: { key: true, label: 'Name', - columnClass: 'col-md-3 col-sm-9 col-xs-9' + columnClass: 'col-md-3 col-sm-9 col-xs-9', + modalColumnClass: 'col-md-8' }, description: { label: 'Description', diff --git a/awx/ui/static/js/lists/Inventories.js b/awx/ui/static/js/lists/Inventories.js index d35b6704e1..53983903e3 100644 --- a/awx/ui/static/js/lists/Inventories.js +++ b/awx/ui/static/js/lists/Inventories.js @@ -28,6 +28,7 @@ angular.module('InventoriesListDefinition', []) nosort: true, ngClick: "null", iconOnly: true, + excludeModal: true, icons: [{ icon: "{{ 'icon-cloud-' + inventory.syncStatus }}", awToolTip: "{{ inventory.syncTip }}", @@ -45,7 +46,8 @@ angular.module('InventoriesListDefinition', []) name: { key: true, label: 'Name', - columnClass: 'col-md-4 col-sm-6 col-xs-6' + columnClass: 'col-md-4 col-sm-6 col-xs-6', + modalColumnClass: 'col-md-8' }, organization: { label: 'Organization', diff --git a/awx/ui/static/js/lists/Organizations.js b/awx/ui/static/js/lists/Organizations.js index 7c315b6d8d..9d68618059 100644 --- a/awx/ui/static/js/lists/Organizations.js +++ b/awx/ui/static/js/lists/Organizations.js @@ -27,7 +27,8 @@ angular.module('OrganizationListDefinition', []) }, description: { label: 'Description', - columnClass: 'hidden-sm hidden-xs' + columnClass: 'hidden-sm hidden-xs', + excludeModal: true } }, diff --git a/awx/ui/static/js/lists/Projects.js b/awx/ui/static/js/lists/Projects.js index 0a23e8fa53..db542f73c8 100644 --- a/awx/ui/static/js/lists/Projects.js +++ b/awx/ui/static/js/lists/Projects.js @@ -33,12 +33,14 @@ angular.module('ProjectsListDefinition', []) columnClass: "col-lg-1 col-md-1 col-sm-2 col-xs-2", nosort: true, searchType: 'select', - searchOptions: [] //set in the controller + searchOptions: [], //set in the controller + excludeModal: true }, name: { key: true, label: 'Name', - columnClass: "col-lg-6 col-md-4 col-sm-6 col-xs-6" + columnClass: "col-lg-6 col-md-4 col-sm-6 col-xs-6", + modalColumnClass: 'col-md-8' }, last_updated: { label: 'Last Updated', diff --git a/awx/ui/static/js/lists/Teams.js b/awx/ui/static/js/lists/Teams.js index 0d736031d7..dbb773a32d 100644 --- a/awx/ui/static/js/lists/Teams.js +++ b/awx/ui/static/js/lists/Teams.js @@ -24,18 +24,21 @@ angular.module('TeamsListDefinition', []) name: { key: true, label: 'Name', - columnClass: 'col-md-4 col-sm-9 col-xs-9' + columnClass: 'col-md-4 col-sm-9 col-xs-9', + modalColumnClass: 'col-md-8' }, description: { label: 'Description', - columnClass: 'col-md-3 hidden-sm hidden-xs' + columnClass: 'col-md-3 hidden-sm hidden-xs', + excludeModal: true }, organization: { label: 'Organization', ngBind: 'team.organization_name', sourceModel: 'organization', sourceField: 'name', - columnClass: 'col-md-3 hidden-sm hidden-xs' + columnClass: 'col-md-3 hidden-sm hidden-xs', + excludeModal: true } }, diff --git a/awx/ui/static/lib/ansible/generator-helpers.js b/awx/ui/static/lib/ansible/generator-helpers.js index af59a0ddde..a0a31fb473 100644 --- a/awx/ui/static/lib/ansible/generator-helpers.js +++ b/awx/ui/static/lib/ansible/generator-helpers.js @@ -80,7 +80,7 @@ angular.module('GeneratorHelpers', []) .factory('SelectIcon', ['Icon', function (Icon) { return function (params) { - // Common point for matching any type of action to the appropriate + // Common point for matching any type of action to the appropriate // icon. The intention is to maintain consistent meaning and presentation // for every icon used in the application. var icon, @@ -465,7 +465,7 @@ angular.module('GeneratorHelpers', []) list = params.list, base = params.base, fld = params.fld; - + if (field.linkTo) { html += "\n"; - + if (includeSize) { html += "\n"; } diff --git a/awx/ui/static/lib/ansible/list-generator.js b/awx/ui/static/lib/ansible/list-generator.js index dee5c9b8fb..6899e92fd1 100644 --- a/awx/ui/static/lib/ansible/list-generator.js +++ b/awx/ui/static/lib/ansible/list-generator.js @@ -323,8 +323,7 @@ angular.module('ListGenerator', ['GeneratorHelpers']) for (fld in list.fields) { cnt++; if ((list.fields[fld].searchOnly === undefined || list.fields[fld].searchOnly === false) && - !(options.mode === 'lookup' && list.fields[fld].excludeModal !== undefined && - list.fields[fld].excludeModal === true)) { + !(options.mode === 'lookup' && list.fields[fld].excludeModal === true)) { html += Column({ list: list, fld: fld, @@ -449,9 +448,14 @@ angular.module('ListGenerator', ['GeneratorHelpers']) } for (fld in list.fields) { if ((list.fields[fld].searchOnly === undefined || list.fields[fld].searchOnly === false) && - !(options.mode === 'lookup' && list.fields[fld].excludeModal !== undefined && list.fields[fld].excludeModal === true)) { + !(options.mode === 'lookup' && list.fields[fld].excludeModal === true)) { html += "
- +
- +
@@ -20,7 +20,7 @@
{{ job_status.status }}
{{ job_status.explanation }}
- +
@@ -52,14 +52,14 @@
-
-
{{ play.name }}
@@ -84,7 +84,7 @@ -
{{ task.role }} {{ task.name }}
@@ -130,7 +130,7 @@
- +
@@ -171,7 +171,7 @@
Host Summary
-
Successful Changed +
Successful Changed Unreachable Failed
@@ -206,10 +206,10 @@
Host Status Summary
- -
+