vendor/sonata-project/admin-bundle/src/Resources/views/ajax_layout.html.twig line 1

Open in your IDE?
  1. {#
  2. This file is part of the Sonata package.
  3. (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
  4. For the full copyright and license information, please view the LICENSE
  5. file that was distributed with this source code.
  6. #}
  7. {% block content %}
  8.     {% set _list_table = block('list_table') is defined ? block('list_table')|trim : null %}
  9.     {% set _list_filters = block('list_filters') is defined ? block('list_filters')|trim : null %}
  10.     {% set _list_filters_actions = block('list_filters_actions') is defined ? block('list_filters_actions')|trim : null %}
  11.     {% block preview %}{% endblock %}
  12.     {% block form %}{% endblock %}
  13.     {% block list %}{% endblock %}
  14.     {% block show %}{% endblock %}
  15.     {% if _list_table is not empty or _list_filters is not empty %}
  16.     <div class="container-fluid">
  17.         <div class="row">
  18.             <div class="navbar navbar-default sonata-list-table">
  19.                 <div class="container-fluid">
  20.                     <div class="navbar-collapse">
  21.                         {% if admin is defined and action is defined and action == 'list' and admin.listModes|length > 1 %}
  22.                             <div class="nav navbar-right btn-group">
  23.                                 {% for mode, settings in admin.listModes %}
  24.                                     <a href="{{ admin.generateUrl('list', app.request.query.all|merge({_list_mode: mode})) }}" class="btn btn-default navbar-btn btn-sm{% if admin.getListMode() == mode %} active{% endif %}"><i class="{{ settings.class }}"></i></a>
  25.                                 {% endfor %}
  26.                             </div>
  27.                         {% endif %}
  28.                         {% if _list_filters_actions is not empty %}
  29.                             {{ _list_filters_actions|raw }}
  30.                         {% endif %}
  31.                     </div>
  32.                 </div>
  33.             </div>
  34.         </div>
  35.         {% if _list_filters|trim %}
  36.             <div class="row">
  37.                 {{ _list_filters|raw }}
  38.             </div>
  39.         {% endif %}
  40.         <div class="row">
  41.             {{ _list_table|raw }}
  42.         </div>
  43.     </div>
  44.     {% endif %}
  45. {% endblock %}