symfony2admingenerator/AdmingeneratorGeneratorBundle — pull request #370 by sescandell (2013-03-04 10:26:55+00:00)
Title: [Features] Form theme add is now mandatory

Always adding Admingenerator form the at the last position like it was before this PR may invoke some errors (we cannot for example override form theming in our all application (BO and FO)... got the problem using AdmingeneratorBundle and MopaBootstrapBundle).

With this PR we can now manage how to "inject" Admingenerator form theme in twig configuration. By default, and without configuring nothing, I keep original behavior. Now, depending on the value of admingenerator.twig.use_form_resources parameter and content of twig.form.resources parameter, "AdmingeneratorBundle:Form;fields.html.twig" is automatically added or not.

AdmingeneratorBundle:Form:fields.html.twig has been split into two files : one for global form theming (form_row, ...) one for custom widgets (upload_widget for example). This permits to use custom widget without include all form theme from AdmingeneratorBundle