Permalink
Browse files

Update docs/patterns/wtforms.rst

  • Loading branch information...
awsum authored and rduplain committed Feb 21, 2012
1 parent fc7fe62 commit 20a3281209a5e99271c911f9c1143b1e6f0fb0b5
Showing with 5 additions and 3 deletions.
  1. +5 −3 docs/patterns/wtforms.rst
@@ -85,8 +85,10 @@ Here's an example `_formhelpers.html` template with such a macro:
<dt>{{ field.label }}
<dd>{{ field(**kwargs)|safe }}
{% if field.errors %}
- <ul class="errors">
- {% for error in field.errors %}<li>{{ error }}{% endfor %}
+ <ul class=errors>
+ {% for error in field.errors %}
+ <li>{{ error }}</li>
+ {% endfor %}
</ul>
{% endif %}
</dd>
@@ -106,7 +108,7 @@ takes advantage of the `_formhelpers.html` template:
.. sourcecode:: html+jinja
{% from "_formhelpers.html" import render_field %}
- <form method="post" action="/register">
+ <form method=post action="/register">
<dl>
{{ render_field(form.username) }}
{{ render_field(form.email) }}

0 comments on commit 20a3281

Please sign in to comment.