{% macro render_field(field) %}
{{ field.name[0:1]|upper }} {{ field.label }} {{ field(data_length='255')|safe }}
{% if field.errors %} {% for error in field.errors %} {{ error }} {% endfor %} {% endif %} {% endmacro %} {% macro render_field_with_value(field, corpus_file) %}
{{ field.name[0:1]|upper }} {{ field.label }} {{ field(value=corpus_file[field.name], data_length='255')| safe }}
{% if field.errors %} {% for error in field.errors %} {{ error }} {% endfor %} {% endif %} {% endmacro %} {% macro submit_button(input) %} {% endmacro %}