mirror of https://github.com/pallets/flask.git
Revert "wtforms: Add missing closing tags in example (#1917)"
This reverts commit 146cba53e7.
This commit is contained in:
parent
663d786f68
commit
d8c39f4b37
|
|
@ -82,7 +82,7 @@ Here's an example :file:`_formhelpers.html` template with such a macro:
|
|||
.. sourcecode:: html+jinja
|
||||
|
||||
{% macro render_field(field) %}
|
||||
<dt>{{ field.label }}</dt>
|
||||
<dt>{{ field.label }}
|
||||
<dd>{{ field(**kwargs)|safe }}
|
||||
{% if field.errors %}
|
||||
<ul class=errors>
|
||||
|
|
@ -108,7 +108,7 @@ takes advantage of the :file:`_formhelpers.html` template:
|
|||
.. sourcecode:: html+jinja
|
||||
|
||||
{% from "_formhelpers.html" import render_field %}
|
||||
<form method=post>
|
||||
<form method=post action="/register">
|
||||
<dl>
|
||||
{{ render_field(form.username) }}
|
||||
{{ render_field(form.email) }}
|
||||
|
|
@ -116,7 +116,7 @@ takes advantage of the :file:`_formhelpers.html` template:
|
|||
{{ render_field(form.confirm) }}
|
||||
{{ render_field(form.accept_tos) }}
|
||||
</dl>
|
||||
<p><input type=submit value=Register></p>
|
||||
<p><input type=submit value=Register>
|
||||
</form>
|
||||
|
||||
For more information about WTForms, head over to the `WTForms
|
||||
|
|
|
|||
Loading…
Reference in New Issue