diff --git a/awx/ui/static/js/forms/Credentials.js b/awx/ui/static/js/forms/Credentials.js index 4726b5d540..6b6b7252ca 100644 --- a/awx/ui/static/js/forms/Credentials.js +++ b/awx/ui/static/js/forms/Credentials.js @@ -86,9 +86,7 @@ angular.module('CredentialFormDefinition', []) ngChange: 'kindChange()', addRequired: true, editRequired: true, - helpCollapse: [{ - hdr: 'Select a Credential Type', - content: '
The e-mail address assigned to the Google Compute Engine service account.
', + dataTitle: 'Subscription ID', + dataPlacement: 'right', + dataContainer: "body" }, "subscription_id": { labelBind: "usernameLabel", @@ -166,7 +187,7 @@ angular.module('CredentialFormDefinition', []) addRequired: false, editRequired: false, autocomplete: false, - awPopOver: 'Subscription ID is generated by Azure as a way to identify the requested resource.
', + awPopOver: 'Subscription ID is an Azure construct, which is mapped to a username.
', dataTitle: 'Subscription ID', dataPlacement: 'right', dataContainer: "body" @@ -243,7 +264,11 @@ angular.module('CredentialFormDefinition', []) editRequired: false, awDropFile: true, 'class': 'ssh-key-field', - rows: 10 + rows: 10, + awPopOver: "key_description", //kind.value" ==="gce") return "Paste the contents of the PEM file that corresponds to the certificate you uploaded in the Windows Azure console."; + dataTitle: 'Subscription ID', + dataPlacement: 'right', + dataContainer: "body" }, "ssh_key_unlock": { label: 'Key Password', @@ -304,6 +329,10 @@ angular.module('CredentialFormDefinition', []) variable: 'project_required', init: false }, + awPopOver: "The Project ID is the GCE assigned identification. It is constructed as two words followed by a three digit number. Such as:
adjective-noun-000
", //kind.value" ==="gce") return "Paste the contents of the PEM file that corresponds to the certificate you uploaded in the Windows Azure console."; + dataTitle: 'Project ID', + dataPlacement: 'right', + dataContainer: "body", addRequired: false, editRequired: false, autocomplete: false diff --git a/awx/ui/static/js/helpers/Credentials.js b/awx/ui/static/js/helpers/Credentials.js index b3b16f3f02..bbc412b680 100644 --- a/awx/ui/static/js/helpers/Credentials.js +++ b/awx/ui/static/js/helpers/Credentials.js @@ -29,7 +29,7 @@ angular.module('CredentialsHelper', ['Utilities']) scope.key_required = false; // JT -- doing the same for key and project scope.project_required = false; scope.subscription_required = false; - + scope.key_description = ''; if (!Empty(scope.kind)) { // Apply kind specific settings switch (scope.kind.value) { @@ -52,12 +52,14 @@ angular.module('CredentialsHelper', ['Utilities']) scope.email_required = true; scope.key_required = true; scope.project_required = true; + scope.key_description = "Paste the contents of the PEM file that corresponds to the certificate you uploaded in the Windows Azure console."; break; case 'azure': scope.usernameLabel = "Subscription ID"; scope.sshKeyDataLabel = 'RSA Private Key'; scope.subscription_required = true; scope.key_required = true; + scope.key_description = 'Paste the value of the private key within a GCE service account\'s JSON key.'; break; } }