mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 18:40:01 -03:30
AC-352 Latest. Expanded width of ssh key field and applied fixed width/mono-space font. Same changes made to Credentials page.
This commit is contained in:
parent
ee220ba928
commit
fba907ee93
@ -200,7 +200,6 @@ function ProjectsEdit ($scope, $rootScope, $compile, $location, $log, $routePara
|
||||
scope[fld + '_ask'] = false;
|
||||
$("#" + fld + "-clear-btn").removeAttr("disabled");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -240,9 +239,18 @@ function ProjectsEdit ($scope, $rootScope, $compile, $location, $log, $routePara
|
||||
relatedSets[set] = { url: related[set], iterator: form.related[set].iterator };
|
||||
}
|
||||
}
|
||||
|
||||
setAskCheckboxes();
|
||||
|
||||
if (data.scm_type !== "") {
|
||||
for (var i=0; i < scope.scm_type_options.length; i++) {
|
||||
if (scope.scm_type_options[i].value == data.scm_type) {
|
||||
scope.scm_type = scope.scm_type_options[i];
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
master['scm_type'] = scope['scm_type'];
|
||||
setAskCheckboxes();
|
||||
|
||||
// Initialize related search functions. Doing it here to make sure relatedSets object is populated.
|
||||
RelatedSearchInit({ scope: scope, form: form, relatedSets: relatedSets });
|
||||
RelatedPaginateInit({ scope: scope, relatedSets: relatedSets });
|
||||
|
||||
@ -60,8 +60,9 @@ angular.module('CredentialFormDefinition', [])
|
||||
type: 'textarea',
|
||||
addRequired: false,
|
||||
editRequired: false,
|
||||
'class': 'ssh-key-field',
|
||||
rows: 10,
|
||||
"class": 'span10'
|
||||
xtraWide: true
|
||||
},
|
||||
"ssh_key_unlock": {
|
||||
label: 'Key Password',
|
||||
|
||||
@ -128,8 +128,10 @@ angular.module('ProjectFormDefinition', [])
|
||||
label: 'SCM Private Key',
|
||||
type: 'textarea',
|
||||
ngShow: "scm_type !== '' && scm_type !== null",
|
||||
xtraWide: true,
|
||||
addRequired: false,
|
||||
editRequired: false,
|
||||
'class': 'ssh-key-field',
|
||||
rows: 10
|
||||
},
|
||||
"scm_key_unlock": {
|
||||
|
||||
@ -105,6 +105,9 @@ hr {
|
||||
border-color: #ccc;
|
||||
}
|
||||
|
||||
.ssh-key-field {
|
||||
font-family: Fixed, monospace;
|
||||
}
|
||||
|
||||
/* Use code-breakable in pop-over text to indent and wrap code segments */
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user