{# Widgets #} {% block form_widget %} {% spaceless %} {% if compound %} {{ block('form_widget_compound') }} {% else %} {{ block('form_widget_simple') }} {% endif %} {% endspaceless %} {% endblock form_widget %} {% block form_widget_simple %} {% spaceless %} {% set type = type|default('text') %} {% if attr.prepend_input is defined and attr.append_input is defined and attr.prepend_input is not empty and attr.append_input is not empty %} {{ block('form_widget_prepend_append_input') }} {% elseif attr.prepend_input is defined and attr.prepend_input is not empty %} {{ block('form_widget_prepend_input') }} {% elseif attr.append_input is defined and attr.append_input is not empty %} {{ block('form_widget_append_input') }} {% else %} {% endif %} {% if attr.help_block is defined %} {{ block('help_block') }} {% endif %} {% if attr.help is defined %} {{ block('help_inline') }} {% endif %} {% endspaceless %} {% endblock form_widget_simple %} {% block form_widget_prepend_append_input %} {% spaceless %}