Skip to content

Commit

Permalink
Adds id parameter to wtf.quick_form which sets the id attribute of th…
Browse files Browse the repository at this point in the history
…e form
  • Loading branch information
halfdanrump committed Jun 7, 2014
1 parent 53b9609 commit 352fa8c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flask_bootstrap/templates/bootstrap/wtf.html
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@
{# valid form types are "basic", "inline" and "horizontal" #}
{% macro quick_form(form,
action="",
id="",
method="post",
extra_classes=None,
role="form",
Expand All @@ -122,6 +123,7 @@
button_map={}) %}
<form
{%- if action %} action="{{action}}"{% endif -%}
{%- if id %} id="{{id}}"{% endif -%}
{%- if method %} method="{{method}}"{% endif %}
class="form
{%- if extra_classes %} {{extra_classes}}{% endif -%}
Expand Down

0 comments on commit 352fa8c

Please sign in to comment.