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:
chouseknecht 2013-08-28 22:35:55 -04:00
parent ee220ba928
commit fba907ee93
4 changed files with 18 additions and 4 deletions

View File

@ -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 });

View File

@ -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',

View File

@ -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": {

View File

@ -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 */