xppl/app/templates/_formhelpers.html

13 lines
294 B
HTML
Raw Normal View History

2018-05-31 18:26:22 +02:00
{% macro render_field(field) %}
<dt>{{ field.label }}
<dd>{{ field(**kwargs)|safe }}
{% if field.errors %}
<ul class=errors>
{% for error in field.errors %}
<li>{{ error }}</li>
{% endfor %}
</ul>
{% endif %}
</dd>
2018-06-13 20:29:25 +02:00
{% endmacro %}