Fix missing space in label_attr

``label_attr`` in ``checkbox_radio_label`` is missing a space with ``parent_label_class``
This commit is contained in:
Massimiliano Arione 2014-12-09 10:58:23 +01:00
parent 0a09eaf609
commit 90b3f3b040
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@
{% set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ' required')|trim}) %}
{% endif %}
{% if parent_label_class is defined %}
{% set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ parent_label_class)|trim}) %}
{% set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ' ' ~ parent_label_class)|trim}) %}
{% endif %}
{% if label is empty %}
{% set label = name|humanize %}