diff --git a/progit/templates/_formhelper.html b/progit/templates/_formhelper.html index 091b07b..2846168 100644 --- a/progit/templates/_formhelper.html +++ b/progit/templates/_formhelper.html @@ -49,3 +49,14 @@ {% endfor %} {% endif %} {% endmacro %} + + +{% macro render_field_in_list(field) %} +
  • {{ field.label }}
  • +
  • {{ field(**kwargs)|safe }}
  • +{% if field.errors %} +{% for error in field.errors %} +
  • {{ error }}
  • +{% endfor %} +{% endif %} +{% endmacro %}