Commit c6f68e66 authored by Carsten  Rose's avatar Carsten Rose
Browse files

Merge branch 'B2998-improved-radio-button-bootstrap' into 'master'

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

See merge request !98
parents c58ae192 2599ffcf
Pipeline #1024 passed with stage
in 1 minute and 33 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;
......@@ -2300,7 +2301,7 @@ abstract class AbstractBuildForm {
$wrapAttribute = Support::doAttribute('title', $formElement[FE_TOOLTIP]);
$wrapAttribute .= Support::doAttribute('class', $radioClass);
$htmlElement = Support::wrapTag("<div $wrapAttribute>", $htmlElement) . $br;
$htmlElement = Support::wrapTag("<$radioOuterTag $wrapAttribute>", $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