rpi_video_looper/Adafruit_Video_Looper/templates/security/_macros.html

16 lines
315 B
HTML
Raw Normal View History

2015-06-08 13:27:55 +00:00
{% 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 %}