sonata-project/SonataAdminBundle — Issue #409: Input form attributes in Label?
Author: zhil
Created: 2011-11-16 16:03:51+00:00
State: open

I used code like

protected function configureFormFields(FormMapper $formMapper)
{
$formMapper
// ....
->with('Meta Tags')
->add('metaTitle',null, array('required'=>true, 'attr'=>array('size'=>'148')))
->add('metaKeywords',null, array('required'=>true, 'attr'=>array('style'=>'width:900px; height:100px;')))
// ....
}

For changing width and height of the textarea in add/edit form.
Right now it break layout, because attributes are added to the text label as well.

Any suggestions how I should solve this issue without modifying core sonata templates?