phiamo/MopaBootstrapBundle — pull request #487 by mkraemer (2013-07-19 09:03:41+00:00)
Title: Added ButtonFormType to allow the usage of icons in buttons

Hi,

i extended the button type to allow the usage of FontAwesome/Glyphicons in buttons generated by the form component..
Usage:

class CertifierType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder

...

->add(
'save',
'submit',
[
'label' => 'certifier.form.save',
'icon' => 'save'
]
);
}

...

}

results in something like

Speichern