浏览代码

Add the default form theme in the main layout

Thomas Rabaix 14 年之前
父节点
当前提交
6c2ce029fd
共有 2 个文件被更改,包括 5 次插入0 次删除
  1. 3 0
      Resources/views/ajax_layout.html.twig
  2. 2 0
      Resources/views/standard_layout.html.twig

+ 3 - 0
Resources/views/ajax_layout.html.twig

@@ -8,6 +8,9 @@ For the full copyright and license information, please view the LICENSE
 file that was distributed with this source code.
 file that was distributed with this source code.
 
 
 #}
 #}
+
+{% form_theme form 'SonataAdminBundle:Form:admin_fields.html.twig' %}
+
 {% block content %}
 {% block content %}
     {% block preview %}{% endblock %}
     {% block preview %}{% endblock %}
     {% block form %}{% endblock %}
     {% block form %}{% endblock %}

+ 2 - 0
Resources/views/standard_layout.html.twig

@@ -52,6 +52,8 @@ file that was distributed with this source code.
     </head>
     </head>
     <body>
     <body>
 
 
+        {% form_theme form 'SonataAdminBundle:Form:admin_fields.html.twig' %}
+
         {# initialize block value #}
         {# initialize block value #}
         {% set preview      = block('preview') %}
         {% set preview      = block('preview') %}
         {% set form         = block('form') %}
         {% set form         = block('form') %}