Closed
Description
Q | A |
---|---|
Bug report? | yes |
Feature request? | no |
BC Break report? | no |
RFC? | no |
Symfony version | 3.4.0-BETA1 |
In 3.4.0-BETA and probably in 4.0.0-BETA, because of the refactorization, and extension of Bootstrap form themes in #21751 the checkbox render is failing for Bootstrap 3.
3.4.0-BETA (bad, the placeholder for the label is missing):
Here is a sample reproduction with 2 branches (stable, beta):
https://github.com/antalaron/symfony-issue-checkbox
I checked, if re-include the original code for checkboxes to bootstrap_3_horizontal_layout.html.twig
, it's ok:
{% block checkbox_row -%}
{{- block('checkbox_radio_row') -}}
{%- endblock checkbox_row %}
{% block checkbox_radio_row -%}
{% spaceless %}
<div class="form-group{% if not valid %} has-error{% endif %}">
<div class="{{ block('form_label_class') }}"></div>
<div class="{{ block('form_group_class') }}">
{{ form_widget(form) }}
{{ form_errors(form) }}
</div>
</div>
{% endspaceless %}
{%- endblock checkbox_radio_row %}
But I don't know if it breaks anything else.