{% extends "MopaBootstrapSandboxBundle::layout.html.twig" %} {% from 'MopaBootstrapBundle::flash.html.twig' import session_flash %} {% block headline %}Extended Forms Views{% endblock headline %} {% block content %}
All things shown here are directly included via the bundle.
You can completely drive the appearence within view too, and hopefully updates wont change the anything!!
An example: to generate a nice input field with appended icon:
$builder
->add('appendedicon')
;
and in your twig template:
{% raw %}
{{ form_row(form.appendedicon,
{'label': 'Appended Icon',
'widget_addon': {'type': 'append',
'icon': 'headphones'},
'attr': {'class': 'input-large',
'placeholder': 'What kind of music do you like?'}
}) }}
{% endraw %}
Have a look into the source code of this template and its form class and see how this page is completely view driven