phiamo/MopaBootstrapBundle — pull request #848 by naitsirch (2014-04-24 10:28:12+00:00)
Title: Merge individual attributes of collection buttons with global attributes [v2.3]

In the current 2.3 branch, we are using in one of our projects, the globally configured attributes of collection buttons are thrown away, if you setting only one attribute in your form type.

For example:
```yaml
# app/config/config.yml
mopa_bootstrap:
form:
collection:
widget_remove_btn:
attr: { class: "btn btn-mini btn-danger" }
```
```php
$builder
->add('productionQuantities', 'hig_collection', array( // TODO: Christian Collectiontype einbauen
// ...
'options' => array(
'widget_remove_btn' => [
'attr' => ['ng-click' => 'onRemoveProductionQuantity()'],
],
),
));
```
This leads to a remove button, that does not have a `class` attribute, but only `ng-click`.

It would be much better to merge the attributes with the global configured attributes. This is done in this PR. It would be nice if this could be merged.

Thanks.