Selaa lähdekoodia

Merge pull request #508 from tarjei/patch-2

line 29: Make required not show for each option in a radio list
Thomas 13 vuotta sitten
vanhempi
commit
0846591e83
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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 %}
                 {% else %}
                     {{- label|trans({}, sonata_admin.admin.translationDomain) -}}
                     {{- label|trans({}, sonata_admin.admin.translationDomain) -}}
                 {% endif%}
                 {% endif%}
-                {{ required ? '*' : '' }}
             </span>
             </span>
         </label>
         </label>
     {% else %}
     {% else %}
@@ -46,6 +45,7 @@ file that was distributed with this source code.
     {% spaceless %}
     {% spaceless %}
         id="{{ id }}"
         id="{{ id }}"
         {% for attrname,attrvalue in attr %}{{attrname}}="{% if attrname == 'class' %}inputs-list {% endif%}{{attrvalue}}" {% endfor %}
         {% for attrname,attrvalue in attr %}{{attrname}}="{% if attrname == 'class' %}inputs-list {% endif%}{{attrvalue}}" {% endfor %}
+        {% if "class" not in attr %}class="inputs-list"{%endif %}
     {% endspaceless %}
     {% endspaceless %}
 {% endblock %}
 {% endblock %}