Add checkbox in different position in form generator

This commit is contained in:
gconsidine
2017-04-04 11:42:23 -04:00
parent 480772f5bc
commit 3f761d52f6
2 changed files with 15 additions and 5 deletions

View File

@@ -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;

View File

@@ -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;