Skip to content
Myr

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.

authored by Baptiste Fontaine · committed by David Lord · parent 9f2b3d8 · 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 }}85 <dt>{{ field.label }}</dt>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 action="/register">111 <form method=post>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>119 <p><input type=submit value=Register></p>120 </form>121122For more information about WTForms, head over to the `WTForms123website`_.
3 unmodified lines