Browse Source

Fix theme

Thomas Rabaix 14 years ago
parent
commit
d10c693b50

+ 2 - 0
Resources/views/CRUD/base_edit.html.twig

@@ -31,6 +31,8 @@ file that was distributed with this source code.
 
 {% block form %}
 
+    {% form_theme form 'SonataAdminBundle:Form:admin_fields.html.twig' %}
+
     {% if admin.id(object) %}
         {% set url = 'edit' %}
     {% else %}

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

@@ -9,8 +9,6 @@ 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 %}

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

@@ -52,8 +52,6 @@ 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') %}