sonata-project/SonataAdminBundle — pull request #2498 by nicwortel (2014-10-16 13:45:26+00:00)
Title: Extend money_widget and percent_widget

This PR fixes #2214

Input fields are streched to 100% width in the new SonataAdminBundle, but this doesn't take into account any extra text such as percentage signs or currency symbols, causing either the symbol or the input field to be pushed to the next line.

Using Bootstrap's `input-group` we can prevent this, and also render the symbol in a nicer way.

The money widget respects the `money_pattern` variable, so the currency symbol will be rendered before or after the input, depending on the locale or the given `money_pattern`.

**Before:**

![before](https://cloud.githubusercontent.com/assets/1055691/4663294/3a0932d8-553a-11e4-8c59-f9aac49cefc3.png)

**After:**

![after](https://cloud.githubusercontent.com/assets/1055691/4663295/3dcddc0c-553a-11e4-817b-3bbc2f021bbc.png)