瀏覽代碼

change colspan based on context

matteosister 13 年之前
父節點
當前提交
73e6d83835
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Resources/views/CRUD/base_list.html.twig

+ 1 - 1
Resources/views/CRUD/base_list.html.twig

@@ -73,7 +73,7 @@ file that was distributed with this source code.
 
                 {% block table_footer %}
                     <tr>
-                        <th colspan="{{ admin.list.elements|length - 1 }}">
+                        <th colspan="{{ admin.list.elements|length - (app.request.isXmlHttpRequest ? 2 : 1) }}">
                             {{ admin.datagrid.pager.page }} / {{ admin.datagrid.pager.lastpage }} -
                             {{ "label_export_download"|trans({}, "SonataAdminBundle") }}
                             {% for format in admin.getExportFormats() %}