Commit df42cd14 authored by Serge S. Koval's avatar Serge S. Koval

More consistent form_tag macro behavior

parent d0e735cf
......@@ -116,7 +116,7 @@
{% endfor %}
{% endmacro %}
{% macro form_tag() %}
{% macro form_tag(form=None) %}
<form action="" method="POST" class="form-horizontal" enctype="multipart/form-data">
<fieldset>
{{ caller() }}
......
......@@ -21,7 +21,7 @@
</li>
</ul>
{% call lib.form_tag() %}
{% call lib.form_tag(form) %}
{{ lib.render_form_fields(form, widget_args=form_widget_args) }}
{{ lib.render_form_buttons(return_url, extra()) }}
{% endcall %}
......
......@@ -8,7 +8,7 @@
{% endblock %}
{% block body %}
{% call lib.form_tag() %}
{% call lib.form_tag(form) %}
{{ lib.render_form_fields(form, widget_args=form_widget_args) }}
{{ lib.render_form_buttons(return_url) }}
{% endcall %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment