From 6177093a51e1de564c93fb974b32ea272e6055ec Mon Sep 17 00:00:00 2001 From: Patrick Jentsch Date: Thu, 16 Apr 2020 13:47:52 +0200 Subject: [PATCH] Set characters according to metadata label --- app/templates/macros.jinja | 41 +++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 21 deletions(-) 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 %}