From 1cb74b8ccc7c52cae0ea2336758b49d56d2bc5ce Mon Sep 17 00:00:00 2001 From: chouseknecht Date: Wed, 16 Oct 2013 19:45:15 +0000 Subject: [PATCH] AC-562 fixed CSS issue causing inventory status to appear as blue rather than green. Updated help for all elements on Groups page. --- awx/ui/static/js/forms/Groups.js | 23 ++++++++++++++-------- awx/ui/static/js/lists/InventorySummary.js | 3 ++- awx/ui/static/less/ansible-ui.less | 2 +- 3 files changed, 18 insertions(+), 10 deletions(-) diff --git a/awx/ui/static/js/forms/Groups.js b/awx/ui/static/js/forms/Groups.js index 43c8c233a9..74ff58b0e1 100644 --- a/awx/ui/static/js/forms/Groups.js +++ b/awx/ui/static/js/forms/Groups.js @@ -151,7 +151,7 @@ angular.module('GroupFormDefinition', []) editRequired: false, dataTitle: 'Source Regions', dataPlacement: 'left', - awPopOver: "

Comma separated list of regions. Region names must match those defined at the inventory source (i.e. ec2 or rackspace). " + + awPopOver: "

Comma separated list of regions. Region names must match those defined at the inventory source. " + "Only hosts associated with the list of regions will be included in the update process.

", dataContainer: 'body' }, @@ -164,7 +164,7 @@ angular.module('GroupFormDefinition', []) editRequired: false, dataTitle: 'Source Regions', dataPlacement: 'left', - awPopOver: "

Comma separated list of tags. Tag names must match those defined at the inventory source (i.e. ec2 or rackspace)." + + awPopOver: "

Comma separated list of tags. Tag names must match those defined at the inventory source." + " Only hosts associated with the list of tags will be included in the update process.

", dataContainer: 'body' }, @@ -180,7 +180,9 @@ angular.module('GroupFormDefinition', []) parseTypeName: 'envParseType', dataTitle: 'Source Variables', dataPlacement: 'left', - awPopOver: "

Define additional variables here that will be referenced by the inventory script at runtime.

" + + awPopOver: "

Override variables found in ec2.ini and used by the inventory update script. For a detailed description of these variables " + + "" + + "view ec2.ini in the Ansible github repo.

" + "

Enter variables using either JSON or YAML syntax. Use the radio button to toggle between the two.

" + "JSON:
\n" + "
{
\"somevar\": \"somevalue\",
\"password\": \"magic\"
}
\n" + @@ -214,13 +216,15 @@ angular.module('GroupFormDefinition', []) fields: [ { name: 'overwrite', - label: 'Overwrite Hosts', + label: 'Overwrite', type: 'checkbox', ngShow: "source.value !== '' && source.value !== null", addRequired: false, editRequired: false, - awPopOver: '

Replace AWX inventory hosts with cloud inventory hosts.

', - dataTitle: 'Overwrite Hosts', + awPopOver: '

When checked all child groups and hosts not found on the remote source will be deleted from ' + + 'the local inventory.

Unchecked any local child hosts and groups not found on the external source will ' + + 'remain untouched by the inventory update process.

', + dataTitle: 'Overwrite', dataContainer: 'body', dataPlacement: 'left', labelClass: 'checkbox-options' @@ -232,7 +236,9 @@ angular.module('GroupFormDefinition', []) ngShow: "source.value !== '' && source.value !== null", addRequired: false, editRequired: false, - awPopOver: '

', + awPopOver: '

If checked, all variables for child groups and hosts will be removed and replaced by those ' + + 'found on the external source.

When not checked a merge will be performed, combinging local variables with ' + + 'those found on the external source.

', dataTitle: 'Overwrite Variables', dataContainer: 'body', dataPlacement: 'left', @@ -245,7 +251,8 @@ angular.module('GroupFormDefinition', []) ngShow: "source.value !== '' && source.value !== null", addRequired: false, editRequired: false, - awPopOver: '

Each time a job runs using this inventory, refresh the inventory from the selected source

', + awPopOver: '

Each time a job runs using this inventory, refresh the inventory from the selected source before ' + + 'executing job tasks.

', dataTitle: 'Update on Launch', dataContainer: 'body', dataPlacement: 'left', diff --git a/awx/ui/static/js/lists/InventorySummary.js b/awx/ui/static/js/lists/InventorySummary.js index 17d625cc37..e6474d101d 100644 --- a/awx/ui/static/js/lists/InventorySummary.js +++ b/awx/ui/static/js/lists/InventorySummary.js @@ -22,7 +22,8 @@ angular.module('InventorySummaryDefinition', []) name: { key: true, label: 'Group', - ngClick: "\{\{ 'GroupsEdit(' + group.id + ')' \}\}" + ngClick: "\{\{ 'GroupsEdit(' + group.id + ')' \}\}", + columnClass: 'col-lg-3 col-md3 col-sm-2' }, hosts_with_active_failures: { label: 'Hosts with
Job Failures?', diff --git a/awx/ui/static/less/ansible-ui.less b/awx/ui/static/less/ansible-ui.less index 717f651b2e..aab7ebbdf5 100644 --- a/awx/ui/static/less/ansible-ui.less +++ b/awx/ui/static/less/ansible-ui.less @@ -742,7 +742,7 @@ select.field-mini-height { } .icon-cloud-updating, - .icon-cloud-success { + .icon-cloud-successful { color: #5bb75b; }