Skip to content
Myr

Revert "wtforms: Add missing closing tags in example (#1917)"

Before adoption: this commit came in with the history the project adopted, so no landing records it.

This reverts commit 146cba53e7be1d433ecae9999ae662b48921e520.

authored by David Lord · committed by David Lord · parent 663d786 · Browse files · 1 file+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:docs/patterns/wtforms.rst+3 added-3 removed
80 unmodified lines
8182.. sourcecode:: html+jinja8384 {% macro render_field(field) %}85 <dt>{{ field.label }}</dt>85 <dt>{{ field.label }}86 <dd>{{ field(**kwargs)|safe }}87 {% if field.errors %}88 <ul class=errors>89 {% for error in field.errors %}
17 unmodified lines
107108.. sourcecode:: html+jinja109110 {% from "_formhelpers.html" import render_field %}111 <form method=post>111 <form method=post action="/register">112 <dl>113 {{ render_field(form.username) }}114 {{ render_field(form.email) }}115 {{ render_field(form.password) }}116 {{ render_field(form.confirm) }}117 {{ render_field(form.accept_tos) }}118 </dl>119 <p><input type=submit value=Register></p>119 <p><input type=submit value=Register>120 </form>121122For more information about WTForms, head over to the `WTForms123website`_.
3 unmodified lines