Skip to content

Commit

Permalink
Merge pull request #58 from anddam/patch-1
Browse files Browse the repository at this point in the history
Render non-hidden fields in 'form_errors' macro.
  • Loading branch information
mbr committed Mar 9, 2014
2 parents f24bc3d + abb2258 commit 2bf8336
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask_bootstrap/templates/bootstrap/wtf.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{%- if form.errors %}
{%- for fieldname, errors in form.errors.items() %}
{%- if bootstrap_is_hidden_field(form[fieldname]) and hiddens or
bootstrap_is_hidden_field(form[fieldname]) and hiddens != 'only' %}
not bootstrap_is_hidden_field(form[fieldname]) and hiddens != 'only' %}
{%- for error in errors %}
<p class="error">{{error}}</p>
{%- endfor %}
Expand Down

0 comments on commit 2bf8336

Please sign in to comment.