mirror of
https://github.com/ansible/awx.git
synced 2026-03-15 07:57:29 -02: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:
@@ -200,7 +200,6 @@ function ProjectsEdit ($scope, $rootScope, $compile, $location, $log, $routePara
|
|||||||
scope[fld + '_ask'] = false;
|
scope[fld + '_ask'] = false;
|
||||||
$("#" + fld + "-clear-btn").removeAttr("disabled");
|
$("#" + fld + "-clear-btn").removeAttr("disabled");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -241,6 +240,15 @@ function ProjectsEdit ($scope, $rootScope, $compile, $location, $log, $routePara
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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();
|
setAskCheckboxes();
|
||||||
|
|
||||||
// Initialize related search functions. Doing it here to make sure relatedSets object is populated.
|
// Initialize related search functions. Doing it here to make sure relatedSets object is populated.
|
||||||
|
|||||||
@@ -60,8 +60,9 @@ angular.module('CredentialFormDefinition', [])
|
|||||||
type: 'textarea',
|
type: 'textarea',
|
||||||
addRequired: false,
|
addRequired: false,
|
||||||
editRequired: false,
|
editRequired: false,
|
||||||
|
'class': 'ssh-key-field',
|
||||||
rows: 10,
|
rows: 10,
|
||||||
"class": 'span10'
|
xtraWide: true
|
||||||
},
|
},
|
||||||
"ssh_key_unlock": {
|
"ssh_key_unlock": {
|
||||||
label: 'Key Password',
|
label: 'Key Password',
|
||||||
|
|||||||
@@ -128,8 +128,10 @@ angular.module('ProjectFormDefinition', [])
|
|||||||
label: 'SCM Private Key',
|
label: 'SCM Private Key',
|
||||||
type: 'textarea',
|
type: 'textarea',
|
||||||
ngShow: "scm_type !== '' && scm_type !== null",
|
ngShow: "scm_type !== '' && scm_type !== null",
|
||||||
|
xtraWide: true,
|
||||||
addRequired: false,
|
addRequired: false,
|
||||||
editRequired: false,
|
editRequired: false,
|
||||||
|
'class': 'ssh-key-field',
|
||||||
rows: 10
|
rows: 10
|
||||||
},
|
},
|
||||||
"scm_key_unlock": {
|
"scm_key_unlock": {
|
||||||
|
|||||||
@@ -105,6 +105,9 @@ hr {
|
|||||||
border-color: #ccc;
|
border-color: #ccc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ssh-key-field {
|
||||||
|
font-family: Fixed, monospace;
|
||||||
|
}
|
||||||
|
|
||||||
/* Use code-breakable in pop-over text to indent and wrap code segments */
|
/* Use code-breakable in pop-over text to indent and wrap code segments */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user