1 {# Global styles for forms (uniform display) #}
3 {% block form_widget_simple %}
4 {% set type = type|default('text') %}
6 <input class="form-control" type="{{ type }}" {{ block('widget_attributes') }} {% if value is not empty %}value="{{ value }}" {% endif %}/>
8 {% endblock form_widget_simple %}
12 <div class="form-group">
13 {{ form_label(form) }}
14 {{ form_widget(form) }}
15 {{ form_errors(form) }}
18 {% endblock form_row %}
20 {% block form_errors %}
22 {% if errors|length > 0 %}
23 <div class="col-xs-12 col-sm-8 col-sm-offset-2">
25 {% for error in errors %}
26 <li>{{ error.message }}</li>
32 {% endblock form_errors %}