UI support for openstack credential

This commit is contained in:
John Mitchell
2015-04-15 15:25:24 -04:00
parent 2fbfdce12c
commit 77024ef4f7
2 changed files with 60 additions and 29 deletions

View File

@@ -1,5 +1,5 @@
/*********************************************
* Copyright (c) 2014 AnsibleWorks, Inc.
* Copyright (c) 2015 AnsibleWorks, Inc.
*
* Credentials.js
* Form definition for Credential model
@@ -156,7 +156,11 @@ export default
"host": {
labelBind: 'hostLabel',
type: 'text',
ngShow: "kind.value == 'vmware'",
ngShow: "kind.value == 'vmware' || kind.value == 'openstack'",
awPopOverWatch: "projectPopOver",
awPopOver: "set in helpers/credentials",
dataPlacement: 'right',
dataContainer: "body",
autocomplete: false,
awRequiredWhen: {
variable: 'host_required',
@@ -219,9 +223,9 @@ export default
clear: false,
},
"password": {
label: 'Password',
labelBind: 'passwordLabel',
type: 'sensitive',
ngShow: "kind.value == 'scm' || kind.value == 'vmware'",
ngShow: "kind.value == 'scm' || kind.value == 'vmware' || kind.value == 'openstack'",
addRequired: false,
editRequired: false,
ask: false,
@@ -306,20 +310,20 @@ export default
autocomplete: false
},
"project": {
label: "Project",
labelBind: 'projectLabel',
type: 'text',
ngShow: "kind.value == 'gce'",
awRequiredWhen: {
variable: 'project_required',
init: false
},
awPopOver: "<p>The Project ID is the GCE assigned identification. It is constructed as two words followed by a three digit number. Such as: </p><p>adjective-noun-000</p>",
dataTitle: 'Project ID',
ngShow: "kind.value == 'gce' || kind.value == 'openstack'",
awPopOverWatch: "projectPopOver",
awPopOver: "set in helpers/credentials",
// dataTitle: 'Project ID',
dataPlacement: 'right',
dataContainer: "body",
addRequired: false,
editRequired: false,
autocomplete: false
awRequiredWhen: {
variable: 'project_required',
init: false
}
},
"vault_password": {
label: "Vault Password",