Assuming bootstrap usually works, there is one problem displaying your form:
Symfony automatically sets the id attribute. This way, when 'id': 'text'you do not rewrite symfonys id, you just add another id attribute, for example.
<input type="text" id="pec_bundle_travelCostsBundle_test_Text" ... id="text" class="collapse" placeholder="text.." style="height: 200px" />
bootstrap #text. 'id': 'text' data-target symfony. :
<button type="button" class="btn btn-info" data-dismiss="modal"
data-toggle="collapse" data-target="#pec_bundle_travelCostsBundle_test_Text">TEXT</button>
{{
form_widget(form.Text,
{'attr': {
'class': 'collapse',
'placeholder': 'text..',
'style' : 'height: 200px'}}
)
}}
{{ form_errors(form.Text) }}
id, - .