mirror of
https://github.com/ansible/awx.git
synced 2026-05-14 04:47:44 -02:30
Add checkbox in different position in form generator
This commit is contained in:
@@ -476,9 +476,9 @@ input[type='radio']:checked:before {
|
|||||||
|
|
||||||
.FormToggle {}
|
.FormToggle {}
|
||||||
.FormToggle-container {
|
.FormToggle-container {
|
||||||
float: right;
|
|
||||||
margin: 0 0 0 10px;
|
margin: 0 0 0 10px;
|
||||||
padding-bottom: 5px;
|
padding-bottom: 5px;
|
||||||
|
display: initial;
|
||||||
|
|
||||||
label {
|
label {
|
||||||
&:first-child {
|
&:first-child {
|
||||||
@@ -499,6 +499,16 @@ input[type='radio']:checked:before {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.Form-inputLabelContainer {
|
||||||
|
width: 100%;
|
||||||
|
display: block !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.Form-inputLabelContainer[for=variables] {
|
||||||
|
width: 100%;
|
||||||
|
display: inline-block !important;
|
||||||
|
}
|
||||||
|
|
||||||
.Form-inputLabel{
|
.Form-inputLabel{
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
color: @default-interface-txt;
|
color: @default-interface-txt;
|
||||||
|
|||||||
@@ -681,6 +681,10 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat
|
|||||||
</div>`;
|
</div>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (options && options.checkbox) {
|
||||||
|
html += createCheckbox(options.checkbox);
|
||||||
|
}
|
||||||
|
|
||||||
if (field.labelAction) {
|
if (field.labelAction) {
|
||||||
let action = field.labelAction;
|
let action = field.labelAction;
|
||||||
let href = action.href || "";
|
let href = action.href || "";
|
||||||
@@ -696,10 +700,6 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat
|
|||||||
}
|
}
|
||||||
|
|
||||||
html += "\n\t</label>\n";
|
html += "\n\t</label>\n";
|
||||||
|
|
||||||
if (options && options.checkbox) {
|
|
||||||
html += createCheckbox(options.checkbox);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return html;
|
return html;
|
||||||
|
|||||||
Reference in New Issue
Block a user