<form method="{{method}}"
enctype="{{enctype or ''}}"
action="{{action}}">
{% for field in widget.fields %}
{% set ctx=widget.context_for(field) %}
{% if field.field_type != 'hidden' %}
{% if ctx.errors and field.show_errors -%}
<span {{widget.j2_attrs({'class':error_class})}}>{{ctx.errors}}<br>
{%- endif %}
{% if field.show_label and field.label %}
<label for="{{field.name}}" class="grid-4">{{field.label}}:</label>
{% endif %}
<div class="grid-14">{{field.display(**ctx)}}</div>
{% else %}
{{field.display(**ctx)}}
{% endif %}
{% endfor %}
<label class="grid-4"> </label>
<div class="grid-14">
{% for b in buttons %}
{{b.display()}}
{% endfor %}
</div>
</form>