New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
label_attr arguments ignored in bootstrap_3_layout #15046
Comments
@jonathanbull Unfortunately, I was not able to reproduce your issue. Does this happen for all form types? Could you provide a fork of the Symfony Standard Edition that reproduces this? |
@xabbuh Sorry, I've just realised that this only affects checkboxes under the bootstrap layout:
Could you please give it another go? If you're still unable to reproduce it, I'd be happy to provide that fork. |
@jonathanbull The checkbox type is a bit special when using the Bootstrap theme as the label will already be handled by the widget. So {{ form_widget(form.foo, 'Foo', {'label_attr': {'class': 'bar'}}) }} |
By the way, this will soon be reflected in the documentation on symfony.com when symfony/symfony-docs#5460 is merged. |
I'm using the bootstrap_3_layout. If I use form_label arguments, they are ignored:
This does not happen with form_div_layout:
The text was updated successfully, but these errors were encountered: