Created
April 11, 2019 17:23
-
-
Save M0r13n/078977ed13c4ff20d4e6b18efa0a432d to your computer and use it in GitHub Desktop.
WTF-Forms - Render Form Field Errors
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% macro render_errors(field) %} | |
{% for error in field.errors %} | |
<div class="alert alert-error text-danger"> | |
{{ error }} | |
</div> | |
{% endfor %} | |
{% endmacro %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment