{% set ctx = widget.context_for(selector) %} {% if selector.show_label %}
{% endif %} {% if ctx.errors and selector.show_errors %} {{ ctx.errors }}
{% endif %} {{ selector.display(css_class=selector_cls, **ctx) }} {% for name, field in states.items() %} {% set ctx = widget.context_for(field) %}
{% if field.show_label %}
{% endif %} {% if ctx.errors and field.show_errors %}{{ ctx.errors }}
{% endif %} {{ field.display(**ctx) }}
{% endfor %}