mirror of
https://github.com/ansible/awx.git
synced 2026-03-07 19:51:08 -03:30
Changing textarea input color
For textarea elements that don't get CodeMirror attached.
This commit is contained in:
@@ -141,12 +141,19 @@
|
|||||||
padding-right: 50px;
|
padding-right: 50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.Form-textArea{
|
.Form-textAreaLabel{
|
||||||
width:100%;
|
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{
|
.Form-textInput{
|
||||||
height: 30px;
|
height: 30px!important;
|
||||||
background-color: @field-secondary-bg!important;
|
background-color: @field-secondary-bg!important;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
border:1px solid @field-border;
|
border:1px solid @field-border;
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ export default
|
|||||||
changes: {
|
changes: {
|
||||||
label: 'Changes',
|
label: 'Changes',
|
||||||
type: 'textarea',
|
type: 'textarea',
|
||||||
class: 'Form-textArea',
|
class: 'Form-textAreaLabel',
|
||||||
ngHide: "!changes || changes =='' || changes == 'null'",
|
ngHide: "!changes || changes =='' || changes == 'null'",
|
||||||
readonly: true
|
readonly: true
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -263,7 +263,7 @@ export default
|
|||||||
variable: 'key_required',
|
variable: 'key_required',
|
||||||
init: true
|
init: true
|
||||||
},
|
},
|
||||||
class: 'Form-textArea',
|
class: 'Form-textAreaLabel',
|
||||||
hintText: "{{ key_hint }}",
|
hintText: "{{ key_hint }}",
|
||||||
addRequired: false,
|
addRequired: false,
|
||||||
editRequired: false,
|
editRequired: false,
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ export default
|
|||||||
variables: {
|
variables: {
|
||||||
label: 'Variables',
|
label: 'Variables',
|
||||||
type: 'textarea',
|
type: 'textarea',
|
||||||
class: 'Form-textArea',
|
class: 'Form-textAreaLabel',
|
||||||
addRequired: false,
|
addRequired: false,
|
||||||
editRequird: false,
|
editRequird: false,
|
||||||
rows: 12,
|
rows: 12,
|
||||||
|
|||||||
@@ -173,7 +173,7 @@ export default
|
|||||||
},
|
},
|
||||||
job_tags: {
|
job_tags: {
|
||||||
label: 'Job Tags',
|
label: 'Job Tags',
|
||||||
type: 'text',
|
type: 'textarea',
|
||||||
rows: 1,
|
rows: 1,
|
||||||
addRequired: false,
|
addRequired: false,
|
||||||
editRequired: false,
|
editRequired: false,
|
||||||
@@ -192,7 +192,7 @@ export default
|
|||||||
variables: {
|
variables: {
|
||||||
label: 'Extra Variables',
|
label: 'Extra Variables',
|
||||||
type: 'textarea',
|
type: 'textarea',
|
||||||
class: 'Form-textArea',
|
class: 'Form-textAreaLabel',
|
||||||
rows: 6,
|
rows: 6,
|
||||||
addRequired: false,
|
addRequired: false,
|
||||||
editRequired: false,
|
editRequired: false,
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ export default
|
|||||||
label: 'Environment Variables', //"{{vars_label}}" ,
|
label: 'Environment Variables', //"{{vars_label}}" ,
|
||||||
ngShow: "source && source.value=='custom' ",
|
ngShow: "source && source.value=='custom' ",
|
||||||
type: 'textarea',
|
type: 'textarea',
|
||||||
class: 'Form-textArea',
|
class: 'Form-textAreaLabel',
|
||||||
addRequired: false,
|
addRequired: false,
|
||||||
editRequired: false,
|
editRequired: false,
|
||||||
rows: 6,
|
rows: 6,
|
||||||
@@ -145,7 +145,7 @@ export default
|
|||||||
label: 'Source Variables', //"{{vars_label}}" ,
|
label: 'Source Variables', //"{{vars_label}}" ,
|
||||||
ngShow: "source && (source.value == 'file' || source.value == 'ec2')",
|
ngShow: "source && (source.value == 'file' || source.value == 'ec2')",
|
||||||
type: 'textarea',
|
type: 'textarea',
|
||||||
class: 'Form-textArea',
|
class: 'Form-textAreaLabel',
|
||||||
addRequired: false,
|
addRequired: false,
|
||||||
editRequird: false,
|
editRequird: false,
|
||||||
rows: 6,
|
rows: 6,
|
||||||
@@ -172,7 +172,7 @@ export default
|
|||||||
"source.value == 'openstack')",
|
"source.value == 'openstack')",
|
||||||
type: 'textarea',
|
type: 'textarea',
|
||||||
addRequired: false,
|
addRequired: false,
|
||||||
class: 'Form-textArea',
|
class: 'Form-textAreaLabel',
|
||||||
editRequird: false,
|
editRequird: false,
|
||||||
rows: 6,
|
rows: 6,
|
||||||
'default': '---',
|
'default': '---',
|
||||||
|
|||||||
@@ -1043,9 +1043,9 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat
|
|||||||
html += (field.rows) ? this.attr(field, 'rows') : "";
|
html += (field.rows) ? this.attr(field, 'rows') : "";
|
||||||
html += "ng-model=\"" + fld + '" ';
|
html += "ng-model=\"" + fld + '" ';
|
||||||
html += 'name="' + fld + '" ';
|
html += 'name="' + fld + '" ';
|
||||||
html += "class=\"form-control";
|
html += "class=\"form-control Form-textArea";
|
||||||
html += (field['class']) ? " " + field['class'] : "";
|
html += (field['class']) ? " " + field['class'] : "";
|
||||||
html += (field['elementClass']) ? " " + field['elementClass'] : "";
|
html += (field['elementClass']) ? " " + field['elementClass'] : "";
|
||||||
html += "\" ";
|
html += "\" ";
|
||||||
html += (field.ngChange) ? this.attr(field, 'ngChange') : "";
|
html += (field.ngChange) ? this.attr(field, 'ngChange') : "";
|
||||||
html += buildId(field, fld, this.form);
|
html += buildId(field, fld, this.form);
|
||||||
|
|||||||
Reference in New Issue
Block a user