tptimer/templates/_macro.html

12 lines
289 B
HTML
Raw Permalink Normal View History

2018-07-20 05:43:02 +00:00
{% macro render_field(field) %}
<td>{{ field.label }}</td>
<dd>{{ field(**kwargs)|safe }}</dd>
{% if field.errors %}
<ul>
{% for error in field.errors %}
<li>{{ error }}</li>
{% endfor %}
</ul>
{% endif %}
{% endmacro %}