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