瀏覽代碼

Fix label_attr.class chaining

Label class provided in form mapping was chained to the default label class, without a whitespace
Daniele Bartocci 11 年之前
父節點
當前提交
daa4da46f9
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Resources/views/Form/form_admin_fields.html.twig

+ 2 - 2
Resources/views/Form/form_admin_fields.html.twig

@@ -27,9 +27,9 @@ file that was distributed with this source code.
 
     {% set label_class = "" %}
     {% if sonata_admin.admin and sonata_admin.admin.getConfigurationPool().getOption('form_type') == 'horizontal' %}
-        {% set label_class = "control-label col-sm-3" %}
+        {% set label_class = " control-label col-sm-3" %}
     {% else %}
-        {% set label_class = "control-label" %}
+        {% set label_class = " control-label" %}
     {% endif%}
 
     {#{{ sonata_admin.admin.getConfigurationPool().getOption('form_type') }}#}