forked from orbit-oss/flask
Fixed indentation of an example.
This commit is contained in:
parent
976e792336
commit
56675b3bad
1 changed files with 6 additions and 8 deletions
|
|
@ -73,14 +73,12 @@ Here an example `_formhelpers.html` template with such a macro:
|
|||
{% macro render_field(field) %}
|
||||
<dt>{{ field.label }}
|
||||
<dd>{{ field(**kwargs)|safe }}
|
||||
{% if field.errors %}
|
||||
<ul class="errors">
|
||||
{% for error in field.errors %}
|
||||
<li>{{ error }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
</dd>
|
||||
{% if field.errors %}
|
||||
<ul class="errors">
|
||||
{% for error in field.errors %}<li>{{ error }}{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
</dd>
|
||||
{% endmacro %}
|
||||
|
||||
This macro accepts a couple of keyword arguments that are forwarded to
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue