akindices/app/templates/_formhelpers.html
2015-09-02 16:59:10 -07:00

12 lines
287 B
HTML

{% macro render_field(field) %}
{{ field(**kwargs)|safe }}
{% if field.errors %}
<div class="alert alert-danger">
<ul>
{% for error in field.errors %}
<li>{{ error }}</li>
{% endfor %}
</ul>
</div>
{% endif %}
{% endmacro %}