akindices/snapindices/templates/_formhelpers.html
Matthew Dillon (diogenes) c537cc0ec6 Initial Public Release
2013-09-08 20:37:01 -08:00

12 lines
No EOL
286 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 %}