Browse Source

Add the default form theme in the main layout

Thomas Rabaix 14 years ago
parent
commit
6c2ce029fd

+ 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.
 
 #}
+
+{% form_theme form 'SonataAdminBundle:Form:admin_fields.html.twig' %}
+
 {% block content %}
     {% block preview %}{% 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>
     <body>
 
+        {% form_theme form 'SonataAdminBundle:Form:admin_fields.html.twig' %}
+
         {# initialize block value #}
         {% set preview      = block('preview') %}
         {% set form         = block('form') %}