AnimeEasySync/anime_easy_sync/templates/_formhelpers.jinja
2024-02-26 17:39:11 +01:00

12 lines
261 B
Django/Jinja

{% 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>
{% endmacro %}