{% extends "MopaBootstrapSandboxBundle::layout.html.twig" %} {% from 'MopaBootstrapBundle::flash.html.twig' import session_flash %} {% block headline %}Forms Example{% endblock headline %} {% block content %}

Basic form

With v2.0, we have lighter and smarter defaults for form styles. No extra markup, just form controls.

{{ form_widget(form) }}

Search form

Reflecting default WebKit styles, just add .form-search for extra rounded search fields.

Inline form

Inputs are block level to start. For .form-inline and .form-horizontal, we use inline-block.

{% endblock content %} {% set showTemplate = _self %}{% set showForm = formType %}