Commit 7094d30a authored by Elias Villiger's avatar Elias Villiger
Browse files

B2998 - Conform Inline Radio Buttons to Bootstrap Design - refs #2998, closes #2998

parent 8203e8f7
Pipeline #968 passed with stage
in 1 minute and 42 seconds
......@@ -2258,6 +2258,7 @@ abstract class AbstractBuildForm {
$orientation = ($formElement[FE_MAX_LENGTH] > 1) ? ALIGN_HORIZONTAL : ALIGN_VERTICAL;
$radioClass = ($orientation === ALIGN_HORIZONTAL) ? 'radio-inline' : 'radio';
$radioOuterTag = ($orientation === ALIGN_HORIZONTAL) ? 'label' : 'div';
$br = '';
$attribute = $attributeBase;
......@@ -2299,7 +2300,7 @@ abstract class AbstractBuildForm {
}
}
$htmlElement = Support::wrapTag("<div class='$radioClass'>", $htmlElement) . $br;
$htmlElement = Support::wrapTag("<$radioOuterTag class='$radioClass'>", $htmlElement) . $br;
$html .= $htmlElement;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment