Thomas Rabaix 11 anni fa
parent
commit
b3e94bd836

+ 2 - 0
Resources/views/CRUD/base_edit_form.html.twig

@@ -31,6 +31,7 @@
                     </ul>
             {% endblock %}
 
+            {% block sonata_tab_content %}
                 <div class="tab-content">
                     {% for name, form_group in admin.formgroups %}
                         <div class="tab-pane {% if loop.first %} active{% endif %}" id="{{ admin.uniqid }}_{{ loop.index }}">
@@ -50,6 +51,7 @@
                         </div>
                     {% endfor %}
                 </div>
+            {% block sonata_tab_content %}
 
             {% block sonata_post_fieldsets %}
                 </div>

+ 4 - 0
Resources/views/CRUD/base_list.html.twig

@@ -20,6 +20,8 @@ file that was distributed with this source code.
 {% block side_menu %}{{ knp_menu_render(admin.sidemenu(action), {'currentClass' : 'active'}, 'list') }}{% endblock %}
 
 {% block list_table %}
+    {% block list_header %}{% endblock %}
+
     {% set batchactions = admin.batchactions %}
     {% if admin.datagrid.results|length > 0 %}
         {% if admin.hasRoute('batch') %}
@@ -144,6 +146,8 @@ file that was distributed with this source code.
             {{ 'no_result'|trans({}, 'SonataAdminBundle') }}
         </p>
     {% endif %}
+
+    {% block list_footer %}{% endblock %}
 {% endblock %}
 
 {% block list_filters %}