{# Widget attributes #} {% block widget_container_attributes %} {% apply spaceless %} {% if id is not empty %}id="{{ id }}" {% endif %} {% for attrname, attrvalue in attr %}{{ attrname }}="{{ attrvalue }}" {% endfor %} {% endapply %} {% endblock widget_container_attributes %} {# Form row #} {% block form_row %} {% apply spaceless %}