@@ -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 %}
@@ -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 %}
@@ -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') %}