diff --git a/app/templates/macros.jinja b/app/templates/macros.jinja index 0e8e4ab4..d61de68b 100644 --- a/app/templates/macros.jinja +++ b/app/templates/macros.jinja @@ -1,31 +1,30 @@ {% 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 %} +
+ {{ field.label.text[0:1]|upper }} + {{ field.label }} + {{ field(data_length='255')|safe }} + {% for error in field.errors %} + {{ error }} + {% endfor %} +
{% 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 %} +
+ {{ field.label.text[0:1]|upper }} + {{ field.label }} + {{ field(value=corpus_file[field.name], data_length='255')| safe }} + {% for error in field.errors %} + {{ error }} + {% endfor %} +
{% endmacro %} {% macro submit_button(input) %} - + {% endmacro %}