pomaxa 13 anni fa
parent
commit
986b7008b4
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      Resources/views/Form/form_admin_fields.html.twig

+ 4 - 0
Resources/views/Form/form_admin_fields.html.twig

@@ -77,6 +77,9 @@ file that was distributed with this source code.
 {% endblock choice_widget %}
 
 {% block field_row %}
+    {% if sonata_admin is not defined or not sonata_admin_enabled or not sonata_admin.field_description %}
+        {{ form_row(form) }}
+    {% else %}
         <div class="clearfix{% if errors|length > 0%} error{%endif%}" id="sonata-ba-field-container-{{ id }}">
             {% block label %}
                 {% if sonata_admin.field_description.options.name is defined %}
@@ -101,6 +104,7 @@ file that was distributed with this source code.
                 {% endif %}
             </div>
         </div>
+    {% endif %}
 {% endblock field_row %}
 
 {% block collection_widget_row %}