浏览代码

Add body_attributes block

This allow us to customize login screen
+ change admin design based on user for company which have different brands
Nicolas Bastien 11 年之前
父节点
当前提交
62e9782ae7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Resources/views/standard_layout.html.twig

+ 1 - 1
Resources/views/standard_layout.html.twig

@@ -94,7 +94,7 @@ file that was distributed with this source code.
             {% endif%}
             {% endif%}
         </title>
         </title>
     </head>
     </head>
-    <body class="sonata-bc {% if _side_menu is empty %}sonata-ba-no-side-menu{% endif %}">
+    <body {% block body_attributes %}class="sonata-bc {% if _side_menu is empty %}sonata-ba-no-side-menu{% endif %}"{% endblock %}>
         {# initialize block value #}
         {# initialize block value #}
 
 
         <div class="navbar navbar-fixed-top">
         <div class="navbar navbar-fixed-top">