After installation of the new Symfony2.6 along with the integrated Bootstrao form theme. I now have an issue when rendering Money fields.
A picture it probably easier than trying to describe it.
The code used to render the field from with-in the Bootstrap_3_layout.html.twig looks like this:
//Bootstrap_3_layout.html.twig
{% block money_widget -%}
<div class="input-group">
{% set prepend = '{{' == money_pattern[0:2] %}
{% if not prepend %}
<span class="input-group-addon">{{ money_pattern|replace({ '{{ widget }}':''}) }}</span>
{% endif %}
{{- block('form_widget_simple') -}}
{% if prepend %}
<span class="input-group-addon">{{ money_pattern|replace({ '{{ widget }}':''}) }}</span>
{% endif %}
</div>
{%- endblock money_widget %}
And the rendered Html looks like this:
<div class="input-group">
<input type="text" id="cost" name="product[cost]" required="required" class="form-control">
<span class="input-group-addon">{{ tag_start }}€{{ tag_end }} </span>
</div>
Before the upgrade to 2.6 the fields worked perfectly fine.
I've checked that the Intl extension is enabled in php.ini and in in config.yml I have these settings:
//Config.yml
framework:
translator: { fallback: "%locale%" }
default_locale: "%locale%"
//Php.ini
[intl]
intl.default_locale = en_utf8
//forms/ProductType.php
->add('cost', 'money', array(
'currency' => 'EUR',
'label' => 'Cost',
))
//views/show.html.twig
{{ form_row(form.cost)}}