{% extends 'form_div_layout.html.twig' %} {% block widget_container_attributes %} {% if errors|length > 0 %} {% set attr = attr|merge({'class': attr.class is defined ? attr.class ~ ' error' : 'error'}) %} {% endif %} {{ parent() }} {% endblock widget_container_attributes %} {% block date_widget %} {% spaceless %} {% set type = 'text' %} {% if widget == 'single_text' %} {{ block('form_widget_simple')|raw }} {% else %}