These are chat archives for symfony2admingenerator/GeneratorBundle

May 2015
Tobias Feijten
May 12 2015 19:06
In our base form template, we defined a class for our form labels (col-sm-2) since in all our forms the labels are to the left of the widget. Now, this class is also used for the filter labels we get when using 'filtersMode: top', making them unneccessarily be wrapped and take up more lines than needed. Is there any way to override this class only for filters? We found out that we can override the block using a template overriden from the AdminGenerator and using that as form theme, but it is then used for all the forms. Said otherwise, can we only apply the form theme to filters using a clever if statement? I hope this is not unclear