From 5f7f5492313c05185ab2064eccd8074792efb386 Mon Sep 17 00:00:00 2001 From: mabashian Date: Wed, 2 Aug 2017 16:22:29 -0400 Subject: [PATCH] Updated input/injector popover text. Changed credential "type" column header to "kind". Hide credential types not managed by tower in types list. --- .../credential-types/credential-types.form.js | 18 ++---------------- .../credential-types/credential-types.list.js | 5 ++++- 2 files changed, 6 insertions(+), 17 deletions(-) diff --git a/awx/ui/client/src/credential-types/credential-types.form.js b/awx/ui/client/src/credential-types/credential-types.form.js index a933545fe7..fdc3963e0b 100644 --- a/awx/ui/client/src/credential-types/credential-types.form.js +++ b/awx/ui/client/src/credential-types/credential-types.form.js @@ -43,14 +43,7 @@ export default ['i18n', function(i18n) { default: '---', showParseTypeToggle: true, parseTypeName: 'parseTypeInputs', - awPopOver: "

Enter inputs 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" + - '

View JSON examples at www.json.org

' + - '

View YAML examples at docs.ansible.com

', + awPopOver: i18n._("Enter inputs 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._('Input Configuration'), dataPlacement: 'right', dataContainer: "body", @@ -64,14 +57,7 @@ export default ['i18n', function(i18n) { default: '---', showParseTypeToggle: true, parseTypeName: 'parseTypeInjectors', - awPopOver: "

Enter injectors 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" + - '

View JSON examples at www.json.org

' + - '

View YAML examples at docs.ansible.com

', + awPopOver: i18n._("Enter injectors 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._('Injector Configuration'), dataPlacement: 'right', dataContainer: "body", diff --git a/awx/ui/client/src/credential-types/credential-types.list.js b/awx/ui/client/src/credential-types/credential-types.list.js index 2e70ad9280..0a50c6de75 100644 --- a/awx/ui/client/src/credential-types/credential-types.list.js +++ b/awx/ui/client/src/credential-types/credential-types.list.js @@ -14,6 +14,9 @@ export default ['i18n', function(i18n){ iterator: 'credential_type', index: false, hover: false, + search: { + managed_by_tower: 'false' + }, fields: { name: { @@ -25,7 +28,7 @@ export default ['i18n', function(i18n){ dataPlacement: 'top' }, kind: { - label: i18n._('Type'), + label: i18n._('Kind'), ngBind: 'credential_type.kind_label', excludeModal: true, columnClass: 'col-md-2 hidden-sm hidden-xs'