Browse Source

Added missing html tag in wtforms docs

pull/2136/head
Marcelo Canina 8 years ago
parent
commit
a3adc2df2d
  1. 4
      docs/patterns/wtforms.rst

4
docs/patterns/wtforms.rst

@ -82,10 +82,10 @@ Here's an example :file:`_formhelpers.html` template with such a macro:
.. sourcecode:: html+jinja
{% macro render_field(field) %}
<dt>{{ field.label }}
<dt>{{ field.label }}</dt>
<dd>{{ field(**kwargs)|safe }}
{% if field.errors %}
<ul class=errors>
<ul class="errors">
{% for error in field.errors %}
<li>{{ error }}</li>
{% endfor %}

Loading…
Cancel
Save