renderBootstrap3 seems to wrap every element on a form in <div .form-control …>, which works fine in most cases, but not with check boxes, where you get text on one line and single checkbox on the next line, that looks… strange.
According to docs, to render a checkbox beautifully with Bootstrap 3, <div .checkbox …> should be used:
Indeed, it seems impossible to detect from FieldView whether it's a checkbox or not (at least in non-hackish way), because fvInput is just a widget and other fields do not provide this sort of info. How do you render check-boxes normally? Am I missing something?
The text was updated successfully, but these errors were encountered:
renderBootstrap3
seems to wrap every element on a form in<div .form-control …>
, which works fine in most cases, but not with check boxes, where you get text on one line and single checkbox on the next line, that looks… strange.According to docs, to render a checkbox beautifully with Bootstrap 3,
<div .checkbox …>
should be used:But looking at the source code of
renderBootstrap3
,form-group
class fordiv
wrapper seems to be hard-coded:Indeed, it seems impossible to detect from
FieldView
whether it's a checkbox or not (at least in non-hackish way), becausefvInput
is just a widget and other fields do not provide this sort of info. How do you render check-boxes normally? Am I missing something?The text was updated successfully, but these errors were encountered: