瀏覽代碼

line 29: Make required not show for each option in a radio list

line 52: fix inputs-list for a radio list.

Tarjei Huse 13 年之前
父節點
當前提交
0b65ec1d2b
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      Resources/views/Form/form_admin_fields.html.twig

+ 1 - 2
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 %}
@@ -52,7 +51,7 @@ file that was distributed with this source code.
 {% block choice_widget %}
 {% spaceless %}
     {% if expanded %}
-        <ul {{ block('widget_container_attributes_choice_widget') }}>
+        <ul {{ block('widget_container_attributes') }}>
         {% for child in form %}
             <li>
                 {{ form_label(child, null, { 'in_list_checkbox' : true, 'widget' : form_widget(child) } ) }}