mirror of
https://github.com/ansible/awx.git
synced 2026-03-09 13:39:27 -02:30
Fixing width of textarea fields
like extra vars/inv script
This commit is contained in:
@@ -156,9 +156,14 @@
|
|||||||
flex: 1 0 auto;
|
flex: 1 0 auto;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
width: 33%;
|
width: 33%;
|
||||||
|
max-width: 33%;
|
||||||
padding-right: 30px;
|
padding-right: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.Form-formGroup--fullWidth {
|
||||||
|
max-width: none;
|
||||||
|
}
|
||||||
|
|
||||||
.Form-subForm {
|
.Form-subForm {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
@@ -481,10 +486,6 @@ input[type='radio']:checked:before {
|
|||||||
color: @default-interface-txt;
|
color: @default-interface-txt;
|
||||||
}
|
}
|
||||||
|
|
||||||
.Form-formGroup {
|
|
||||||
max-width: 33%;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media only screen and (max-width: 650px) {
|
@media only screen and (max-width: 650px) {
|
||||||
.Form-formGroup {
|
.Form-formGroup {
|
||||||
flex: 1 0 auto;
|
flex: 1 0 auto;
|
||||||
|
|||||||
@@ -254,7 +254,7 @@ export default
|
|||||||
reqExpression: 'key_required',
|
reqExpression: 'key_required',
|
||||||
init: true
|
init: true
|
||||||
},
|
},
|
||||||
class: 'Form-textAreaLabel',
|
class: 'Form-textAreaLabel Form-formGroup--fullWidth',
|
||||||
hintText: "{{ key_hint }}",
|
hintText: "{{ key_hint }}",
|
||||||
addRequired: false,
|
addRequired: false,
|
||||||
editRequired: false,
|
editRequired: false,
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ export default
|
|||||||
variables: {
|
variables: {
|
||||||
label: 'Variables',
|
label: 'Variables',
|
||||||
type: 'textarea',
|
type: 'textarea',
|
||||||
class: 'Form-textAreaLabel',
|
class: 'Form-textAreaLabel Form-formGroup--fullWidth',
|
||||||
addRequired: false,
|
addRequired: false,
|
||||||
editRequird: false,
|
editRequird: false,
|
||||||
rows: 12,
|
rows: 12,
|
||||||
@@ -161,7 +161,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-textAreaLabel',
|
class: 'Form-textAreaLabel Form-formGroup--fullWidth',
|
||||||
addRequired: false,
|
addRequired: false,
|
||||||
editRequired: false,
|
editRequired: false,
|
||||||
rows: 6,
|
rows: 6,
|
||||||
@@ -180,7 +180,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-textAreaLabel',
|
class: 'Form-textAreaLabel Form-formGroup--fullWidth',
|
||||||
addRequired: false,
|
addRequired: false,
|
||||||
editRequird: false,
|
editRequird: false,
|
||||||
rows: 6,
|
rows: 6,
|
||||||
@@ -207,7 +207,7 @@ export default
|
|||||||
"source.value == 'openstack')",
|
"source.value == 'openstack')",
|
||||||
type: 'textarea',
|
type: 'textarea',
|
||||||
addRequired: false,
|
addRequired: false,
|
||||||
class: 'Form-textAreaLabel',
|
class: 'Form-textAreaLabel Form-formGroup--fullWidth',
|
||||||
editRequird: false,
|
editRequird: false,
|
||||||
rows: 6,
|
rows: 6,
|
||||||
'default': '---',
|
'default': '---',
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ export default
|
|||||||
variables: {
|
variables: {
|
||||||
label: 'Variables',
|
label: 'Variables',
|
||||||
type: 'textarea',
|
type: 'textarea',
|
||||||
|
class: 'Form-formGroup--fullWidth',
|
||||||
addRequired: false,
|
addRequired: false,
|
||||||
editRequird: false,
|
editRequird: false,
|
||||||
rows: 6,
|
rows: 6,
|
||||||
|
|||||||
@@ -239,7 +239,7 @@ export default
|
|||||||
variables: {
|
variables: {
|
||||||
label: 'Extra Variables',
|
label: 'Extra Variables',
|
||||||
type: 'textarea',
|
type: 'textarea',
|
||||||
class: 'Form-textAreaLabel',
|
class: 'Form-textAreaLabel Form-formGroup--fullWidth',
|
||||||
rows: 6,
|
rows: 6,
|
||||||
addRequired: false,
|
addRequired: false,
|
||||||
editRequired: false,
|
editRequired: false,
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ export default function() {
|
|||||||
label: 'Custom Script',
|
label: 'Custom Script',
|
||||||
type: 'textarea',
|
type: 'textarea',
|
||||||
hintText: "Drag and drop an inventory script on the field below",
|
hintText: "Drag and drop an inventory script on the field below",
|
||||||
|
class: 'Form-formGroup--fullWidth',
|
||||||
addRequired: true,
|
addRequired: true,
|
||||||
editRequired: true,
|
editRequired: true,
|
||||||
awDropFile: true,
|
awDropFile: true,
|
||||||
|
|||||||
@@ -593,7 +593,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group Form-formGroup Form-textAreaLabel">
|
<div class="form-group Form-formGroup Form-textAreaLabel Form-formGroup--fullWidth">
|
||||||
<label for="Scheduler-extraVars">
|
<label for="Scheduler-extraVars">
|
||||||
<span class="Form-inputLabel">
|
<span class="Form-inputLabel">
|
||||||
Extra Variables
|
Extra Variables
|
||||||
|
|||||||
Reference in New Issue
Block a user