{% set extra_width = 0 %} {% if style == 'wide' %} {% set extra_width = 4 %} {% endif %} {% if errors and not errors.iteritems and show_errors %}
{{errors}}
{% endif %} {% for field in widget.fields %} {% set ctx=widget.context_for(field) %} {% if field.field_type != 'hidden' %} {% if ctx.errors and field.show_errors -%}
{{ctx.errors}}
{%- endif %} {% if field.show_label and field.label %}
{{field.display(**ctx)}}
{% else %}
{{field.display(**ctx)}}
{% endif %} {% else %} {{field.display(**ctx)}} {% endif %} {% endfor %}
{% for b in buttons %} {{b.display()}} {% endfor %}
{% if widget.antispam %}{% for fld in g.antispam.extra_fields() %} {{fld}}{% endfor %}{% endif %}