Changing textarea input color

For textarea elements that don't get CodeMirror attached.
This commit is contained in:
Jared Tabor 2016-02-11 22:31:20 -08:00
parent 9fa6d74efc
commit 3fbbd4f234
7 changed files with 19 additions and 12 deletions

View File

@ -141,12 +141,19 @@
padding-right: 50px;
}
.Form-textArea{
.Form-textAreaLabel{
width:100%;
}
.Form-textArea{
background-color: @field-secondary-bg!important;
background-color: @field-secondary-bg!important;
border-radius: 5px;
color: @field-input-text;
}
.Form-textInput{
height: 30px;
height: 30px!important;
background-color: @field-secondary-bg!important;
border-radius: 5px;
border:1px solid @field-border;

View File

@ -41,7 +41,7 @@ export default
changes: {
label: 'Changes',
type: 'textarea',
class: 'Form-textArea',
class: 'Form-textAreaLabel',
ngHide: "!changes || changes =='' || changes == 'null'",
readonly: true
}

View File

@ -263,7 +263,7 @@ export default
variable: 'key_required',
init: true
},
class: 'Form-textArea',
class: 'Form-textAreaLabel',
hintText: "{{ key_hint }}",
addRequired: false,
editRequired: false,

View File

@ -39,7 +39,7 @@ export default
variables: {
label: 'Variables',
type: 'textarea',
class: 'Form-textArea',
class: 'Form-textAreaLabel',
addRequired: false,
editRequird: false,
rows: 12,

View File

@ -173,7 +173,7 @@ export default
},
job_tags: {
label: 'Job Tags',
type: 'text',
type: 'textarea',
rows: 1,
addRequired: false,
editRequired: false,
@ -192,7 +192,7 @@ export default
variables: {
label: 'Extra Variables',
type: 'textarea',
class: 'Form-textArea',
class: 'Form-textAreaLabel',
rows: 6,
addRequired: false,
editRequired: false,

View File

@ -126,7 +126,7 @@ export default
label: 'Environment Variables', //"{{vars_label}}" ,
ngShow: "source && source.value=='custom' ",
type: 'textarea',
class: 'Form-textArea',
class: 'Form-textAreaLabel',
addRequired: false,
editRequired: false,
rows: 6,
@ -145,7 +145,7 @@ export default
label: 'Source Variables', //"{{vars_label}}" ,
ngShow: "source && (source.value == 'file' || source.value == 'ec2')",
type: 'textarea',
class: 'Form-textArea',
class: 'Form-textAreaLabel',
addRequired: false,
editRequird: false,
rows: 6,
@ -172,7 +172,7 @@ export default
"source.value == 'openstack')",
type: 'textarea',
addRequired: false,
class: 'Form-textArea',
class: 'Form-textAreaLabel',
editRequird: false,
rows: 6,
'default': '---',

View File

@ -1043,9 +1043,9 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat
html += (field.rows) ? this.attr(field, 'rows') : "";
html += "ng-model=\"" + fld + '" ';
html += 'name="' + fld + '" ';
html += "class=\"form-control";
html += "class=\"form-control Form-textArea";
html += (field['class']) ? " " + field['class'] : "";
html += (field['elementClass']) ? " " + field['elementClass'] : "";
html += (field['elementClass']) ? " " + field['elementClass'] : "";
html += "\" ";
html += (field.ngChange) ? this.attr(field, 'ngChange') : "";
html += buildId(field, fld, this.form);