src/CoreBundle/Resources/views/admin/standart_layout.html.twig line 1

Open in your IDE?
  1. {% extends 'SonataAdminBundle::standard_layout.html.twig' %}
  2. {% block sonata_sidebar_search %}
  3. {% endblock sonata_sidebar_search %}
  4. {% block side_bar_after_nav %}
  5.     {% block side_bar_after_nav_content %}
  6.     {% endblock %}
  7. {% endblock %}
  8. {% block sonata_top_nav_menu_add_block %}
  9.     {% if app.user and is_granted('ROLE_SUPER_ADMIN') %}
  10.         {{- parent() -}}
  11.     {% else %}
  12.     {% endif %}
  13. {% endblock %}
  14. {% block stylesheets %}
  15.     {{- parent() -}}
  16.     <style>
  17.         .btn-group {
  18.             display: flex;
  19.         }
  20.     </style>
  21. {% endblock stylesheets %}
  22. {% block javascripts %}
  23.     {{- parent() -}}
  24.     <script>
  25.         $(document).ready(function () {
  26.             $('[data-toggle="tooltip"]').tooltip({html: true});
  27.         });
  28.     </script>
  29.     <!-- Google Tag Manager -->
  30.     <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  31.             new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  32.             j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  33.             'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  34.         })(window,document,'script','dataLayer','GTM-TLCC7S4');</script>
  35.     <!-- End Google Tag Manager -->
  36. {% endblock %}
  37. {% block sonata_header %}
  38.     {{- parent() -}}
  39.     <!-- Google Tag Manager (noscript) -->
  40.     <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-TLCC7S4"
  41.                       height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  42.     <!-- End Google Tag Manager (noscript) -->
  43. {% endblock %}
  44. {% block sonata_page_content_nav %}
  45.     {% if _tab_menu is not empty or _actions is not empty or _list_filters_actions is not empty %}
  46.         <nav class="navbar navbar-default" role="navigation">
  47.             <div class="container-fluid">
  48.                 {% block tab_menu_navbar_header %}
  49.                     {% if _navbar_title is not empty %}
  50.                         <div class="navbar-header">
  51.                             <a class="navbar-brand" href="#">{{ _navbar_title|raw }}</a>
  52.                         </div>
  53.                     {% endif %}
  54.                 {% endblock %}
  55.                 <div class="navbar-collapse" style="padding: 0">
  56.                     <div class="navbar-left">
  57.                         {% if _tab_menu is not empty %}
  58.                             {{ _tab_menu|raw }}
  59.                         {% endif %}
  60.                     </div>
  61.                     {% block sonata_admin_content_actions_wrappers %}
  62.                         {% if _actions|replace({ '<li>': '', '</li>': '' })|trim is not empty %}
  63.                             <ul class="nav navbar-nav navbar-right">
  64.                                 {% if _actions|split('</a>')|length > 2 %}
  65.                                     <li class="dropdown sonata-actions">
  66.                                         <a href="#" class="dropdown-toggle" data-toggle="dropdown" style="padding-right: 0">{{ 'link_actions'|trans({}, 'SonataAdminBundle') }} <b class="caret"></b></a>
  67.                                         <ul class="dropdown-menu" role="menu">
  68.                                             {{ _actions|raw }}
  69.                                         </ul>
  70.                                     </li>
  71.                                 {% else %}
  72.                                     {{ _actions|raw }}
  73.                                 {% endif %}
  74.                             </ul>
  75.                         {% endif %}
  76.                     {% endblock sonata_admin_content_actions_wrappers %}
  77.                     {% if _list_filters_actions is not empty %}
  78.                         {{ _list_filters_actions|raw }}
  79.                     {% endif %}
  80.                 </div>
  81.             </div>
  82.         </nav>
  83.     {% endif %}
  84. {% endblock sonata_page_content_nav %}