Skip to content
This repository has been archived by the owner on Aug 12, 2019. It is now read-only.

Commit

Permalink
Merge pull request #24 from jtojnar/master
Browse files Browse the repository at this point in the history
added support for inline RadioList
  • Loading branch information
hrach committed Feb 26, 2015
2 parents 2705e35 + d6fc59f commit f42e7fc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Rendering/Bs3FormRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,11 @@ private function controlsInit()
$control->getControlPrototype()->addClass('form-control');

} elseif ($control instanceof Controls\Checkbox || $control instanceof Controls\CheckboxList || $control instanceof Controls\RadioList) {
$control->getSeparatorPrototype()->setName('div')->addClass($control->getControlPrototype()->type);
if ($control->getSeparatorPrototype()->getName() !== NULL) {
$control->getSeparatorPrototype()->setName('div')->addClass($control->getControlPrototype()->type);
} else {
$control->getItemLabelPrototype()->addClass($control->getControlPrototype()->type . '-inline');
}
}
}
}
Expand Down

0 comments on commit f42e7fc

Please sign in to comment.