claroline/CoreBundle — pull request #391 by maxailloud (2014-03-06 10:06:42+00:00)
Title: Add resource form field on badge rule

We can define a resource on which a rule will be validate.

Refactoring of the badge rule form theme, much better to use one file instead of copy/pasting every change.

This PR need the acceptation of this one in the [kbond/ZenstruckFormBundle](https://github.com/kbond/ZenstruckFormBundle/pull/27) and a new release of it.
It adds the support of extra data for ajax request when using the AjaxEntityType field type. I'm using it to filter resource on a specific wokrspace, for badge created in a workspace.