Fixing width of textarea fields

like extra vars/inv script
This commit is contained in:
Jared Tabor 2016-05-09 11:30:24 -04:00
parent 71ea4cb465
commit 8a1d06789b
7 changed files with 14 additions and 11 deletions

View File

@ -156,9 +156,14 @@
flex: 1 0 auto;
margin-bottom: 20px;
width: 33%;
max-width: 33%;
padding-right: 30px;
}
.Form-formGroup--fullWidth {
max-width: none;
}
.Form-subForm {
width: 100%;
margin-bottom: 15px;
@ -481,10 +486,6 @@ input[type='radio']:checked:before {
color: @default-interface-txt;
}
.Form-formGroup {
max-width: 33%;
}
@media only screen and (max-width: 650px) {
.Form-formGroup {
flex: 1 0 auto;

View File

@ -254,7 +254,7 @@ export default
reqExpression: 'key_required',
init: true
},
class: 'Form-textAreaLabel',
class: 'Form-textAreaLabel Form-formGroup--fullWidth',
hintText: "{{ key_hint }}",
addRequired: false,
editRequired: false,

View File

@ -38,7 +38,7 @@ export default
variables: {
label: 'Variables',
type: 'textarea',
class: 'Form-textAreaLabel',
class: 'Form-textAreaLabel Form-formGroup--fullWidth',
addRequired: false,
editRequird: false,
rows: 12,
@ -161,7 +161,7 @@ export default
label: 'Environment Variables', //"{{vars_label}}" ,
ngShow: "source && source.value=='custom' ",
type: 'textarea',
class: 'Form-textAreaLabel',
class: 'Form-textAreaLabel Form-formGroup--fullWidth',
addRequired: false,
editRequired: false,
rows: 6,
@ -180,7 +180,7 @@ export default
label: 'Source Variables', //"{{vars_label}}" ,
ngShow: "source && (source.value == 'file' || source.value == 'ec2')",
type: 'textarea',
class: 'Form-textAreaLabel',
class: 'Form-textAreaLabel Form-formGroup--fullWidth',
addRequired: false,
editRequird: false,
rows: 6,
@ -207,7 +207,7 @@ export default
"source.value == 'openstack')",
type: 'textarea',
addRequired: false,
class: 'Form-textAreaLabel',
class: 'Form-textAreaLabel Form-formGroup--fullWidth',
editRequird: false,
rows: 6,
'default': '---',

View File

@ -49,6 +49,7 @@ export default
variables: {
label: 'Variables',
type: 'textarea',
class: 'Form-formGroup--fullWidth',
addRequired: false,
editRequird: false,
rows: 6,

View File

@ -239,7 +239,7 @@ export default
variables: {
label: 'Extra Variables',
type: 'textarea',
class: 'Form-textAreaLabel',
class: 'Form-textAreaLabel Form-formGroup--fullWidth',
rows: 6,
addRequired: false,
editRequired: false,

View File

@ -47,6 +47,7 @@ export default function() {
label: 'Custom Script',
type: 'textarea',
hintText: "Drag and drop an inventory script on the field below",
class: 'Form-formGroup--fullWidth',
addRequired: true,
editRequired: true,
awDropFile: true,

View File

@ -593,7 +593,7 @@
</ul>
</div>
<div class="form-group Form-formGroup Form-textAreaLabel">
<div class="form-group Form-formGroup Form-textAreaLabel Form-formGroup--fullWidth">
<label for="Scheduler-extraVars">
<span class="Form-inputLabel">
Extra Variables