{% import 'widgets/inline_list_base.html' as base with context %} {% import 'lib.html' as lib with context %} {% macro render_field(field) %} {% if field.errors is none %} {{ field }} {% else %} {{ lib.render_field(None, field, {'hide_controls': True, 'h2': h2, 'show_on_load': True}) }} {% endif %} {% endmacro %} {{ base.render_inline_fields(field, template, render_field) }}