rpi_video_looper/Adafruit_Video_Looper/templates/security/_macros.html
J. Fernando Sánchez 322d9992fc Added WebUI
2015-06-08 15:27:55 +02:00

16 lines
315 B
HTML

{% macro render_field_with_errors(field) %}
<p>
{{ field.label }} {{ field(**kwargs)|safe }}
{% if field.errors %}
<ul>
{% for error in field.errors %}
<li>{{ error }}</li>
{% endfor %}
</ul>
{% endif %}
</p>
{% endmacro %}
{% macro render_field(field) %}
<p>{{ field(**kwargs)|safe }}</p>
{% endmacro %}