[TwigBridge] Fix bootstrap rendering when user explicitly use form_label
This commit is contained in:
parent
77cb48e1e2
commit
717c6d1800
|
@ -156,6 +156,8 @@
|
|||
{%- endblock radio_label %}
|
||||
|
||||
{% block checkbox_radio_label %}
|
||||
{# Do no display the label if widget is not defined in order to prevent double label rendering #}
|
||||
{% if widget is defined %}
|
||||
{% if required %}
|
||||
{% set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ' required')|trim}) %}
|
||||
{% endif %}
|
||||
|
@ -169,6 +171,7 @@
|
|||
{{ widget|raw }}
|
||||
{{ label|trans({}, translation_domain) }}
|
||||
</label>
|
||||
{% endif %}
|
||||
{% endblock checkbox_radio_label %}
|
||||
|
||||
{# Rows #}
|
||||
|
|
Reference in New Issue