Browse Source

Fix layout for modal popup

Thomas Rabaix 12 years ago
parent
commit
42a9762b70
2 changed files with 9 additions and 6 deletions
  1. 1 1
      Resources/views/CRUD/base_list.html.twig
  2. 8 5
      Resources/views/ajax_layout.html.twig

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

@@ -75,7 +75,7 @@ file that was distributed with this source code.
 
                 {% block table_footer %}
                     <tr>
-                        <th colspan="{{ admin.list.elements|length - (app.request.isXmlHttpRequest ? 2 : 0) }}">
+                        <th colspan="{{ admin.list.elements|length - (app.request.isXmlHttpRequest ? 1 : 0) }}">
                             <div class="form-inline">
                                 {% if not app.request.isXmlHttpRequest %}
                                     {% if batchactions|length > 0  %}

+ 8 - 5
Resources/views/ajax_layout.html.twig

@@ -15,10 +15,13 @@ file that was distributed with this source code.
     {% block list %}{% endblock %}
     {% block show %}{% endblock %}
 
-    <div class="sonata-ba-filter">
-        {% block list_filters %}{% endblock %}
-    </div>
-    <div class="sonata-ba-list">
-        {% block list_table %}{% endblock %}
+    <div class="row-fluid">
+        <div class="sonata-ba-list span10">
+            {% block list_table %}{% endblock %}
+        </div>
+
+        <div class="sonata-ba-filter span2">
+            {% block list_filters %}{% endblock %}
+        </div>
     </div>
 {% endblock %}