{% if errors.get('__all__') %} {% endif %} {% for fs in fieldsets %} {% for row_cols in fs.rows %}
{% for col in row_cols %} {% set spec = field_specs[col] %} {% if spec.kind not in ['file', 'display_ro', 'm2m'] %}
{% if spec.kind == 'boolean' %} {% elif spec.kind == 'enum' %} {% elif spec.kind == 'fk' %} {% elif spec.kind in ['text', 'json'] %} {% elif spec.kind in ['integer', 'float', 'decimal'] %} {% elif spec.kind == 'date' %} {% elif spec.kind == 'datetime' %} {% elif spec.kind == 'email' %} {% else %} {% endif %} {% if spec.help_text %}
{{ spec.help_text }}
{% endif %} {% if errors.get(spec.name) %}
{{ errors[spec.name] | join(' ') }}
{% endif %}
{% endif %} {% endfor %}
{% endfor %} {% endfor %}