symfony/symfony — pull request #4733 by vicb (2012-07-03 18:14:57+00:00)
Title: [WIP][Form] Add theming support for collection

__This is a work in progress__

This is an attempt to allow form collection theming.

Before this PR, it was not possible to apply a theme to all the children of a collection, you would have needed to cretate one block per child:

```
{% block _form_collection_0_label %}
{# ... #}
{% endblock %}
```

You can now create a single theme that will be applied to all the children:

```
{% block _form_collection_children_label %}
{# ... #}
{% endblock %}
```

@Burgov, @bschussek, everybody, any feedback ?

Todo:
- Add tests,
- Restore BC (i.e. ability to theme a single children which must take precedence over the new theme),
- Changelog,
- Doc.

fix: #2806