[Twig][Bridge] force space between widget and label in checkbox_radio_label

This commit is contained in:
MatTheCat 2015-08-04 12:12:12 +02:00 committed by Fabien Potencier
parent 2d1d9d68df
commit ed9c6103f8
2 changed files with 14 additions and 15 deletions

View File

@ -170,8 +170,7 @@
{% set label = name|humanize %}
{% endif %}
<label{% for attrname, attrvalue in label_attr %} {{ attrname }}="{{ attrvalue }}"{% endfor %}>
{{- widget|raw -}}
{{- label is not same as(false) ? (translation_domain is same as(false) ? label : label|trans({}, translation_domain)) -}}
{{- widget|raw }} {{ label is not same as(false) ? (translation_domain is same as(false) ? label : label|trans({}, translation_domain)) -}}
</label>
{% endif %}
{% endblock checkbox_radio_label %}