Changed to WTForms including validation
This commit is contained in:
@@ -12,11 +12,11 @@
|
||||
<div class="col-sm-10">
|
||||
{{ field(**kwargs)|safe }}
|
||||
{% if field.errors %}
|
||||
<ul class=errors>
|
||||
<p class='error'>
|
||||
{% for error in field.errors %}
|
||||
<li>{{ error }}</li>
|
||||
{{ error }}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user