瀏覽代碼

Merge pull request #508 from tarjei/patch-2

line 29: Make required not show for each option in a radio list
Thomas 13 年之前
父節點
當前提交
0846591e83
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Resources/views/Form/form_admin_fields.html.twig

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

@@ -26,7 +26,6 @@ file that was distributed with this source code.
                 {% else %}
                     {{- label|trans({}, sonata_admin.admin.translationDomain) -}}
                 {% endif%}
-                {{ required ? '*' : '' }}
             </span>
         </label>
     {% else %}
@@ -46,6 +45,7 @@ file that was distributed with this source code.
     {% spaceless %}
         id="{{ id }}"
         {% for attrname,attrvalue in attr %}{{attrname}}="{% if attrname == 'class' %}inputs-list {% endif%}{{attrvalue}}" {% endfor %}
+        {% if "class" not in attr %}class="inputs-list"{%endif %}
     {% endspaceless %}
 {% endblock %}