{% macro render_field(field) %} {% if field.type == 'BooleanField' %} {{ render_boolean_field(field, *args, **kwargs) }} {% elif field.type == 'FileField' %} {{ render_file_field(field, *args, **kwargs) }} {% elif field.type == 'IntegerField' %} {{ render_integer_field(field, *args, **kwargs) }} {% elif field.type == 'MultipleFileField' %} {{ render_multiple_file_field(field, *args, **kwargs) }} {% elif field.type == 'SubmitField' %} {{ render_submit_field(field, *args, **kwargs) }} {% elif field.type == 'TextAreaField' %} {{ render_text_area_field(field, *args, **kwargs) }} {% else %} {{ render_generic_field(field, *args, **kwargs) }} {% endif %} {% endmacro %} {% macro render_boolean_field(field) %}