From a589bc4562b561ee49513ba73de61c61aaee7e4d Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Fri, 18 Aug 2017 15:58:22 -0400 Subject: [PATCH] tooltip content audit for inventory form --- .../inventories/standard-inventory/inventory.form.js | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/awx/ui/client/src/inventories-hosts/inventories/standard-inventory/inventory.form.js b/awx/ui/client/src/inventories-hosts/inventories/standard-inventory/inventory.form.js index fa4ed8d106..0562137f9e 100644 --- a/awx/ui/client/src/inventories-hosts/inventories/standard-inventory/inventory.form.js +++ b/awx/ui/client/src/inventories-hosts/inventories/standard-inventory/inventory.form.js @@ -82,7 +82,7 @@ function(i18n, InventoryCompletedJobsList) { instance_groups: { label: i18n._('Instance Groups'), type: 'custom', - awPopOver: "

" + i18n._("Select the Instance Groups for this Inventory to run on.") + "

", + awPopOver: i18n._('Select the Instance Groups for this Inventory to run on. Refer to the Ansible Tower documentation for more detail.'), dataTitle: i18n._('Instance Groups'), dataPlacement: 'right', dataContainer: 'body', @@ -95,14 +95,8 @@ function(i18n, InventoryCompletedJobsList) { class: 'Form-formGroup--fullWidth', rows: 6, "default": "---", - awPopOver: "

" + i18n._("Enter inventory variables using either JSON or YAML syntax. Use the radio button to toggle between the two.") + "

" + - "JSON:
\n" + - "
{
 \"somevar\": \"somevalue\",
 \"password\": \"magic\"
}
\n" + - "YAML:
\n" + - "
---
somevar: somevalue
password: magic
\n" + - '

' + i18n.sprintf(i18n._('View JSON examples at %s'), 'www.json.org') + '

' + - '

' + i18n.sprintf(i18n._('View YAML examples at %s'), 'docs.ansible.com') + '

', - dataTitle: i18n._('Inventory Variables'), + awPopOver: i18n._('Enter inventory variables using either JSON or YAML syntax. Use the radio button to toggle between the two. Refer to the Ansible Tower documentation for example syntax.'), + dataTitle: i18n._('Variables'), dataPlacement: 'right', dataContainer: 'body', ngDisabled: '!(inventory_obj.summary_fields.user_capabilities.edit || canAdd)' // TODO: get working