mirror of
https://github.com/RustyRaptor/Python-Machine-Learning-Second-Edition.git
synced 2026-12-03 16:05:20 -07:00
12 lines
261 B
HTML
12 lines
261 B
HTML
{% 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 %} |